public class ClientProxyImpl extends AbstractClient implements InvocationHandlerAware, InvocationHandler
AbstractClient.AbstractBodyWriter
cfg, HTTP_SCHEME, KEEP_CONDUIT_ALIVE, REQUEST_CONTEXT, RESPONSE_CONTEXT
Constructor and Description |
---|
ClientProxyImpl(ClientState initialState,
ClassLoader loader,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
Object... varValues) |
ClientProxyImpl(URI baseURI,
ClassLoader loader,
ClassResourceInfo cri,
boolean isRoot,
boolean inheritHeaders,
Object... varValues) |
Modifier and Type | Method and Description |
---|---|
Object |
getInvocationHandler() |
protected static Annotation[] |
getMethodAnnotations(Method aMethod,
int bodyIndex) |
protected Object |
handleResponse(Message outMessage,
Class<?> serviceCls) |
Object |
invoke(Object o,
Method m,
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(Method m,
String name) |
protected Object |
retryInvoke(URI newRequestURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
Object body,
Exchange exchange,
Map<String,Object> invContext) |
accept, accept, acceptEncoding, acceptLanguage, addMatrixQueryParamsToBuilder, calculateNewRequestURI, checkClientException, checkIfBodyEmpty, close, completeExchange, convertParamValue, convertToWebApplicationException, cookie, createExchange, createMessage, doRunInterceptorChain, encoding, finalize, getBaseURI, getConfiguration, getContentsList, getCurrentBuilder, getCurrentURI, getHeaders, getRequestContext, getResponse, getState, getTemplateParametersMap, header, headers, language, match, modified, parseQuotedHeaderValue, prepareConduitSelector, preProcessResult, query, readBody, reportMessageHandlerProblem, reset, resetBaseAddress, resetCurrentBuilder, resetResponse, responseStreamCanBeClosed, retryInvoke, setAllHeaders, setConfiguration, setContexts, setEmptyRequestPropertyIfNeeded, setPlainOperationNameProperty, setResponseBuilder, setSupportOnewayResponseProperty, setupInFaultObserver, setupInInterceptorChain, setupOutInterceptorChain, type, type, waitForResponseCode, writeBody
public ClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, Object... varValues)
public ClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, Object... varValues)
public Object invoke(Object o, Method m, Object[] params) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected Object retryInvoke(URI newRequestURI, javax.ws.rs.core.MultivaluedMap<String,String> headers, Object body, Exchange exchange, Map<String,Object> invContext) throws Throwable
retryInvoke
in class AbstractClient
Throwable
protected Object handleResponse(Message outMessage, Class<?> serviceCls) throws Throwable
Throwable
public Object getInvocationHandler()
getInvocationHandler
in interface InvocationHandlerAware
protected static void reportInvalidResourceMethod(Method m, String name)
protected static Annotation[] getMethodAnnotations(Method aMethod, int bodyIndex)
Apache CXF