Filter
AddDefaultCharsetFilter
, CsrfPreventionFilterBase
, ExpiresFilter
, FailedRequestFilter
, HttpHeaderSecurityFilter
, RequestFilter
, SetCharacterEncodingFilter
public abstract class FilterBase extends java.lang.Object implements Filter
Modifier and Type | Field | Description |
---|---|---|
protected static StringManager |
sm |
Constructor | Description |
---|---|
FilterBase() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract Log |
getLogger() |
|
void |
init(FilterConfig filterConfig) |
Iterates over the configuration parameters and either logs a warning,
or throws an exception for any parameter that does not have a matching
setter in this filter.
|
protected boolean |
isConfigProblemFatal() |
Determines if an exception when calling a setter or an unknown
configuration attribute triggers the failure of the this filter which in
turn will prevent the web application from starting.
|
protected static final StringManager sm
protected abstract Log getLogger()
public void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
filterConfig
- The configuration information associated with the
filter instance being initialisedServletException
- if isConfigProblemFatal()
returns
true
and a configured parameter does not
have a matching setterprotected boolean isConfigProblemFatal()
true
if a problem should trigger the failure of this
filter, else false
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.