|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.net.axis.AxisInvocationHandler
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 | |
static class |
AxisInvocationHandler.DefaultInterfaceMap
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
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 org.apache.axis.client.Call |
call
Deprecated. the call object to which we delegate |
protected String |
endPoint
Deprecated. the endpoint to which we are attached |
protected Map |
methodToInterface
Deprecated. mapping of methods to interface names |
protected Map |
methodToName
Deprecated. mapping of methods to method names |
protected String |
rootContext
Deprecated. if attached to a server-engine, we can reattach |
Constructor Summary | |
AxisInvocationHandler(org.apache.axis.client.Call call,
Map methodMap,
Map interfaceMap)
Deprecated. Creates a new AxisInvocationHandler and save some origin information to re-attach to the engine after being serialized. |
|
AxisInvocationHandler(URL endPoint,
String soapAction)
Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint. |
|
AxisInvocationHandler(URL endPoint,
String soapAction,
Map methodMap)
Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint. |
|
AxisInvocationHandler(URL endPoint,
String soapAction,
Map methodMap,
Map interfaceMap)
Deprecated. Creates a new AxisInvocationHandler that keeps a persistent session with the service endpoint |
|
AxisInvocationHandler(URL endPoint,
String soapAction,
Map methodMap,
Map interfaceMap,
boolean maintainSession)
Deprecated. Creates a new AxisInvocationHandler |
|
AxisInvocationHandler(URL endpoint,
String soapAction,
org.apache.axis.client.Service service,
Map methodMap,
Map interfaceMap)
Deprecated. Creates a new AxisInvocationHandler |
Method Summary | |
static Object |
createAxisService(Class _interface,
AxisInvocationHandler handler)
Deprecated. default creation of service |
static Object |
createAxisService(Class _interface,
org.apache.axis.client.Call call)
Deprecated. default creation of service |
static Object |
createAxisService(Class _interface,
URL endpoint,
String soapAction)
Deprecated. default creation of service |
static Object |
createAxisService(Class _interface,
URL endpoint,
String soapAction,
org.apache.axis.client.Service service)
Deprecated. default creation of service |
Object |
invoke(Object target,
Method method,
Object[] args)
Deprecated. generic invocation method |
Object |
invoke(String serviceName,
String methodName,
Object[] args)
Deprecated. invoke given namespace+method+args |
Object |
invoke(String serviceName,
String methodName,
Object[] args,
Class[] parameters)
Deprecated. invoke with additional method parameter signature |
protected void |
setBasicAuthentication(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 |
protected Map methodToInterface
protected Map methodToName
protected transient org.apache.axis.client.Call call
protected String rootContext
protected String endPoint
Constructor Detail |
public AxisInvocationHandler(org.apache.axis.client.Call call, Map methodMap, Map interfaceMap)
call
- the Axis call objectmethodMap
- a map of Java method to service method namesinterfaceMap
- a map of Java interface to service namespublic AxisInvocationHandler(URL endpoint, String soapAction, org.apache.axis.client.Service service, Map methodMap, Map interfaceMap)
endpoint
- target address of the serviceservice
- an Axis service objectmethodMap
- a map of Java method to service method namesinterfaceMap
- a map of Java interface to service namespublic AxisInvocationHandler(URL endPoint, String soapAction, Map methodMap, Map interfaceMap, boolean maintainSession)
endPoint
- target url of the web servicemethodMap
- a map of Java method to service method namesinterfaceMap
- a map of Java interface to service namesmaintainSession
- a flag that indicates whether this handler
should keep a persistent session with the service endpointpublic AxisInvocationHandler(URL endPoint, String soapAction, Map methodMap, Map interfaceMap)
endPoint
- target url of the web servicemethodMap
- a map of Java method to service method namesinterfaceMap
- a map of Java interface to service namespublic AxisInvocationHandler(URL endPoint, String soapAction, Map methodMap)
endPoint
- target url of the web servicemethodMap
- a map of Java method to service method namespublic AxisInvocationHandler(URL endPoint, String soapAction)
endPoint
- target url of the web serviceMethod Detail |
protected void setBasicAuthentication(URL target)
public Object invoke(String serviceName, String methodName, Object[] args) throws RemoteException
RemoteException
public Object invoke(String serviceName, String methodName, Object[] args, Class[] parameters) throws RemoteException
RemoteException
public Object invoke(Object target, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public static Object createAxisService(Class _interface, URL endpoint, String soapAction)
public static Object createAxisService(Class _interface, URL endpoint, String soapAction, org.apache.axis.client.Service service)
public static Object createAxisService(Class _interface, org.apache.axis.client.Call call)
public static Object createAxisService(Class _interface, AxisInvocationHandler handler)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |