public class XServletFilterConsistency extends Object implements IXServletLowLevelFilter
| Modifier and Type | Field and Description |
|---|---|
static XServletFilterConsistency |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
protected |
XServletFilterConsistency() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRequest(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.http.EHttpVersion eHttpVersion,
com.helger.commons.http.EHttpMethod eHttpMethod,
boolean bInvokeHandler,
Throwable aCaughtException,
boolean bIsHandledAsync)
Invoked after an XServlet request was handled.
|
com.helger.commons.state.EContinue |
beforeRequest(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.http.EHttpVersion eHttpVersion,
com.helger.commons.http.EHttpMethod eHttpMethod)
Invoked before an XServlet request is handled.
|
protected void |
checkCharacterEncoding(String sRequestURL,
String sCharacterEncoding,
int nStatusCode,
com.helger.commons.http.EHttpMethod eHttpMethod) |
protected void |
checkContentType(String sRequestURL,
String sContentType,
int nStatusCode,
com.helger.commons.http.EHttpMethod eHttpMethod) |
protected void |
checkHeaders(String sRequestURL,
com.helger.commons.http.HttpHeaderMap aHeaders,
int nStatusCode,
com.helger.commons.http.EHttpMethod eHttpMethod) |
protected void |
checkStatusCode(String sRequestURL,
int nStatusCode,
com.helger.commons.http.EHttpMethod eHttpMethod) |
public static final XServletFilterConsistency INSTANCE
@Nonnull public com.helger.commons.state.EContinue beforeRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHttpVersion, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
IXServletLowLevelFilterbeforeRequest in interface IXServletLowLevelFilteraHttpRequest - HTTP servlet request. Never null.aHttpResponse - HTTP servlet response. Never null.eHttpVersion - HTTP version. Never null.eHttpMethod - HTTP method. Never null.EContinue.CONTINUE to continue processing, or
EContinue.BREAK if this request should not be processed, in
which case the HttpServletResponse must contain a valid response!@OverrideOnDemand protected void checkStatusCode(@Nonnull String sRequestURL, int nStatusCode, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
sRequestURL - The request URL.nStatusCode - The response status code.eHttpMethod - Used HTTP Method@OverrideOnDemand protected void checkCharacterEncoding(@Nonnull String sRequestURL, @Nullable String sCharacterEncoding, int nStatusCode, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
sRequestURL - The request URL.sCharacterEncoding - The response character encoding.nStatusCode - The response status code.eHttpMethod - Used HTTP Method@OverrideOnDemand protected void checkContentType(@Nonnull String sRequestURL, @Nullable String sContentType, int nStatusCode, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
sRequestURL - The request URL.sContentType - The response content type.nStatusCode - The response status code.eHttpMethod - Used HTTP Method@OverrideOnDemand protected void checkHeaders(@Nonnull String sRequestURL, @Nonnull com.helger.commons.http.HttpHeaderMap aHeaders, int nStatusCode, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
sRequestURL - The request URL.aHeaders - All response HTTP headers.nStatusCode - The response status code.eHttpMethod - Used HTTP Methodpublic void afterRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHttpVersion, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod, boolean bInvokeHandler, @Nullable Throwable aCaughtException, boolean bIsHandledAsync)
IXServletLowLevelFilterafterRequest in interface IXServletLowLevelFilteraHttpRequest - HTTP servlet request. Never null.aHttpResponse - HTTP servlet response. Never null.eHttpVersion - HTTP version. Never null.eHttpMethod - HTTP method. Never null.bInvokeHandler - true if the main handler was invoked, false
if
IXServletLowLevelFilter.beforeRequest(HttpServletRequest, HttpServletResponse, EHttpVersion, EHttpMethod)
avoided the execution of the request.aCaughtException - An optionally caught exception. May be null. The
exception was already logged, so please don't log it again!bIsHandledAsync - true if the request is handled asynchronouslyCopyright © 2017–2019 Philip Helger. All rights reserved.