Class sun.server.http.ProxyServlet
All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.http.ProxyServlet
java.lang.Object
|
+----java.servlet.GenericServlet
|
+----java.servlet.http.HttpServlet
|
+----sun.server.http.ProxyServlet
- public class ProxyServlet
- extends HttpServlet
- implements FetchContents
Proxy Servlet
-
ProxyServlet()
- Creates a new proxy servlet.
-
fetch(URL)
- The method that is invoked when there is a cache miss.
-
getServletInfo()
- Returns information about this servlet.
-
init(ServletStub)
- Initializes the proxy servlet.
-
service(HttpServletRequest, HttpServletResponse)
- Services a single proxy request from the client.
ProxyServlet
public ProxyServlet()
- Creates a new proxy servlet.
init
public void init(ServletStub stub) throws ServletException
- Initializes the proxy servlet.
- Overrides:
- init in class GenericServlet
service
public void service(HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException
- Services a single proxy request from the client.
- Parameters:
- req - the servlet request
- res - the servlet response
- Throws: IOException
- if an I/O error has occurred
- Overrides:
- service in class HttpServlet
getServletInfo
public String getServletInfo()
- Returns information about this servlet.
- Overrides:
- getServletInfo in class GenericServlet
fetch
public URLContents fetch(URL url) throws IOException
- The method that is invoked when there is a cache miss.
- Parameters:
- url - - The URL for which there was a cache miss.
- The - URLContents which describe the contents of the URL.
- Throws: IOException
- when there is an IOException while fetching the
contents.
- Throws: MalformedURLException
- when the URL is malformed
All Packages Class Hierarchy This Package Previous Next Index