public class ContentRegExParamBuilder extends AbstractContentRegExParamBuilder
AbstractContentRegExParamBuilder
.contentParam
Constructor and Description |
---|
ContentRegExParamBuilder() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getGroupNames(Pattern pattern)
The default implementation defined by the superclass dynamically finds the group names
upon each call to
AbstractContentRegExParamBuilder.buildParams(Map, HttpServletRequest) . |
Collection<Pattern> |
getPatterns()
Get the configured patterns.
|
protected Collection<Pattern> |
getPatterns(Map<String,String> params,
javax.servlet.http.HttpServletRequest request)
Implementation for the
AbstractContentRegExParamBuilder.getPatterns(Map, HttpServletRequest)
method; this will return the configured collection of patterns. |
void |
setPatterns(Collection<Pattern> patterns)
Set the patterns used to search the content for parameters.
|
String |
toString()
Provide a useful string representation of this ParamBuilder,
showing the content parameter name, the configured patterns,
and the output parameters as defined in the patterns.
|
addRegExValues, buildParams, getContentParam, setContentParam
afterPropertiesSet, compareTo, extraAfterPropertiesSet, getOrder, setOrder
getBeanName, setBeanName
protected Collection<Pattern> getPatterns(Map<String,String> params, javax.servlet.http.HttpServletRequest request)
AbstractContentRegExParamBuilder.getPatterns(Map, HttpServletRequest)
method; this will return the configured collection of patterns.getPatterns
in class AbstractContentRegExParamBuilder
protected Set<String> getGroupNames(Pattern pattern)
AbstractContentRegExParamBuilder.buildParams(Map, HttpServletRequest)
.
Since we only have static patterns, we predetermine the group names as soon as the
patterns are defined (in the setPatterns() method), and simply return them here.getGroupNames
in class AbstractContentRegExParamBuilder
public Collection<Pattern> getPatterns()
public void setPatterns(Collection<Pattern> patterns)
getGroupNames(Pattern)
method.patterns
- Copyright © 2013. All rights reserved.