public class HttpRequestContextImpl extends AbstractBoundContext<HttpServletRequest> implements HttpRequestContext
Constructor and Description |
---|
HttpRequestContextImpl(String contextId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate the Context.
|
boolean |
associate(HttpServletRequest request)
Associate the context with the storage (for this thread).
|
void |
deactivate()
Deactivate the Context, destroying any instances if the context is invalid.
|
HttpServletRequest |
getHttpServletRequest() |
Class<? extends Annotation> |
getScope()
Get the scope type of the context object.
|
cleanup, dissociate, getBeanStore, setBeanStore
invalidate, isActive, isValid, removeState, setActive
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dissociate
invalidate
destroy
public HttpRequestContextImpl(String contextId)
public boolean associate(HttpServletRequest request)
BoundContext
BoundContext.associate(Object)
has been called, further calls
to BoundContext.associate(Object)
will be ignored, until the context has been subsequently BoundContext.dissociate(Object)
from
the storage.associate
in interface BoundContext<HttpServletRequest>
request
- the external storagepublic void activate()
ManagedContext
activate
in interface ManagedContext
activate
in class AbstractBoundContext<HttpServletRequest>
public void deactivate()
ManagedContext
deactivate
in interface ManagedContext
deactivate
in class AbstractBoundContext<HttpServletRequest>
public Class<? extends Annotation> getScope()
Context
public HttpServletRequest getHttpServletRequest()
Copyright © 2015. All Rights Reserved.