public class StaticForwardingService extends AbstractParamBuilderService
<bean id="/someService" class="vodserver.service.SimpleForwardingService">
<property name="forward" value="/otherService?param1=val1" />
</bean>
This will cause all requests to /someService to be forwarded to /otherService?param1=val1paramBuilders
LOG
Constructor and Description |
---|
StaticForwardingService() |
Modifier and Type | Method and Description |
---|---|
String |
getForward()
Get the configured service to forward to
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the service request.
|
void |
setForward(String forward)
Set the service to forward to
|
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 getForward()
public void setForward(String forward)
forward
- Copyright © 2013. All rights reserved.