public class ProxyServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
ProxyServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Performs an HTTP GET request
|
void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Performs an HTTP POST request
|
String |
getServletInfo() |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize the
ProxyServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig servletConfig)
ProxyServletinit in interface javax.servlet.Servletinit in class javax.servlet.GenericServletservletConfig - The Servlet configuration passed in by the servlet conatinerpublic void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServlethttpServletRequest - The HttpServletRequest object passed
in by the servlet engine representing the
client request to be proxiedhttpServletResponse - The HttpServletResponse object by which
we can send a proxied response to the clientIOExceptionjavax.servlet.ServletExceptionpublic void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServlethttpServletRequest - The HttpServletRequest object passed
in by the servlet engine representing the
client request to be proxiedhttpServletResponse - The HttpServletResponse object by which
we can send a proxied response to the clientIOExceptionjavax.servlet.ServletExceptionpublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletCopyright © 2013. All Rights Reserved.