com.jivesoftware.base.util
Class MigrationServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.jivesoftware.base.util.MigrationServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class MigrationServlet
- extends javax.servlet.http.HttpServlet
A servlet to aide with the transition from one style of URL to another.
If this servlet is enabled then users who have bookmarked links to the old forum or search
engine links won't fail.
- See Also:
- Serialized Form
Method Summary |
static java.util.Map |
getMigratedParameters(javax.servlet.http.HttpServletRequest request)
Returns a Map of key/value pairs representing old parameter values mapped
to new parameter names. |
void |
init(javax.servlet.ServletConfig config)
|
void |
initMaps(java.util.Properties props)
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles all incoming Web requests. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MigrationServlet
public MigrationServlet()
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
- Parameters:
config
-
- Throws:
javax.servlet.ServletException
initMaps
public void initMaps(java.util.Properties props)
- Parameters:
props
-
getMigratedParameters
public static java.util.Map getMigratedParameters(javax.servlet.http.HttpServletRequest request)
- Returns a Map of key/value pairs representing old parameter values mapped
to new parameter names.
- Parameters:
request
- the HttpServletRequest object.
- Returns:
- a Map of key/values pairs representing old parameter values mapped to new
parameter names.
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Handles all incoming Web requests.
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Parameters:
request
- the HttpServletRequest object.response
- the HttpServletResponse object.
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 1999-2006 Jive Software.