com.caucho.servlets
Class HttpProxyServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by com.caucho.servlets.HttpProxyServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class HttpProxyServlet
extends GenericServlet

HTTP proxy

 <servlet>
   <servlet-name>http-proxy</servlet-name>
   <servlet-class>com.caucho.servlets.HttpProxyServlet</servlet-class>
   <init host='localhost:8081'/>
 </servlet>
 

See Also:
Serialized Form

Field Summary
protected static java.util.logging.Logger log
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

HttpProxyServlet

public HttpProxyServlet()
Method Detail

addAddress

public void addAddress(java.lang.String address)
Adds an address


addHost

public void addHost(java.lang.String host)
Adds a host


setFailRecoverTime

public void setFailRecoverTime(Period period)
Sets the fail recover time.


init

public void init()
          throws ServletException
Initialize the servlet with the server's sruns.

Overrides:
init in class GenericServlet
Throws:
ServletException

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Handle the request.

Parameters:
request - request information. Normally servlets will cast this to HttpServletRequest
response - response information. Normally servlets will cast this to HttpServletRequest
Throws:
ServletException
java.io.IOException