org.jboss.net.axis
Class AxisInvocationHandler

java.lang.Object
  extended byorg.jboss.net.axis.AxisInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, java.io.Serializable
Direct Known Subclasses:
MBeanInvocationHandler (src)

Deprecated. Due to the inherent deficiencies in using pure reflection meat-data to access web services, we recommend using the full-blown jaxrpc/wsdl approach.

public class AxisInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable

An invocation handler that allows typed and persistent client access to remote SOAP/Axis services. Adds method/interface to name resolution to the axis client engine. Unfortunately the AxisClientProxy has a package-protected constructor, otherwise we could inherit from there.

See Also:
Serialized Form

Nested Class Summary
static class AxisInvocationHandler.DefaultInterfaceMap (src)
          Deprecated. a tiny helper that does some default mapping of methods to interface names we do not hash the actual reflection information because we could collide with proxy serialisation holding fucking old classes
static class AxisInvocationHandler.DefaultMethodMap (src)
          Deprecated. a tiny helper that does some default mapping of methods to method names we do not hash the actual reflection information because we could collide with proxy serialisation holding fucking old classes
 
Field Summary
protected  Call (src) call
          Deprecated. the call object to which we delegate
protected  java.lang.String endPoint
          Deprecated. the endpoint to which we are attached
protected  java.util.Map methodToInterface
          Deprecated. mapping of methods to interface names
protected  java.util.Map methodToName
          Deprecated. mapping of methods to method names
protected  java.lang.String rootContext
          Deprecated. if attached to a server-engine, we can reattach
 
Constructor Summary
AxisInvocationHandler(Call (src)  call, java.util.Map methodMap, java.util.Map interfaceMap)
          Deprecated. Creates a new AxisInvocationHandler and save some origin information to re-attach to the engine after being serialized.
AxisInvocationHandler(java.net.URL endPoint, java.lang.String soapAction)
          Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint.
AxisInvocationHandler(java.net.URL endPoint, java.lang.String soapAction, java.util.Map methodMap)
          Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint.
AxisInvocationHandler(java.net.URL endPoint, java.lang.String soapAction, java.util.Map methodMap, java.util.Map interfaceMap)
          Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint
AxisInvocationHandler(java.net.URL endPoint, java.lang.String soapAction, java.util.Map methodMap, java.util.Map interfaceMap, boolean maintainSession)
          Deprecated. Creates a new AxisInvocationHandler
AxisInvocationHandler(java.net.URL endpoint, java.lang.String soapAction, Service (src)  service, java.util.Map methodMap, java.util.Map interfaceMap)
          Deprecated. Creates a new AxisInvocationHandler
 
Method Summary
static java.lang.Object createAxisService(java.lang.Class _interface, AxisInvocationHandler (src)  handler)
          Deprecated. default creation of service
static java.lang.Object createAxisService(java.lang.Class _interface, Call (src)  call)
          Deprecated. default creation of service
static java.lang.Object createAxisService(java.lang.Class _interface, java.net.URL endpoint, java.lang.String soapAction)
          Deprecated. default creation of service
static java.lang.Object createAxisService(java.lang.Class _interface, java.net.URL endpoint, java.lang.String soapAction, Service (src)  service)
          Deprecated. default creation of service
 java.lang.Object invoke(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] args)
          Deprecated. generic invocation method
 java.lang.Object invoke(java.lang.String serviceName, java.lang.String methodName, java.lang.Object[] args)
          Deprecated. invoke given namespace+method+args
 java.lang.Object invoke(java.lang.String serviceName, java.lang.String methodName, java.lang.Object[] args, java.lang.Class[] parameters)
          Deprecated. invoke with additional method parameter signature
protected  void setBasicAuthentication(java.net.URL target)
          Deprecated. helper to transfer url authentication information into engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodToInterface

protected java.util.Map methodToInterface
Deprecated. 
mapping of methods to interface names


methodToName

protected java.util.Map methodToName
Deprecated. 
mapping of methods to method names


call

protected transient Call (src)  call
Deprecated. 
the call object to which we delegate


rootContext

