public abstract class AbstractXFilterUnifiedResponse extends AbstractXFilter
UnifiedResponse objects.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXFilterUnifiedResponse() |
| Modifier and Type | Method and Description |
|---|---|
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 abstract com.helger.commons.state.EContinue |
onFilterBefore(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
com.helger.servlet.response.UnifiedResponse aUnifiedResponse)
Overwrite this method to fill your response.
|
doHttpFilter, exceptionHandler, isMultipartEnabled, onFilterAfter, setMultipartEnabled, toString@Nonnull protected abstract com.helger.commons.state.EContinue onFilterBefore(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.servlet.response.UnifiedResponse aUnifiedResponse) throws IOException, javax.servlet.ServletException
aRequestScope - The request scope to use. There is no direct access to the
HttpServletResponse. Everything must be handled with the
unified response! Never null.aUnifiedResponse - The response object to be filled. Never null.EContinue.BREAK is returned, the content of the unified
response is rendered to the HTTP servlet response and the filter
chain stops. On EContinue.CONTINUE the content of the unified
response is discarded and the filter chain continues as normal.IOException - In case of an errorjavax.servlet.ServletException - In case of an error@Nonnull @OverrideOnDemand public final 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
AbstractXFilteronFilterBefore in class AbstractXFilteraHttpRequest - 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 errorCopyright © 2017–2019 Philip Helger. All rights reserved.