@Configurable public class HttpProxy 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 |
HttpProxy.ProxyFilterChain |
static class |
HttpProxy.ProxyRequest |
Constructor and Description |
---|
HttpProxy() |
Modifier and Type | Method and Description |
---|---|
void |
addAddress(java.lang.String address)
Adds a backend HTTP server address like "127.0.0.1:8081"
|
void |
addBackend(LoadBalanceBackend backend) |
void |
addHost(java.lang.String host) |
LoadBalanceBackend |
createBackend() |
FilterChain |
createDispatch(DispatcherType type,
java.lang.String uri,
java.lang.String queryString,
java.lang.String target,
FilterChain next) |
void |
init() |
void |
setAddresses(java.lang.String addresses) |
void |
setConnectionMin(int connectionMin) |
void |
setConnectTimeout(Period connectTimeout) |
void |
setIdleTime(Period idleTime) |
void |
setRecoverTime(Period recoverTime) |
void |
setSocketTimeout(Period socketTimeout) |
void |
setStrategy(java.lang.String strategy)
Sets the strategy for the load balancer
|
void |
setWarmupTime(Period warmupTime) |
getTarget, rewriteDefault, rewriteTarget, setAbsoluteTarget, setTarget, setTargetHost
@Configurable public void addAddress(java.lang.String address)
address
- the backend address like "127.0.0.1:8081"@Configurable public void setAddresses(java.lang.String addresses)
@Configurable public void addHost(java.lang.String host)
@Configurable public LoadBalanceBackend createBackend()
@Configurable public void addBackend(LoadBalanceBackend backend)
@Configurable public void setStrategy(java.lang.String strategy)
@Configurable public void setConnectTimeout(Period connectTimeout)
@Configurable public void setConnectionMin(int connectionMin)
@Configurable public void setSocketTimeout(Period socketTimeout)
@Configurable public void setIdleTime(Period idleTime)
@Configurable public void setRecoverTime(Period recoverTime)
@Configurable public void setWarmupTime(Period warmupTime)
@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