Package com.aceevo.ursus.client

Examples of com.aceevo.ursus.client.UrsusJerseyClientBuilder


        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);

            Hello hello = invocationBuilder.get().readEntity(Hello.class);
View Full Code Here


        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);

            Hello hello = invocationBuilder.get().readEntity(Hello.class);
View Full Code Here

TOP

Related Classes of com.aceevo.ursus.client.UrsusJerseyClientBuilder

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.