org.glassfish.jersey.client
Class JerseyClient.Builder

java.lang.Object
  extended by org.glassfish.jersey.client.JerseyClient.Builder
Enclosing class:
JerseyClient

public static class JerseyClient.Builder
extends java.lang.Object

Jersey client instance builder.


Method Summary
 JerseyClient build()
          Build a new Jersey client.
 JerseyClient build(Configuration configuration)
          Build a new Jersey client using an additional custom configuration.
 JerseyClient.Builder modules(org.glassfish.hk2.Module... modules)
          Register custom HK2 modules for the Jersey client.
 JerseyClient.Builder transport(Inflector<Request,Response> transport)
          Set Jersey client transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transport

public JerseyClient.Builder transport(Inflector<Request,Response> transport)
Set Jersey client transport.

Parameters:
transport - client transport.
Returns:
updated Jersey client builder.

modules

public JerseyClient.Builder modules(org.glassfish.hk2.Module... modules)
Register custom HK2 modules for the Jersey client.

Parameters:
modules - custom HK2 modules to be registered with the Jersey client.
Returns:
updated Jersey client builder.

build

public JerseyClient build()
Build a new Jersey client.

Returns:
new Jersey client.

build

public JerseyClient build(Configuration configuration)
Build a new Jersey client using an additional custom configuration.

Parameters:
configuration - JAX-RS client configuration for the new Jersey client.
Returns:
new Jersey client.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.