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.HttpServletHTTP 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 intBUFFER_SIZEstatic java.lang.StringHOSTNAME_PARAMstatic java.lang.StringMETHOD_DELETEstatic java.lang.StringMETHOD_GETstatic java.lang.StringMETHOD_POSTstatic java.lang.StringMETHOD_PUTstatic java.lang.StringPATH_PARAMstatic java.lang.StringPORT_PARAM
-
Constructor Summary
Constructors Constructor Description ProxyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit(javax.servlet.ServletConfig config)protected voidservice(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:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin 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:
servicein classjavax.servlet.http.HttpServlet- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
-