Class servjumpers

All Implemented Interfaces:, javax.servlet.Servlet, javax.servlet.ServletConfig

public class servjumpers
extends JamesServlet

Servjumpers filters all url's to see if it has a jumper (specified in the jumpers builder). If a jumper is found, it will redirect the jumper to the designation url.

24 Apr 2001
Daniel Ockeloen
See Also:
Serialized Form

Constructor Summary
Method Summary
 void init(javax.servlet.ServletConfig config)
          Initializes the servlet.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Service call for filtering.
Methods inherited from class org.mmbase.servlet.JamesServlet
debug, decRefCount, finalize, getAddress, getAuthorization, getAuthorization, getCookie, getInitParameters, getModule, getParam, getParamVector, getProperties, getProperty, getRequestURL, incRefCount, isInternalVPROAddress
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public servjumpers()
Method Detail


public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Description copied from class: JamesServlet
Initializes the servlet.
init in class JamesServlet
Following copied from class: org.mmbase.servlet.JamesServlet
config - the servlet configuration


public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
Service call for filtering. Will be called by the server when a request is done by a user. Determines an url based on a jumper key, provided the original url (reclaimed from the request) is NOT a directory root and NOT a fully specified file.
So '/mypath/' or '/myfile.html' will not be filtered, but '/mypath' will.
service in class javax.servlet.http.HttpServlet
req - The HTTP Servlet request
res - The HTTP Servlet response

MMBase 2001