protected java.lang.String rootContext
Deprecated. 
if attached to a server-engine, we can reattach


endPoint

protected java.lang.String endPoint
Deprecated. 
the endpoint to which we are attached

Constructor Detail

AxisInvocationHandler

public AxisInvocationHandler(Call (src)  call,
                             java.util.Map methodMap,
                             java.util.Map interfaceMap)
Deprecated. 
Creates a new AxisInvocationHandler and save some origin information to re-attach to the engine after being serialized.

Parameters:
call - the Axis call object
methodMap - a map of Java method to service method names
interfaceMap - a map of Java interface to service names

AxisInvocationHandler

public AxisInvocationHandler(java.net.URL endpoint,
                             java.lang.String soapAction,
                             Service (src)  service,
                             java.util.Map methodMap,
                             java.util.Map interfaceMap)
Deprecated. 
Creates a new AxisInvocationHandler

Parameters:
endpoint - target address of the service
service - an Axis service object
methodMap - a map of Java method to service method names
interfaceMap - a map of Java interface to service names

AxisInvocationHandler

public AxisInvocationHandler(java.net.URL endPoint,
                             java.lang.String soapAction,
                             java.util.Map methodMap,
                             java.util.Map interfaceMap,
                             boolean maintainSession)
Deprecated. 
Creates a new AxisInvocationHandler

Parameters:
endPoint - target url of the web service
methodMap - a map of Java method to service method names
interfaceMap - a map of Java interface to service names
maintainSession - a flag that indicates whether this handler should keep a persistent session with the service endpoint

AxisInvocationHandler

public AxisInvocationHandler(java.net.URL endPoint,
                             java.lang.String soapAction,
                             java.util.Map methodMap,
                             java.util.Map interfaceMap)
Deprecated. 
Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint

Parameters:
endPoint - target url of the web service
methodMap - a map of Java method to service method names
interfaceMap - a map of Java interface to service names

AxisInvocationHandler

public AxisInvocationHandler(java.net.URL endPoint,
                             java.lang.String soapAction,
                             java.util.Map methodMap)
Deprecated. 
Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint. The unqualified name of the intercepted Java interface will be the used service name.

Parameters:
endPoint - target url of the web service
methodMap - a map of Java method to service method names

AxisInvocationHandler

public AxisInvocationHandler(java.net.URL endPoint,
                             java.lang.String soapAction)
Deprecated. 
Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint. The unqualified name of the intercepted Java interface will be the used service name. Intercepted methods are mapped straightforwardly to web service names.

Parameters:
endPoint - target url of the web service
Method Detail

setBasicAuthentication

protected void setBasicAuthentication(java.net.URL target)
Deprecated. 
helper to transfer url authentication information into engine


invoke

public java.lang.Object invoke(java.lang.String serviceName,
                               java.lang.String methodName,
                               java.lang.Object[] args)
                        throws java.rmi.RemoteException
Deprecated. 
invoke given namespace+method+args

Throws:
java.rmi.RemoteException

invoke

public java.lang.Object invoke(java.lang.String serviceName,
                               java.lang.String methodName,
                               java.lang.Object[] args,
                               java.lang.Class[] parameters)
                        throws java.rmi.RemoteException
Deprecated. 
invoke with additional method parameter signature

Throws:
java.rmi.RemoteException

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Deprecated. 
generic invocation method

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

createAxisService

public static java.lang.Object createAxisService(java.lang.Class _interface,
                                                 java.net.URL endpoint,
                                                 java.lang.String soapAction)
Deprecated. 
default creation of service


createAxisService

public static java.lang.Object createAxisService(java.lang.Class _interface,
                                                 java.net.URL endpoint,
                                                 java.lang.String soapAction,
                                                 Service (src)  service)
Deprecated. 
default creation of service


createAxisService

public static java.lang.Object createAxisService(java.lang.Class _interface,
                                                 Call (src)  call)
Deprecated. 
default creation of service


createAxisService

public static java.lang.Object createAxisService(java.lang.Class _interface,
                                                 AxisInvocationHandler (src)  handler)
Deprecated. 
default creation of service