org.deegree.enterprise.servlet
Class RedirectServlet
java.lang.Object
  
javax.servlet.GenericServlet
      
javax.servlet.http.HttpServlet
          
org.deegree.enterprise.servlet.RedirectServlet
- All Implemented Interfaces: 
 - Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
 
public class RedirectServlet
- extends javax.servlet.http.HttpServlet
 
To configure the RedirectServlet, have the tomcat match everything (/*) for this
 servlet. Add the following init parameters:
 
 - defaultLocation: set it to the location to be used if no rule matches
 
 - rule<xxx>: set the value to a String to match, followed by ",", followed by
 the String to replace it with
 
 
 Using a log4j logging level of debug will output all redirections that take place.
- Version:
 
  - $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
 
- Author:
 
  - Andreas Schmitz, last edited by: $Author: mschneider $
 
- See Also:
 - Serialized Form
 
 
 
| Methods inherited from class javax.servlet.http.HttpServlet | 
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service | 
 
| Methods inherited from class javax.servlet.GenericServlet | 
getInitParameter, getInitParameterNames, getServletContext, getServletName, init, log, log | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RedirectServlet
public RedirectServlet()
destroy
public void destroy()
- Specified by:
 destroy in interface javax.servlet.Servlet- Overrides:
 destroy in class javax.servlet.GenericServlet
 
 
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
 getServletConfig in interface javax.servlet.Servlet- Overrides:
 getServletConfig in class javax.servlet.GenericServlet
 
 
getServletInfo
public String getServletInfo()
- Specified by:
 getServletInfo in interface javax.servlet.Servlet- Overrides:
 getServletInfo in class javax.servlet.GenericServlet
 
 
init
public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
- Specified by:
 init in interface javax.servlet.Servlet- Overrides:
 init in class javax.servlet.GenericServlet
 
- Throws:
 javax.servlet.ServletException
 
service
public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
- Specified by:
 service in interface javax.servlet.Servlet- Overrides:
 service in class javax.servlet.http.HttpServlet
 
- Throws:
 javax.servlet.ServletException
IOException
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org