org.mmbase.servlet
Class servjumpers

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.mmbase.servlet.JamesServlet
                    |
                    +--org.mmbase.servlet.servjumpers
All Implemented Interfaces:
java.io.Serializable, 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.

Version:
24 Apr 2001
Author:
Daniel Ockeloen
See Also:
Serialized Form

Constructor Summary
servjumpers()
           
 
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

servjumpers

public servjumpers()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.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 javax.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.
Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req - The HTTP Servlet request
res - The HTTP Servlet response


MMBase 2001