org.apache.cxf.jaxrs.client
Class ClientProxyImpl
java.lang.Object
org.apache.cxf.jaxrs.client.AbstractClient
org.apache.cxf.jaxrs.client.ClientProxyImpl
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, Client, InvocationHandlerAware
public class ClientProxyImpl
- extends AbstractClient
- implements InvocationHandlerAware, java.lang.reflect.InvocationHandler
Proxy-based client implementation
|
Method Summary |
java.lang.Object |
getInvocationHandler()
|
protected java.lang.Object |
handleResponse(java.net.HttpURLConnection connect,
Message outMessage,
OperationResourceInfo ori)
|
java.lang.Object |
invoke(java.lang.Object o,
java.lang.reflect.Method m,
java.lang.Object[] params)
Updates the current state if Client method is invoked, otherwise
does the remote invocation or returns a new proxy if subresource
method is invoked. |
protected static void |
reportInvalidResourceMethod(java.lang.reflect.Method m,
java.lang.String name)
|
| Methods inherited from class org.apache.cxf.jaxrs.client.AbstractClient |
accept, accept, acceptEncoding, acceptLanguage, addParametersToBuilder, cookie, createHttpConnection, createMessage, createSimpleMessage, encoding, getBaseURI, getConfiguration, getCurrentBuilder, getCurrentURI, getHeaders, getResponse, getState, getTemplateParametersMap, header, headers, language, match, modified, prepareConduitSelector, readBody, reportNoMessageHandler, reset, resetBaseAddress, resetCurrentBuilder, resetResponse, setAllHeaders, setConfiguration, setEmptyRequestProperty, setPlainOperationNameProperty, setResponseBuilder, setupInInterceptorChain, setupOutInterceptorChain, type, type, writeBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientProxyImpl
public ClientProxyImpl(java.net.URI baseURI,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
java.lang.Object... varValues)
ClientProxyImpl
public ClientProxyImpl(ClientState initialState,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
java.lang.Object... varValues)
invoke
public java.lang.Object invoke(java.lang.Object o,
java.lang.reflect.Method m,
java.lang.Object[] params)
throws java.lang.Throwable
- Updates the current state if Client method is invoked, otherwise
does the remote invocation or returns a new proxy if subresource
method is invoked. Can throw an expected exception if ResponseExceptionMapper
is registered
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
handleResponse
protected java.lang.Object handleResponse(java.net.HttpURLConnection connect,
Message outMessage,
OperationResourceInfo ori)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getInvocationHandler
public java.lang.Object getInvocationHandler()
- Specified by:
getInvocationHandler in interface InvocationHandlerAware
reportInvalidResourceMethod
protected static void reportInvalidResourceMethod(java.lang.reflect.Method m,
java.lang.String name)
Apache CXF