org.mortbay.jetty.handler
Class MovedContextHandler
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.handler.AbstractHandler
org.mortbay.jetty.handler.AbstractHandlerContainer
org.mortbay.jetty.handler.HandlerWrapper
org.mortbay.jetty.handler.ContextHandler
org.mortbay.jetty.handler.MovedContextHandler
- All Implemented Interfaces:
- LifeCycle, Handler, HandlerContainer, Server.Graceful, Attributes
public class MovedContextHandler
- extends ContextHandler
Moved ContextHandler.
This context can be used to replace a context that has changed
location. Requests are redirected (either to a fixed URL or to a
new context base).
Methods inherited from class org.mortbay.jetty.handler.ContextHandler |
addEventListener, addLocaleEncoding, clearAttributes, doStart, doStop, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getHosts, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getMaxFormContentSize, getMimeTypes, getResource, getResourceBase, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isProtectedTarget, isShutdown, loadClass, removeAttribute, setAllowNullPathInfo, setAttribute, setAttributes, setBaseResource, setClassLoader, setConnectorNames, setContextPath, setDisplayName, setErrorHandler, setEventListeners, setHosts, setInitParams, setMaxFormContentSize, setMimeTypes, setResourceBase, setServer, setShutdown, setVirtualHosts, setWelcomeFiles, startContext, toString |
MovedContextHandler
public MovedContextHandler()
MovedContextHandler
public MovedContextHandler(HandlerContainer parent,
String contextPath,
String newContextURL)
isDiscardPathInfo
public boolean isDiscardPathInfo()
setDiscardPathInfo
public void setDiscardPathInfo(boolean discardPathInfo)
getNewContextURL
public String getNewContextURL()
setNewContextURL
public void setNewContextURL(String newContextURL)
isPermanent
public boolean isPermanent()
setPermanent
public void setPermanent(boolean permanent)
isDiscardQuery
public boolean isDiscardQuery()
setDiscardQuery
public void setDiscardQuery(boolean discardQuery)