public interface Selector
ContentBufferingFilter
and HttpServletResponseBuffer
to determine whether the response should be buffered.
For a basic implementation, use BasicSelector
.Modifier and Type | Method and Description |
---|---|
String |
excludePatternInUse(javax.servlet.http.HttpServletRequest request)
Return pattern used for excluding request path if the path is excluded or
null . |
boolean |
shouldAbortBufferingForHttpStatusCode(int statusCode)
Determine whether buffering should be used for a particular HTTP status code.
|
boolean |
shouldBufferForContentType(String contentType,
String mimeType,
String encoding)
Determine whether buffering should be used for a particular content-type.
|
boolean |
shouldBufferForRequest(javax.servlet.http.HttpServletRequest request)
Determine whether buffering should be used for a particular request.
|
boolean shouldBufferForContentType(String contentType, String mimeType, String encoding)
contentType
- e.g. "text/html; charset=iso-8859-1"mimeType
- e.g "text/html"encoding
- e.g. "iso-8859-1" (may be null)boolean shouldAbortBufferingForHttpStatusCode(int statusCode)
statusCode
- e.g. 200, 302, 404, 500, etc. See constants in
HttpServletResponse
.boolean shouldBufferForRequest(javax.servlet.http.HttpServletRequest request)
String excludePatternInUse(javax.servlet.http.HttpServletRequest request)
null
.request
- servlet requestnull
Copyright © 2015. All Rights Reserved.