|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
com.caucho.servlets.HttpProxyServlet
public class HttpProxyServlet
HTTP proxy
<servlet> <servlet-name>http-proxy</servlet-name> <servlet-class>com.caucho.servlets.HttpProxyServlet</servlet-class> <init host='localhost:8081'/> </servlet>
Constructor Summary | |
---|---|
HttpProxyServlet()
|
Method Summary | |
---|---|
void |
addAddress(java.lang.String address)
Adds an address |
void |
addHost(java.lang.String host)
Adds a host |
void |
init()
Initialize the servlet with the server's sruns. |
void |
service(ServletRequest request,
ServletResponse response)
Handle the request. |
void |
setFailRecoverTime(Period period)
Sets the fail recover time. |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpProxyServlet()
Method Detail |
---|
public void addAddress(java.lang.String address)
public void addHost(java.lang.String host)
public void setFailRecoverTime(Period period)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |