@NotThreadSafe public abstract class AbstractXFilter extends com.helger.servlet.filter.AbstractHttpServletFilter
AbstractXServlet and
should bring similar abstraction level.| Constructor and Description |
|---|
AbstractXFilter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doHttpFilter(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
javax.servlet.FilterChain aChain) |
protected com.helger.commons.callback.CallbackList<IXServletExceptionHandler> |
exceptionHandler() |
protected boolean |
isMultipartEnabled() |
void |
onFilterAfter(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.web.scope.IRequestWebScope aRequestScope)
Invoked after the rest of the request was processed.
|
com.helger.commons.state.EContinue |
onFilterBefore(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.web.scope.IRequestWebScope aRequestScope)
Invoked before the rest of the request is processed.
|
protected void |
setMultipartEnabled(boolean bMultipartEnabled)
Enable/disable multipart handling in this filter (works only if the request
scope is created here)
|
String |
toString() |
@Nonnull @ReturnsMutableObject protected final com.helger.commons.callback.CallbackList<IXServletExceptionHandler> exceptionHandler()
null.protected final boolean isMultipartEnabled()
true if multipart handling is enabled (default),
false if not.protected final void setMultipartEnabled(boolean bMultipartEnabled)
bMultipartEnabled - true to enable, false to disable@Nonnull @OverrideOnDemand public com.helger.commons.state.EContinue onFilterBefore(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope) throws IOException, javax.servlet.ServletException
aHttpRequest - The HTTP request. Never null.aHttpResponse - The HTTP response. Never null.aRequestScope - Current request scope. Never null.EContinue.CONTINUE to continue processing the request,
EContinue.BREAK otherwise.IOException - In case of IO errorjavax.servlet.ServletException - In case of business level error@OverrideOnDemand public void onFilterAfter(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope) throws IOException, javax.servlet.ServletException
aHttpRequest - The HTTP request. Never null.aHttpResponse - The HTTP response. Never null.aRequestScope - Current request scope. Never null.IOException - In case of IO errorjavax.servlet.ServletException - In case of business level errorpublic void doHttpFilter(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull javax.servlet.FilterChain aChain) throws IOException, javax.servlet.ServletException
doHttpFilter in class com.helger.servlet.filter.AbstractHttpServletFilterIOExceptionjavax.servlet.ServletExceptionpublic String toString()
toString in class com.helger.servlet.filter.AbstractServletFilterCopyright © 2017–2019 Philip Helger. All rights reserved.