@Configurable public class HttpMessageProxy extends AbstractTargetDispatchRule
<web-app xmlns:resin="urn:java:com.caucho.resin"> <resin:HttpProxy regexp="^/remote"> <address>127.0.0.1:8080</address> </resin:HttpProxy> </web-app>
Modifier and Type | Class and Description |
---|---|
static class |
HttpMessageProxy.ProxyFilterChain |
static class |
HttpMessageProxy.ProxyRequest |
Constructor and Description |
---|
HttpMessageProxy() |
Modifier and Type | Method and Description |
---|---|
FilterChain |
createDispatch(DispatcherType type,
java.lang.String uri,
java.lang.String queryString,
java.lang.String target,
FilterChain next) |
void |
init() |
void |
setGroup(java.lang.String name)
Adds a backend HTTP server address like "127.0.0.1:8081"
|
getTarget, rewriteDefault, rewriteTarget, setAbsoluteTarget, setTarget, setTargetHost
@Configurable public void setGroup(java.lang.String name)
address
- the backend address likst "127.0.0.1:8081"@PostConstruct public void init() throws ConfigException
init
in class AbstractTargetDispatchRule
ConfigException
public FilterChain createDispatch(DispatcherType type, java.lang.String uri, java.lang.String queryString, java.lang.String target, FilterChain next)
createDispatch
in class AbstractRegexpDispatchRule