|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.server.impl.ThreadLocalHttpContext
public final class ThreadLocalHttpContext
Implementation of HttpContext using ThreadLocal
to store HttpRequestContext and HttpResponseContext instances
associated with threads.
| Constructor Summary | |
|---|---|
ThreadLocalHttpContext()
|
|
| Method Summary | |
|---|---|
HttpContext |
get()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get the mutable properties. |
HttpRequestContext |
getRequest()
Get the HTTP request information. |
HttpResponseContext |
getResponse()
Get the HTTP response information. |
ExtendedUriInfo |
getUriInfo()
Get the extended URI information. |
boolean |
isTracingEnabled()
Check if tracing is enabled. |
void |
set(HttpContext context)
Set the HttpContext for the current thread. |
void |
trace(java.lang.String message)
Add a trace message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocalHttpContext()
| Method Detail |
|---|
public void set(HttpContext context)
HttpContext for the current thread.
public HttpContext get()
public ExtendedUriInfo getUriInfo()
HttpContext
getUriInfo in interface HttpContextpublic HttpRequestContext getRequest()
HttpContext
getRequest in interface HttpContextpublic HttpResponseContext getResponse()
HttpContext
getResponse in interface HttpContextpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
HttpContextCare should be taken not to clear the properties or remove properties that are unknown otherwise unspecified behaviour may result.
getProperties in interface HttpContextpublic boolean isTracingEnabled()
Traceable
isTracingEnabled in interface Traceablepublic void trace(java.lang.String message)
Traceable
A trace message will be added if Traceable.isTracingEnabled() returns
true and tracing contraints are satisfied.
trace in interface Traceablemessage - the trace message to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||