org.bsf.remoting.http
Class HttpServiceInvocationHandler
java.lang.Object
|
+--org.bsf.remoting.http.HttpServiceInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
- public class HttpServiceInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
The HttpServiceInvocationHandler is used to transmit the user request to the correct object which can
be the remote service in case of direct connection or the user session client
in case of Session connection.
This class is a dynamic proxy created by the HttpServiceFactory in case of
stateless service or by the HttpSessionClient in case of statefull service.
- Version:
- 1.0
- Author:
- Gaetan Zoritchak
Method Summary |
java.lang.Object |
invoke(java.lang.Object p_proxy,
java.lang.reflect.Method p_method,
java.lang.Object[] p_args)
This method is called on every call on the interface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_remote
private java.lang.Object _remote
_service
private EJBDefinition _service
_serviceKey
private HttpServiceKey _serviceKey
_connectionMode
private int _connectionMode
HttpServiceInvocationHandler
public HttpServiceInvocationHandler(EJBDefinition p_service)
- This constructor is used for a stateless service
HttpServiceInvocationHandler
public HttpServiceInvocationHandler(HttpServiceKey p_serviceKey)
- This constructor is used for a statefull service
invoke
public java.lang.Object invoke(java.lang.Object p_proxy,
java.lang.reflect.Method p_method,
java.lang.Object[] p_args)
throws java.lang.Throwable
- This method is called on every call on the interface
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable