Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » net » axis » [javadoc | source]
org.jboss.net.axis
public class: AxisInvocationHandler [javadoc | source]
java.lang.Object
   org.jboss.net.axis.AxisInvocationHandler

All Implemented Interfaces:
    Serializable, InvocationHandler

Direct Known Subclasses:
    MBeanInvocationHandler

Deprecated! Due - to the inherent deficiencies in using pure reflection meat-data to access web services, we recommend using the axis "stub" way of creating web service references

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.
Nested Class Summary:
public static class  AxisInvocationHandler.DefaultInterfaceMap  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 
public static class  AxisInvocationHandler.DefaultMethodMap  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  Map methodToInterface    mapping of methods to interface names 
protected  Map methodToName    mapping of methods to method names 
protected transient  Call call    the call object to which we delegate 
protected  String rootContext    if attached to a server-engine, we can reattach 
protected  String endPoint    the endpoint to which we are attached 
Constructor:
 public AxisInvocationHandler(URL endPoint) 
    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
    methodMap - a map of Java method to service method names
 public AxisInvocationHandler(URL endPoint,
    Map methodMap) 
    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
 public AxisInvocationHandler(Call call,
    Map methodMap,
    Map interfaceMap) 
    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
 public AxisInvocationHandler(URL endPoint,
    Map methodMap,
    Map interfaceMap) 
    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
 public AxisInvocationHandler(URL endpoint,
    Service service,
    Map methodMap,
    Map interfaceMap) 
    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
 public AxisInvocationHandler(URL endPoint,
    Map methodMap,
    Map interfaceMap,
    boolean maintainSession) 
    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
Method from org.jboss.net.axis.AxisInvocationHandler Summary:
createAxisService,   createAxisService,   createAxisService,   createAxisService,   invoke,   invoke,   invoke,   setBasicAuthentication
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.net.axis.AxisInvocationHandler Detail:
 public static Object createAxisService(Class _interface,
    URL endpoint) 
      Deprecated!
    default creation of service
 public static Object createAxisService(Class _interface,
    Call call) 
      Deprecated!
    default creation of service
 public static Object createAxisService(Class _interface,
    AxisInvocationHandler handler) 
      Deprecated!
    default creation of service
 public static Object createAxisService(Class _interface,
    URL endpoint,
    Service service) 
      Deprecated!
    default creation of service
 public Object invoke(String serviceName,
    String methodName,
    Object[] args) throws RemoteException 
      Deprecated!
    invoke given namespace+method+args
 public Object invoke(Object target,
    Method method,
    Object[] args) throws Throwable 
      Deprecated!
    generic invocation method
 public Object invoke(String serviceName,
    String methodName,
    Object[] args,
    Class[] parameters) throws RemoteException 
      Deprecated!
    invoke with additional method parameter signature
 protected  void setBasicAuthentication(URL target) 
      Deprecated!
    helper to transfer url authentication information into engine