public abstract class AbstractRequestWrapperFactory extends Object
HttpServletRequest
wrappers.Constructor and Description |
---|
AbstractRequestWrapperFactory()
Construct.
|
Modifier and Type | Method and Description |
---|---|
static Pattern[] |
commaDelimitedListToPatternArray(String commaDelimitedPatterns)
Convert a given comma delimited list of regular expressions into an array of compiled
Pattern |
static String[] |
commaDelimitedListToStringArray(String commaDelimitedStrings)
Convert a given comma delimited list of regular expressions into an array of String
|
javax.servlet.http.HttpServletRequest |
getWrapper(javax.servlet.http.HttpServletRequest request)
Wrap the given request.
|
boolean |
isEnabled() |
static String |
listToCommaDelimitedString(List<String> stringList)
Convert an array of strings in a comma delimited string
|
static boolean |
matchesOne(String str,
Pattern... patterns) |
protected abstract boolean |
needsWrapper(javax.servlet.http.HttpServletRequest request) |
abstract javax.servlet.http.HttpServletRequest |
newRequestWrapper(javax.servlet.http.HttpServletRequest request) |
void |
setEnabled(boolean enabled)
Enable or disable the filter
|
public final boolean isEnabled()
true
if filter is enabledpublic final void setEnabled(boolean enabled)
enabled
- public javax.servlet.http.HttpServletRequest getWrapper(javax.servlet.http.HttpServletRequest request)
request
- request to wrapprotected abstract boolean needsWrapper(javax.servlet.http.HttpServletRequest request)
request
- public abstract javax.servlet.http.HttpServletRequest newRequestWrapper(javax.servlet.http.HttpServletRequest request)
request
- public static Pattern[] commaDelimitedListToPatternArray(String commaDelimitedPatterns)
Pattern
commaDelimitedPatterns
- null
)public static String[] commaDelimitedListToStringArray(String commaDelimitedStrings)
commaDelimitedStrings
- null
)public static String listToCommaDelimitedString(List<String> stringList)
stringList
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.