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

Field Summary
private  java.lang.Object[] args
           
private  HttpServiceKey keyToStatefullService
           
private  java.lang.String methodName
           
private  java.lang.String[] paramTypesName
           
private  EJBDefinition remoteService
           
 
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
 
Method Summary
 java.lang.Object[] getArgs()
           
 HttpServiceKey getKeyToStatefullService()
           
 java.lang.String getMethodName()
           
 java.lang.Class[] getParamTypes()
           
 EJBDefinition getRemoteService()
           
 boolean isStatefull()
           
 boolean isStateless()
           
 void setArgs(java.lang.Object[] args)
           
 void setKeyToStatefullService(HttpServiceKey keyToStatefullService)
           
 void setMethodName(java.lang.String methodName)
           
 void setParamTypes(java.lang.Class[] paramTypes)
           
 void setRemoteService(EJBDefinition remoteService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 -
Method Detail

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)