org.apache.cxf.jaxrs.client
Class ClientProxyImpl

java.lang.Object
  extended by org.apache.cxf.jaxrs.client.AbstractClient
      extended by org.apache.cxf.jaxrs.client.ClientProxyImpl
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, Client, InvocationHandlerAware

public class ClientProxyImpl
extends AbstractClient
implements java.lang.reflect.InvocationHandler


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.client.AbstractClient
bus, conduitSelector, inInterceptors, outInterceptors, WILDCARD
 
Constructor Summary
ClientProxyImpl(java.net.URI baseURI, java.net.URI currentURI, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, java.lang.Object... varValues)
           
 
Method Summary
protected  java.lang.Object handleResponse(java.net.HttpURLConnection connect, Message inMessage, 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, cookie, createHttpConnection, createMessage, createSimpleMessage, encoding, getAccept, getBaseURI, getCurrentBuilder, getCurrentURI, getHeaders, getInvocationHandler, getResponse, getType, header, headers, language, match, modified, prepareConduitSelector, readBody, reportNoMessageHandler, reset, resetBaseAddress, resetCurrentBuilder, resetResponse, setAllHeaders, setBus, setConduitSelector, setInInterceptors, setOutInterceptors, setResponseBuilder, setupInInterceptorChain, setupOutInterceptorChain, type, type, writeBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientProxyImpl

public ClientProxyImpl(java.net.URI baseURI,
                       java.net.URI currentURI,
                       ClassResourceInfo cri,
                       boolean isRoot,
                       boolean inheritHeaders,
                       java.lang.Object... varValues)
Method Detail

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 inMessage,
                                          OperationResourceInfo ori)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

reportInvalidResourceMethod

protected static void reportInvalidResourceMethod(java.lang.reflect.Method m,
                                                  java.lang.String name)


Apache CXF