Package com.aceevo.ursus.config

Examples of com.aceevo.ursus.config.UrsusJerseyClientConfiguration


    public SimpleJerseyClientExample() {

        ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
        try {

            UrsusJerseyClientConfiguration ursusJerseyClientConfiguration =
                    mapper.readValue(open("jerseyClient.yml"), UrsusJerseyClientConfiguration.class);
            Client client = new UrsusJerseyClientBuilder().using(ursusJerseyClientConfiguration).build();

            Invocation.Builder invocationBuilder = client.target(URI.create("http://localhost:8080/hello"))
                    .request(MediaType.APPLICATION_JSON_TYPE);
View Full Code Here


    public SimpleJerseyClientExample(String configFile) {

        ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
        try {

            UrsusJerseyClientConfiguration ursusJerseyClientConfiguration =
                    mapper.readValue(open(configFile), UrsusJerseyClientConfiguration.class);
            Client client = new UrsusJerseyClientBuilder().using(ursusJerseyClientConfiguration).build();

            Invocation.Builder invocationBuilder = client.target(URI.create("http://localhost:8080/hello"))
                    .request(MediaType.APPLICATION_JSON_TYPE);
View Full Code Here

TOP

Related Classes of com.aceevo.ursus.config.UrsusJerseyClientConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.