public class HttpProxyServlet extends GenericServlet
Constructor and Description |
---|
HttpProxyServlet() |
Modifier and Type | Method and Description |
---|---|
void |
addAddress(java.lang.String address) |
void |
addBackend(LoadBalanceBackend backend) |
void |
addHost(java.lang.String host) |
LoadBalanceBuilder |
getLoadBalanceBuilder() |
void |
init()
Initialize the servlet with the server's sruns.
|
void |
service(ServletRequest request,
ServletResponse response)
Handle the request.
|
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) |
void |
setWarmupTime(Period warmupTime) |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString
public void addHost(java.lang.String host)
public void addAddress(java.lang.String address)
public void addBackend(LoadBalanceBackend backend)
public void setConnectTimeout(Period connectTimeout)
public void setConnectionMin(int connectionMin)
public void setSocketTimeout(Period socketTimeout)
public void setIdleTime(Period idleTime)
public void setRecoverTime(Period recoverTime)
public void setWarmupTime(Period warmupTime)
public void setStrategy(java.lang.String strategy)
public LoadBalanceBuilder getLoadBalanceBuilder()
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void service(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
request
- request information. Normally servlets will cast this
to HttpServletRequest
response
- response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOException