org.mmbase.servlet
Class servjumpers

org.mmbase.servlet.JamesServlet
  |
  +--org.mmbase.servlet.servjumpers

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.

Version:
24 Apr 2001
Author:
Daniel Ockeloen

Constructor Summary
servjumpers()
           
 
Method Summary
 void init(org.mmbase.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
 

Constructor Detail

servjumpers

public servjumpers()
Method Detail

init

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

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws org.mmbase.servlet.ServletException,
                    java.io.IOException
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.
Parameters:
req - The HTTP Servlet request
res - The HTTP Servlet response


MMBase 2002