Class JaxRsClientInvocationHandler<T>
- java.lang.Object
-
- org.restlet.engine.resource.ClientInvocationHandler<T>
-
- org.restlet.ext.jaxrs.internal.client.JaxRsClientInvocationHandler<T>
-
- Type Parameters:
T- The annotated resource interface.
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
@Deprecated public class JaxRsClientInvocationHandler<T> extends ClientInvocationHandler<T>
Deprecated.Will be removed in next minor release.Reflection proxy invocation handler created for theJaxRsClientResource.wrap(Class)and related methods.- See Also:
JaxRsClientResource,ClientInvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private ClientResourceclientResourceDeprecated.
-
Constructor Summary
Constructors Constructor Description JaxRsClientInvocationHandler(ClientResource clientResource, java.lang.Class<? extends T> resourceInterface)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private voidaddCookieParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)Deprecated.private voidaddFormParam(Form form, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)Deprecated.private voidaddHeaderParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)Deprecated.private voidaddPathParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)Deprecated.private voidaddQueryParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)Deprecated.private java.lang.StringgetRepresentationAsText(java.lang.Object value)Deprecated.protected RequestgetRequest(java.lang.reflect.Method javaMethod, java.lang.Object[] args)Deprecated.Allows for child classes to modify the request.private voidhandleJavaMethodParameter(Request request, java.lang.Object value, java.lang.reflect.Type genericParameterType, java.lang.annotation.Annotation[] annotations, Form form)Deprecated.java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method javaMethod, java.lang.Object[] args)Deprecated.Effectively invokes a Java method on the given proxy object.private voidsetRequestPathToAnnotationPath(java.lang.reflect.Method javaMethod, Request request)Deprecated.-
Methods inherited from class org.restlet.engine.resource.ClientInvocationHandler
getAnnotations, getAnnotationUtils, getClientResource
-
-
-
-
Field Detail
-
clientResource
private ClientResource clientResource
Deprecated.
-
-
Constructor Detail
-
JaxRsClientInvocationHandler
public JaxRsClientInvocationHandler(ClientResource clientResource, java.lang.Class<? extends T> resourceInterface)
Deprecated.Constructor.- Parameters:
clientResource- The client resource.resourceInterface- The annotated resource interface.
-
-
Method Detail
-
addCookieParam
private void addCookieParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)
Deprecated.
-
addFormParam
private void addFormParam(Form form, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)
Deprecated.
-
addHeaderParam
private void addHeaderParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)
Deprecated.
-
addPathParam
private void addPathParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)
Deprecated.
-
addQueryParam
private void addQueryParam(Request request, java.lang.String representationAsText, java.lang.annotation.Annotation annotation)
Deprecated.
-
getRepresentationAsText
private java.lang.String getRepresentationAsText(java.lang.Object value)
Deprecated.
-
getRequest
protected Request getRequest(java.lang.reflect.Method javaMethod, java.lang.Object[] args) throws java.lang.Throwable
Deprecated.Description copied from class:ClientInvocationHandlerAllows for child classes to modify the request.- Overrides:
getRequestin classClientInvocationHandler<T>- Throws:
java.lang.Throwable
-
handleJavaMethodParameter
private void handleJavaMethodParameter(Request request, java.lang.Object value, java.lang.reflect.Type genericParameterType, java.lang.annotation.Annotation[] annotations, Form form) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method javaMethod, java.lang.Object[] args) throws java.lang.ThrowableDeprecated.Description copied from class:ClientInvocationHandlerEffectively invokes a Java method on the given proxy object.- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler- Overrides:
invokein classClientInvocationHandler<T>- Throws:
java.lang.Throwable
-
setRequestPathToAnnotationPath
private void setRequestPathToAnnotationPath(java.lang.reflect.Method javaMethod, Request request)Deprecated.
-
-