Package com.helger.xservlet.filter
Class XServletFilterTrackRequest
- java.lang.Object
-
- com.helger.xservlet.filter.XServletFilterTrackRequest
-
- All Implemented Interfaces:
IXServletHighLevelFilter
public final class XServletFilterTrackRequest extends Object implements IXServletHighLevelFilter
A special filter that tracks the request. Each servlet request requires it's own instance of this class!- Since:
- 9.0.0
- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_ATTR_IDThe name of the request attribute uniquely identifying the request ID
-
Constructor Summary
Constructors Constructor Description XServletFilterTrackRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterRequest(com.helger.web.scope.IRequestWebScope aRequestScope)Invoked after an XServlet request was handled.voidbeforeRequest(com.helger.web.scope.IRequestWebScope aRequestScope)Invoked before an XServlet request is handled.
-
-
-
Field Detail
-
REQUEST_ATTR_ID
public static final String REQUEST_ATTR_ID
The name of the request attribute uniquely identifying the request ID- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeRequest
public void beforeRequest(@Nonnull com.helger.web.scope.IRequestWebScope aRequestScope)
Description copied from interface:IXServletHighLevelFilterInvoked before an XServlet request is handled. Exceptions occurring in this method will be caught by the exception handler registered in the XServlet.- Specified by:
beforeRequestin interfaceIXServletHighLevelFilter- Parameters:
aRequestScope- Request scope. Nevernull.
-
afterRequest
public void afterRequest(@Nonnull com.helger.web.scope.IRequestWebScope aRequestScope)
Description copied from interface:IXServletHighLevelFilterInvoked after an XServlet request was handled. After is always called, even if before request was canceled (in a finally)! Exceptions occurring in this method will be logged but ignored otherwise!- Specified by:
afterRequestin interfaceIXServletHighLevelFilter- Parameters:
aRequestScope- Request scope. Nevernull.
-
-