|
Restlet Framework 2.2.3 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.resource.ClientInvocationHandler<T>
T
- The annotated resource interface.public class ClientInvocationHandler<T>
Reflection proxy invocation handler created for the
ClientResource.wrap(Class)
and related methods.
Constructor Summary | |
---|---|
ClientInvocationHandler(ClientResource clientResource,
java.lang.Class<? extends T> resourceInterface)
Constructor. |
|
ClientInvocationHandler(ClientResource clientResource,
java.lang.Class<? extends T> resourceInterface,
AnnotationUtils annotationUtils)
Constructor. |
Method Summary | |
---|---|
java.util.List<AnnotationInfo> |
getAnnotations()
Returns the annotations of the resource interface. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public java.util.List<AnnotationInfo> getAnnotations()
public ClientResource getClientResource()
protected Request getRequest(java.lang.reflect.Method javaMethod, java.lang.Object[] args) throws java.lang.Throwable
java.lang.Throwable
public 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.InvocationHandler
java.lang.Throwable
|
Restlet Framework 2.2.3 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |