org.bsf.remoting.http
Class HttpServiceRequest
java.lang.Object
|
+--org.bsf.remoting.http.HttpServiceRequest
- All Implemented Interfaces:
- java.io.Serializable
- public class HttpServiceRequest
- extends java.lang.Object
- implements java.io.Serializable
This class encapsulates the items of the client request.
The service called can be an EJBDefinition (@see org.bsf.framework.treatment.EJBDefinition)
corresponding to a Stateless EJB or a key to a service (@see org.bsf.framework.client.session.HttpServiceKey)
when the client interacts with a Stateful Bean
- See Also:
- Serialized Form
Constructor Summary |
HttpServiceRequest(EJBDefinition remoteService,
java.lang.String methodToCall,
java.lang.Class[] paramTypes,
java.lang.Object[] args)
Constructor when using a stateless service |
HttpServiceRequest(HttpServiceKey keyToStatefullService,
java.lang.String methodToCall,
java.lang.Class[] paramTypes,
java.lang.Object[] args)
Constructor for a statefull service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
remoteService
private EJBDefinition remoteService
methodName
private java.lang.String methodName
paramTypesName
private java.lang.String[] paramTypesName
args
private java.lang.Object[] args
keyToStatefullService
private HttpServiceKey keyToStatefullService
HttpServiceRequest
public HttpServiceRequest(EJBDefinition remoteService,
java.lang.String methodToCall,
java.lang.Class[] paramTypes,
java.lang.Object[] args)
- Constructor when using a stateless service
- Parameters:
remoteService
- methodToCall
- paramTypes
- args
-
HttpServiceRequest
public HttpServiceRequest(HttpServiceKey keyToStatefullService,
java.lang.String methodToCall,
java.lang.Class[] paramTypes,
java.lang.Object[] args)
- Constructor for a statefull service
- Parameters:
keyToStatefullService
- methodToCall
- paramTypes
- args
-
isStatefull
public boolean isStatefull()
isStateless
public boolean isStateless()
getRemoteService
public EJBDefinition getRemoteService()
setRemoteService
public void setRemoteService(EJBDefinition remoteService)
getMethodName
public java.lang.String getMethodName()
setMethodName
public void setMethodName(java.lang.String methodName)
getParamTypes
public java.lang.Class[] getParamTypes()
- Returns:
- The array of params of the invoked method.
setParamTypes
public void setParamTypes(java.lang.Class[] paramTypes)
getArgs
public java.lang.Object[] getArgs()
setArgs
public void setArgs(java.lang.Object[] args)
getKeyToStatefullService
public HttpServiceKey getKeyToStatefullService()
setKeyToStatefullService
public void setKeyToStatefullService(HttpServiceKey keyToStatefullService)