Package com.hybris.cockpitng.core.spring
Class RequestOperationContextManager
- java.lang.Object
-
- com.hybris.cockpitng.core.spring.RequestOperationContextManager
-
- All Implemented Interfaces:
java.util.EventListener,javax.servlet.ServletRequestListener
public class RequestOperationContextManager extends java.lang.Object implements javax.servlet.ServletRequestListenerServlet request listener that initializes request-operation scope context when request is initialized and detaches from it when request is destroyed.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATTRIBUTE_REQUEST_ID
-
Constructor Summary
Constructors Constructor Description RequestOperationContextManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetRequestId()Gets an identity of a request processed by current thread.voidrequestDestroyed(javax.servlet.ServletRequestEvent servletRequestEvent)voidrequestInitialized(javax.servlet.ServletRequestEvent servletRequestEvent)
-
-
-
Field Detail
-
ATTRIBUTE_REQUEST_ID
protected static final java.lang.String ATTRIBUTE_REQUEST_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequestId
public static java.lang.Object getRequestId()
Gets an identity of a request processed by current thread. If thread is not bound to any request,nullis returned.- Returns:
- identity of currently processed request or
nullif it doesn't exist
-
requestInitialized
public void requestInitialized(javax.servlet.ServletRequestEvent servletRequestEvent)
- Specified by:
requestInitializedin interfacejavax.servlet.ServletRequestListener
-
requestDestroyed
public void requestDestroyed(javax.servlet.ServletRequestEvent servletRequestEvent)
- Specified by:
requestDestroyedin interfacejavax.servlet.ServletRequestListener
-
-