Examples of JerseyClientBuilder


Examples of io.dropwizard.client.JerseyClientBuilder

    public TenacityClientFactory(JerseyClientConfiguration configuration) {
        this.jerseyConfiguration = configuration;
    }

    public TenacityClient build(Environment environment) {
        final Client client = new JerseyClientBuilder(environment).using(jerseyConfiguration).build("tenacity");
        return new TenacityClient(environment.metrics(), client);
    }
View Full Code Here

Examples of io.dropwizard.client.JerseyClientBuilder

  @Override
    public void run(HelloWorldConfiguration configuration,
                    Environment environment) throws ClassNotFoundException {
   
        final UserDAO dao = new UserDAO(hibernateBundle.getSessionFactory());
        final Client client = new JerseyClientBuilder(environment).using(configuration.getJerseyClient()).build(getName());
        final ClientSecretsConfiguration clientSecrets = configuration.getClientSecrets();
       
        environment.jersey().register(new ClientResource());
        environment.jersey().register(new UserResource(dao));
        environment.jersey().register(new AuthResource(client, dao, clientSecrets));
View Full Code Here

Examples of org.glassfish.jersey.client.JerseyClientBuilder

    public static class BarListener2 extends BarListener {
    }

    @Test
    public void testLifecycleListenerProvider() {
        final JerseyClientBuilder builder = new JerseyClientBuilder();
        final JerseyClient client = builder.build();

        final BarListener filter = new BarListener();
        final BarListener filter2 = new BarListener2();

        // ClientRuntime initializes lazily, so it is forced by invoking a (dummy) request
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.