|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sitemesh.webapp.contentfilter.BasicSelector
public class BasicSelector
Basic implementation of Selector. Will select OK responses that match a particular
MIME type, and (optionally) error pages. It will also only kick in once per request.
For more control, this can be subclassed, or replaced with a different implementation of
Selector.
| Constructor Summary | |
|---|---|
BasicSelector(boolean includeErrorPages,
String... mimeTypesToBuffer)
|
|
BasicSelector(String... mimeTypesToBuffer)
|
|
| Method Summary | |
|---|---|
protected boolean |
filterAlreadyAppliedForRequest(javax.servlet.http.HttpServletRequest request)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSelector(String... mimeTypesToBuffer)
public BasicSelector(boolean includeErrorPages,
String... mimeTypesToBuffer)
| Method Detail |
|---|
public boolean shouldBufferForContentType(String contentType,
String mimeType,
String encoding)
Selector
shouldBufferForContentType in interface SelectorcontentType - e.g. "text/html; charset=iso-8859-1"mimeType - e.g "text/html"encoding - e.g. "iso-8859-1" (may be null)public boolean shouldAbortBufferingForHttpStatusCode(int statusCode)
Selector
shouldAbortBufferingForHttpStatusCode in interface SelectorstatusCode - e.g. 200, 302, 404, 500, etc. See constants in
HttpServletResponse.public boolean shouldBufferForRequest(javax.servlet.http.HttpServletRequest request)
Selector
shouldBufferForRequest in interface Selectorprotected boolean filterAlreadyAppliedForRequest(javax.servlet.http.HttpServletRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||