public class ParamBuilderForwardingService extends AbstractParamBuilderService
ParamBuilder
s, then forward
to the value of the forwardParam
parameter. Usually this service is
configured using Spring with a bean definition like this:
<bean id="/someService" class="vodserver.service.ParamBuilderForwardingService">
<property name="paramBuilders">
<list>
<bean class="vodserver.parambuilder.StaticParamBuilder>
<property name="staticParams>
<map>
<entry key="someParamName" value="/otherService?prm1=xxx&prm2=yyy"/>
</map>
</property>
</bean>
</list>
</property>
<property name="forwardParam" value="someParamName" />
</bean>
This example definition is basically a static forwarder; whenever http://vodserver:port/someService is called,
it will forward to /otherService?prm1=xxx&prm2=yyy.paramBuilders
LOG
Constructor and Description |
---|
ParamBuilderForwardingService() |
Modifier and Type | Method and Description |
---|---|
String |
getForwardParam()
Get the parameter from which to retrieve the forward URI.
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the service request.
|
void |
setForwardParam(String forwardParam)
Set the parameter from which to retrieve the forward URI.
|
String |
toString()
Provide a string representation of the configuration of this service.
|
appendParamBuilderInfo, buildParams, extraAfterPropertiesSet, extraExtraAfterPropertiesSet, getParamBuilders, setParamBuilders
afterPropertiesSet
getBeanName, setBeanName
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
ParamBuilder
s, look up
the value for the configured forwardParam
parameter, then forward to that value.IOException
javax.servlet.ServletException
public String getForwardParam()
forwardParam
- public void setForwardParam(String forwardParam)
forwardParam
- Copyright © 2013. All rights reserved.