org.apache.pivot.web.server
Class ProxyServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.pivot.web.server.ProxyServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ProxyServlet
extends HttpServlet

HTTP proxy that allows an unsigned applet to issue web queries to services outside of its origin server.

See Also:
Serialized Form

Field Summary
static int BUFFER_SIZE
           
static String HOSTNAME_PARAM
           
static String METHOD_DELETE
           
static String METHOD_GET
           
static String METHOD_POST
           
static String METHOD_PUT
           
static String PATH_PARAM
           
static String PORT_PARAM
           
 
Constructor Summary
ProxyServlet()
           
 
Method Summary
 void destroy()
           
 void init(ServletConfig config)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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

METHOD_GET

public static final String METHOD_GET
See Also:
Constant Field Values

METHOD_POST

public static final String METHOD_POST
See Also:
Constant Field Values

METHOD_PUT

public static final String METHOD_PUT
See Also:
Constant Field Values

METHOD_DELETE

public static final String METHOD_DELETE
See Also:
Constant Field Values

HOSTNAME_PARAM

public static final String HOSTNAME_PARAM
See Also:
Constant Field Values

PORT_PARAM

public static final String PORT_PARAM
See Also:
Constant Field Values

PATH_PARAM

public static final String PATH_PARAM
See Also:
Constant Field Values

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

ProxyServlet

public ProxyServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws IOException,
                       ServletException
Overrides:
service in class HttpServlet
Throws:
IOException
ServletException