Package org.apache.pivot.web.server
Class ProxyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.pivot.web.server.ProxyServlet
-
- All Implemented Interfaces:
java.io.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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUFFER_SIZE
static java.lang.String
HOSTNAME_PARAM
static java.lang.String
METHOD_DELETE
static java.lang.String
METHOD_GET
static java.lang.String
METHOD_POST
static java.lang.String
METHOD_PUT
static java.lang.String
PATH_PARAM
static java.lang.String
PORT_PARAM
-
Constructor Summary
Constructors Constructor Description ProxyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
METHOD_GET
public static final java.lang.String METHOD_GET
- See Also:
- Constant Field Values
-
METHOD_POST
public static final java.lang.String METHOD_POST
- See Also:
- Constant Field Values
-
METHOD_PUT
public static final java.lang.String METHOD_PUT
- See Also:
- Constant Field Values
-
METHOD_DELETE
public static final java.lang.String METHOD_DELETE
- See Also:
- Constant Field Values
-
HOSTNAME_PARAM
public static final java.lang.String HOSTNAME_PARAM
- See Also:
- Constant Field Values
-
PORT_PARAM
public static final java.lang.String PORT_PARAM
- See Also:
- Constant Field Values
-
PATH_PARAM
public static final java.lang.String PATH_PARAM
- See Also:
- Constant Field Values
-
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
java.io.IOException
javax.servlet.ServletException
-
-