|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.services.server.ServiceContext
public class ServiceContext
Context for a service, to handle request-specific information.
| Method Summary | |
|---|---|
void |
addHeader(String header,
Object value)
Adds a header. |
static void |
begin(ServletRequest request,
ServletResponse response,
String serviceName,
String objectId)
Sets the request object prior to calling the service's method. |
static void |
end()
Cleanup at the end of a request. |
static ServiceContext |
getContext()
Returns the service request. |
static Object |
getContextHeader(String header)
Gets a header from the context. |
static String |
getContextObjectId()
Returns the object id, corresponding to the ? |
static ServletRequest |
getContextRequest()
Returns the service request. |
static ServletResponse |
getContextResponse()
Returns the service request. |
static String |
getContextServiceName()
Returns the service id, corresponding to the pathInfo of the URL. |
Object |
getHeader(String header)
Gets a header. |
static String |
getObjectId()
Deprecated. |
static ServletRequest |
getRequest()
Deprecated. |
static String |
getServiceName()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void begin(ServletRequest request,
ServletResponse response,
String serviceName,
String objectId)
throws ServletException
request - the calling servlet requestserviceId - the service identifierobjectId - the object identifier
ServletExceptionpublic static ServiceContext getContext()
public void addHeader(String header,
Object value)
public Object getHeader(String header)
public static Object getContextHeader(String header)
public static ServletRequest getContextRequest()
public static ServletResponse getContextResponse()
public static String getContextServiceName()
public static String getContextObjectId()
public static void end()
public static ServletRequest getRequest()
public static String getServiceName()
public static String getObjectId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||