Package io.dropwizard.client

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


  @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

TOP

Related Classes of io.dropwizard.client.JerseyClientBuilder

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.