public class WebContentParamBuilder extends AbstractParamBuilder
This ParamBuilder implementation will retrieve the contents for some configured URL, and store the content as a parameter value. The parameter name under which the content is stored, as well as the HTTP headers used to execute the request, are also configurable.
| Constructor and Description |
|---|
WebContentParamBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildParams(Map<String,String> params,
javax.servlet.http.HttpServletRequest request)
Execute the request, and store the result using the configured content output
parameter name.
|
String |
getContentOutputParam()
Get the configured content output parameter name.
|
String |
getContentUrlParam()
Get the configured content URL parameter name.
|
String |
getHeaderParamPrefix()
Get the configured header parameter name prefix.
|
void |
setContentOutputParam(String contentOutputParam)
Set the name of the parameter to which the content will be stored.
|
void |
setContentUrlParam(String contentUrlParam)
Set the name of the parameter that contains the URL to retrieve the content from.
|
void |
setHeaderParamPrefix(String headerParamPrefix)
Set the parameter name prefix for a group of parameters containing
request header names and values.
|
String |
toString()
Provide a useful string representation of this ParamBuilder,
showing the content URL parameter name, the content output
parameter name, and the header parameter name prefix.
|
afterPropertiesSet, compareTo, extraAfterPropertiesSet, getOrder, setOrdergetBeanName, setBeanNamepublic void buildParams(Map<String,String> params, javax.servlet.http.HttpServletRequest request)
params - The parameters map to which parameters can be added or existing parameters can be retrieved.request - The original request, useful to retrieve request parameters for example.public String getContentUrlParam()
public void setContentUrlParam(String contentUrlParam)
contentUrlParam - public String getContentOutputParam()
public void setContentOutputParam(String contentOutputParam)
contentOutputParam - public String getHeaderParamPrefix()
public void setHeaderParamPrefix(String headerParamPrefix)
headerParamPrefix - Copyright © 2013. All rights reserved.