com.caucho.services.server
Class ServiceContext

java.lang.Object
  extended bycom.caucho.services.server.ServiceContext

public class ServiceContext
extends java.lang.Object

Context for a service, to handle request-specific information.


Method Summary
static void begin(javax.servlet.ServletRequest request, java.lang.String serviceName, java.lang.String objectId)
          Sets the request object prior to calling the service's method.
static void end()
          Cleanup at the end of a request.
static java.lang.String getObjectId()
          Returns the object id, corresponding to the ?id= of the URL.
static javax.servlet.ServletRequest getRequest()
          Returns the service request.
static java.lang.String getServiceName()
          Returns the service id, corresponding to the pathInfo of the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

begin

public static void begin(javax.servlet.ServletRequest request,
                         java.lang.String serviceName,
                         java.lang.String objectId)
                  throws javax.servlet.ServletException
Sets the request object prior to calling the service's method.

Parameters:
request - the calling servlet request
objectId - the object identifier
Throws:
javax.servlet.ServletException

getRequest

public static javax.servlet.ServletRequest getRequest()
Returns the service request.


getServiceName

public static java.lang.String getServiceName()
Returns the service id, corresponding to the pathInfo of the URL.


getObjectId

public static java.lang.String getObjectId()
Returns the object id, corresponding to the ?id= of the URL.


end

public static void end()
Cleanup at the end of a request.