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:
- InvocationHandler, Client, InvocationHandlerAware
public class ClientProxyImpl
- extends AbstractClient
- implements InvocationHandlerAware, InvocationHandler
Proxy-based client implementation
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, parseQuotedHeaderValue, prepareConduitSelector, readBody, reportMessageHandlerProblem, 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(URI baseURI,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
Object... varValues)
ClientProxyImpl
public ClientProxyImpl(ClientState initialState,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
Object... varValues)
invoke
public Object invoke(Object o,
Method m,
Object[] params)
throws 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 InvocationHandler
- Throws:
Throwable
handleResponse
protected Object handleResponse(HttpURLConnection connect,
Message outMessage,
OperationResourceInfo ori)
throws Throwable
- Throws:
Throwable
getInvocationHandler
public Object getInvocationHandler()
- Specified by:
getInvocationHandler
in interface InvocationHandlerAware
reportInvalidResourceMethod
protected static void reportInvalidResourceMethod(Method m,
String name)
Apache CXF