de.fuberlin.wiwiss.pubby.servlets
Class BaseURLServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by de.fuberlin.wiwiss.pubby.servlets.BaseServlet
              extended by de.fuberlin.wiwiss.pubby.servlets.BaseURLServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
DataURLServlet, PageURLServlet, WebURLServlet

public abstract class BaseURLServlet
extends BaseServlet

An abstract base servlet for servlets that manage a namespace of documents related to a set of resources. This class handles preprocessing of the request to extract the resource URI.

See Also:
Serialized Form

Constructor Summary
BaseURLServlet()
           
 
Method Summary
protected abstract  boolean doGet(MappedResource resource, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration config)
           
 boolean doGet(java.lang.String relativeURI, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration config)
           
 
Methods inherited from class de.fuberlin.wiwiss.pubby.servlets.BaseServlet
addQueryString, doGet, getAnonymousPropertyValues, getResourceDescription, init, send404, send404
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

BaseURLServlet

public BaseURLServlet()
Method Detail

doGet

protected abstract boolean doGet(MappedResource resource,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 Configuration config)
                          throws java.io.IOException,
                                 javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doGet

public boolean doGet(java.lang.String relativeURI,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     Configuration config)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doGet in class BaseServlet
Throws:
java.io.IOException
javax.servlet.ServletException