class keeps data during marshalling and demarshalling data
during EJB tunneling.
It is Serializable.
- See Also:
Tunnel
,
Invocator
,
TunnelInvocationHandler
,
Serialized Form
Constructor Summary |
TunnelData(long _sessionId,
long _objectId,
java.lang.String _className,
java.lang.String[] _interfaceNames,
int _requestType,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
constructor used by Tunneling only |
Method Summary |
static Marshalable |
createConstructRequest(long sessionId,
java.lang.String className,
java.lang.String[] interfaceNames,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
|
static Marshalable |
createDestructRequest(long sessionId,
long objectId)
|
static Marshalable |
createInvokeRequest(long sessionId,
long objectId,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.String serverUrl)
|
static java.lang.String |
createMethodString(java.lang.String methodName,
java.lang.Class[] argTypes)
|
static Marshalable |
createReferenceRequest(long sessionId,
long objectId,
java.lang.String serverUrl)
|
static Marshalable |
createSessionRequest(long[] sessionIds)
|
static Marshalable |
createStaticInvokeRequest(long sessionId,
java.lang.String className,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
|
static Marshalable |
createStubRequest(long sessionId,
java.lang.String[] interfaceNames,
java.lang.String serverUrl)
|
java.lang.Object[] |
getArguments()
|
java.lang.String |
getCodebase()
|
java.lang.reflect.Constructor |
getConstructor()
|
java.lang.Throwable |
getException()
|
java.lang.String[] |
getInterfaceNames()
|
java.lang.reflect.Method |
getMethod(java.lang.Class cl)
|
long |
getObjectId()
|
int |
getRequestId()
|
int |
getRequestType()
|
java.lang.Object |
getResult()
|
java.lang.String |
getServerUrl()
|
long |
getSessionId()
|
boolean |
isDirect()
|
boolean |
isOneWay()
|
boolean |
isRequest()
|
void |
setArguments(java.lang.Object[] os)
|
void |
setCodebase(java.lang.String _codebase)
|
void |
setConstructor(java.lang.Class[] _argTypes)
|
void |
setDirectFlag(boolean flag)
|
void |
setException(java.lang.Throwable ex)
|
void |
setInterfaceNames(java.lang.String[] _interfaceNames)
|
void |
setIsOneWayFLag(boolean _isOneWay)
|
void |
setMethod(java.lang.reflect.Method _method)
|
void |
setMethod(java.lang.String _methodName,
java.lang.Class[] argTypes)
|
void |
setObjectId(long id)
|
void |
setRequestFlag(boolean flag)
|
void |
setRequestType(int type)
|
void |
setResult(java.lang.Object obj)
|
void |
setServerUrl(java.lang.String _serverUrl)
|
void |
setSessionId(long _sessionId)
|
boolean |
supportsDynamicProxy()
|
static boolean |
supportsDynamicProxyLocal()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TunnelData
public TunnelData(long _sessionId,
long _objectId,
java.lang.String _className,
java.lang.String[] _interfaceNames,
int _requestType,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
- constructor used by Tunneling only
- Parameters:
methodName
- name of remote method in remote interfaceserverUrl
- remote host nameargs
- parmeters passing for the invoking metod
supportsDynamicProxyLocal
public static boolean supportsDynamicProxyLocal()
createStubRequest
public static Marshalable createStubRequest(long sessionId,
java.lang.String[] interfaceNames,
java.lang.String serverUrl)
createConstructRequest
public static Marshalable createConstructRequest(long sessionId,
java.lang.String className,
java.lang.String[] interfaceNames,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
createInvokeRequest
public static Marshalable createInvokeRequest(long sessionId,
long objectId,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.String serverUrl)
createStaticInvokeRequest
public static Marshalable createStaticInvokeRequest(long sessionId,
java.lang.String className,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
createReferenceRequest
public static Marshalable createReferenceRequest(long sessionId,
long objectId,
java.lang.String serverUrl)
createDestructRequest
public static Marshalable createDestructRequest(long sessionId,
long objectId)
createSessionRequest
public static Marshalable createSessionRequest(long[] sessionIds)
setRequestType
public void setRequestType(int type)
- Specified by:
setRequestType
in interface Marshalable
getRequestType
public int getRequestType()
- Specified by:
getRequestType
in interface Marshalable
getArguments
public java.lang.Object[] getArguments()
- Specified by:
getArguments
in interface Marshalable
setArguments
public void setArguments(java.lang.Object[] os)
- Specified by:
setArguments
in interface Marshalable
setResult
public void setResult(java.lang.Object obj)
- Specified by:
setResult
in interface Marshalable
getResult
public java.lang.Object getResult()
- Specified by:
getResult
in interface Marshalable
setException
public void setException(java.lang.Throwable ex)
- Specified by:
setException
in interface Marshalable
getException
public java.lang.Throwable getException()
- Specified by:
getException
in interface Marshalable
supportsDynamicProxy
public boolean supportsDynamicProxy()
- Specified by:
supportsDynamicProxy
in interface Marshalable
getRequestId
public int getRequestId()
- Specified by:
getRequestId
in interface Marshalable
getObjectId
public long getObjectId()
- Specified by:
getObjectId
in interface Marshalable
setObjectId
public void setObjectId(long id)
- Specified by:
setObjectId
in interface Marshalable
getInterfaceNames
public java.lang.String[] getInterfaceNames()
- Specified by:
getInterfaceNames
in interface Marshalable
setInterfaceNames
public void setInterfaceNames(java.lang.String[] _interfaceNames)
getConstructor
public java.lang.reflect.Constructor getConstructor()
- Specified by:
getConstructor
in interface Marshalable
setConstructor
public void setConstructor(java.lang.Class[] _argTypes)
- Specified by:
setConstructor
in interface Marshalable
getMethod
public java.lang.reflect.Method getMethod(java.lang.Class cl)
- Specified by:
getMethod
in interface Marshalable
setMethod
public void setMethod(java.lang.String _methodName,
java.lang.Class[] argTypes)
- Specified by:
setMethod
in interface Marshalable
setMethod
public void setMethod(java.lang.reflect.Method _method)
getSessionId
public long getSessionId()
- Specified by:
getSessionId
in interface Marshalable
setSessionId
public void setSessionId(long _sessionId)
- Specified by:
setSessionId
in interface Marshalable
getServerUrl
public java.lang.String getServerUrl()
- Specified by:
getServerUrl
in interface Marshalable
setServerUrl
public void setServerUrl(java.lang.String _serverUrl)
- Specified by:
setServerUrl
in interface Marshalable
getCodebase
public java.lang.String getCodebase()
- Specified by:
getCodebase
in interface Marshalable
setCodebase
public void setCodebase(java.lang.String _codebase)
- Specified by:
setCodebase
in interface Marshalable
isRequest
public boolean isRequest()
- Specified by:
isRequest
in interface Marshalable
setRequestFlag
public void setRequestFlag(boolean flag)
- Specified by:
setRequestFlag
in interface Marshalable
isDirect
public boolean isDirect()
- Specified by:
isDirect
in interface Marshalable
setDirectFlag
public void setDirectFlag(boolean flag)
- Specified by:
setDirectFlag
in interface Marshalable
isOneWay
public boolean isOneWay()
- Specified by:
isOneWay
in interface Marshalable
setIsOneWayFLag
public void setIsOneWayFLag(boolean _isOneWay)
- Specified by:
setIsOneWayFLag
in interface Marshalable
toString
public java.lang.String toString()
createMethodString
public static java.lang.String createMethodString(java.lang.String methodName,
java.lang.Class[] argTypes)
Copyright © JProxy LLC. All Rights Reserved.