|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.api.RemoteClient org.ogf.graap.wsag.client.rest.RestRemoteClient<T>
T
- the type of the REST interface definitionpublic class RestRemoteClient<T>
Default implementation of a RESTful WSAG4J client. Instances of the remote client implementation must specify the type of the REST resource as an JAX-RS anotated interface.
Method Summary | ||
---|---|---|
T |
getApplicationClient()
Returns the REST client instance. |
|
static
|
getInstance(EndpointReferenceType reference,
Properties properties,
ISecurityProperties securityProperties,
Class<U> interfaceClass)
Returns a new instance of a REST remote client. |
|
static
|
getInstance(String uri,
Properties properties,
ISecurityProperties securityProperties,
Class<U> interfaceClass)
Returns a new instance of a REST remote client. |
Methods inherited from class org.ogf.graap.wsag.client.api.RemoteClient |
---|
getProperties, getRemoteReference, getSecurityProperties, isUsingTrace, setProperties, setSecurityProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <U> RestRemoteClient<U> getInstance(EndpointReferenceType reference, Properties properties, ISecurityProperties securityProperties, Class<U> interfaceClass)
U
- the JAX-RS annotated interface of the REST resourcereference
- the URI of the REST resource as endpoint referenceproperties
- the client propertiessecurityProperties
- the client security propertiesinterfaceClass
- the class of the JAX-RS annotated interface of the REST resource
public static <U> RestRemoteClient<U> getInstance(String uri, Properties properties, ISecurityProperties securityProperties, Class<U> interfaceClass)
U
- the JAX-RS annotated interface of the REST resourceuri
- the URI of the REST resourceproperties
- the client propertiessecurityProperties
- the client security propertiesinterfaceClass
- the class of the JAX-RS annotated interface of the REST resource
public T getApplicationClient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |