T - The annotated resource interface.public class ClientInvocationHandler<T>
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
ClientResource.wrap(Class) and related methods.| Constructor and Description |
|---|
ClientInvocationHandler(ClientResource clientResource,
java.lang.Class<? extends T> resourceInterface)
Constructor.
|
ClientInvocationHandler(ClientResource clientResource,
java.lang.Class<? extends T> resourceInterface,
AnnotationUtils annotationUtils)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AnnotationInfo> |
getAnnotations()
Returns the annotations of the resource interface.
|
AnnotationUtils |
getAnnotationUtils()
Returns the associated annotation utils.
|
ClientResource |
getClientResource()
Returns the associated client resource.
|
protected Request |
getRequest(java.lang.reflect.Method javaMethod,
java.lang.Object[] args)
Allows for child classes to modify the request.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method javaMethod,
java.lang.Object[] args)
Effectively invokes a Java method on the given proxy object.
|
public ClientInvocationHandler(ClientResource clientResource, java.lang.Class<? extends T> resourceInterface)
clientResource - The associated client resource.resourceInterface - The annotated resource interface.public ClientInvocationHandler(ClientResource clientResource, java.lang.Class<? extends T> resourceInterface, AnnotationUtils annotationUtils)
clientResource - The associated client resource.resourceInterface - The annotated resource interface.annotationUtils - The annotationUtils class.public java.util.List<AnnotationInfo> getAnnotations()
public AnnotationUtils getAnnotationUtils()
public ClientResource getClientResource()
protected Request getRequest(java.lang.reflect.Method javaMethod, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method javaMethod,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.ThrowableCopyright © 2005-2020 Restlet.