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=val1paramBuildersLOG| 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, setParamBuildersafterPropertiesSetgetBeanName, setBeanNamepublic void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
ParamBuilders, look up
the value for the configured #forwardParam parameter, then forward to that value.IOExceptionjavax.servlet.ServletExceptionpublic String getForward()
public void setForward(String forward)
forward - Copyright © 2013. All rights reserved.