org.apache.nutch.servlet
Class Cached

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.nutch.servlet.Cached
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Cached
extends javax.servlet.http.HttpServlet

A servlet that serves raw Content of any mime type. If it fails with java.lang.OutOfMemoryError, you may have to increase heap size when starting container, such as -Xms1024M -Xmx1024M

Author:
John Xing
See Also:
Serialized Form

Constructor Summary
Cached()
           
 
Method Summary
 void destroy()
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init()
           
 void init(Configuration conf)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Constructor Detail

Cached

public Cached()
Method Detail

init

public void init()
Overrides:
init in class javax.servlet.GenericServlet

init

public void init(Configuration conf)

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
IOException


Copyright © 2006 The Apache Software Foundation