pivot.web.server
Class ProxyServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
pivot.web.server.ProxyServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ProxyServlet
- extends javax.servlet.http.HttpServlet
HTTP proxy that allows an unsigned applet to issue web queries to services
outside of its origin server.
- Author:
- gbrown, tvolkert
- See Also:
- Serialized Form
Method Summary |
void |
destroy()
|
void |
init(javax.servlet.ServletConfig config)
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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 |
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
ProxyServlet
public ProxyServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Servlet
- Overrides:
destroy
in class javax.servlet.GenericServlet
service
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException