|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.client.JAXRSClientFactory
public final class JAXRSClientFactory
Factory for creating proxy clients.
Method Summary | ||
---|---|---|
static
|
create(String baseAddress,
Class<T> cls)
Creates a proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
List<?> providers)
Creates a proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
List<?> providers,
boolean threadSafe)
Creates a thread safe proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
List<?> providers,
String configLocation)
Creates a proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
String configLocation)
Creates a proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
String configLocation,
Object... varValues)
Creates a proxy |
|
static
|
create(String baseAddress,
Class<T> cls,
String username,
String password,
String configLocation)
Creates a proxy which will do basic authentication |
|
static
|
create(URI baseURI,
Class<T> cls)
Creates a proxy |
|
static
|
create(URI baseURI,
Class<T> cls,
boolean inheritHeaders)
Creates a proxy |
|
static
|
createFromModel(String baseAddress,
Class<T> cls,
List<UserResource> modelBeans,
List<?> providers,
String configLocation)
Creates a proxy using user resource model |
|
static
|
createFromModel(String baseAddress,
Class<T> cls,
List<UserResource> modelBeans,
String configLocation)
Creates a proxy using user resource model |
|
static
|
createFromModel(String baseAddress,
Class<T> cls,
String modelRef,
List<?> providers,
boolean threadSafe)
Creates a thread safe proxy using user resource model |
|
static
|
createFromModel(String baseAddress,
Class<T> cls,
String modelRef,
List<?> providers,
String configLocation)
Creates a proxy using user resource model |
|
static
|
createFromModel(String baseAddress,
Class<T> cls,
String modelRef,
String configLocation)
Creates a proxy using user resource model |
|
static
|
fromClient(Client client,
Class<T> cls)
Creates a proxy, baseURI will be set to Client currentURI |
|
static
|
fromClient(Client client,
Class<T> cls,
boolean inheritHeaders)
Creates a proxy, baseURI will be set to Client currentURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T create(String baseAddress, Class<T> cls)
baseAddress
- baseAddresscls
- resource class, if not interface then a CGLIB proxy will be created
public static <T> T create(URI baseURI, Class<T> cls)
baseURI
- baseURIcls
- resource class, if not interface then a CGLIB proxy will be created
public static <T> T create(URI baseURI, Class<T> cls, boolean inheritHeaders)
baseURI
- baseURIcls
- resource class, if not interface then a CGLIB proxy will be createdinheritHeaders
- if true then existing proxy headers will be inherited by
subresource proxies if any
public static <T> T create(String baseAddress, Class<T> cls, String configLocation)
baseAddress
- baseAddresscls
- resource class, if not interface then a CGLIB proxy will be createdconfig
- classpath location of Spring configuration resource
public static <T> T create(String baseAddress, Class<T> cls, String configLocation, Object... varValues)
baseAddress
- baseAddresscls
- resource class, if not interface then a CGLIB proxy will be created
This class is expected to have a root JAXRS Path annotation containing
template variables, for ex, "/path/{id1}/{id2}"config
- classpath location of Spring configuration resourcevarValues
- values to replace root Path template variables
public static <T> T create(String baseAddress, Class<T> cls, List<?> providers)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdproviders
- list of providers
public static <T> T create(String baseAddress, Class<T> cls, List<?> providers, boolean threadSafe)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdproviders
- list of providersthreadSafe
- if true then a thread-safe proxy will be created
public static <T> T create(String baseAddress, Class<T> cls, List<?> providers, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdproviders
- list of providersconfig
- classpath location of Spring configuration resource
public static <T> T create(String baseAddress, Class<T> cls, String username, String password, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdusername
- usernamepassword
- passwordconfig
- classpath location of Spring configuration resource
public static <T> T createFromModel(String baseAddress, Class<T> cls, String modelRef, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdmodelRef
- model location
public static <T> T createFromModel(String baseAddress, Class<T> cls, String modelRef, List<?> providers, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdmodelRef
- model locationproviders
- list of providers
public static <T> T createFromModel(String baseAddress, Class<T> cls, String modelRef, List<?> providers, boolean threadSafe)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdmodelRef
- model locationproviders
- list of providersthreadSafe
- if true then thread-safe proxy will be created
public static <T> T createFromModel(String baseAddress, Class<T> cls, List<UserResource> modelBeans, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdmodelBeans
- model beans
public static <T> T createFromModel(String baseAddress, Class<T> cls, List<UserResource> modelBeans, List<?> providers, String configLocation)
baseAddress
- baseAddresscls
- proxy class, if not interface then a CGLIB proxy will be createdmodelBeans
- model beansproviders
- list of providers
public static <T> T fromClient(Client client, Class<T> cls)
client
- Client instancecls
- proxy class, if not interface then a CGLIB proxy will be created
public static <T> T fromClient(Client client, Class<T> cls, boolean inheritHeaders)
client
- Client instancecls
- proxy class, if not interface then a CGLIB proxy will be createdinheritHeaders
- if true then existing Client headers will be inherited by new proxy
and subresource proxies if any
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |