org.mortbay.jetty.handler
Class MovedContextHandler

java.lang.Object
  extended byorg.mortbay.component.AbstractLifeCycle
      extended byorg.mortbay.jetty.handler.AbstractHandler
          extended byorg.mortbay.jetty.handler.AbstractHandlerContainer
              extended byorg.mortbay.jetty.handler.HandlerWrapper
                  extended byorg.mortbay.jetty.handler.ContextHandler
                      extended byorg.mortbay.jetty.handler.MovedContextHandler
All Implemented Interfaces:
Attributes, Handler, HandlerContainer, LifeCycle

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).


Nested Class Summary
 
Nested classes inherited from class org.mortbay.jetty.handler.ContextHandler
ContextHandler.Context
 
Field Summary
 
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler
_string
 
Fields inherited from interface org.mortbay.jetty.Handler
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
 
Constructor Summary
MovedContextHandler()
           
MovedContextHandler(HandlerContainer parent, String contextPath, String newContextURL)
           
 
Method Summary
 String getNewContextURL()
           
 boolean isDiscardPathInfo()
           
 boolean isDiscardQuery()
           
 boolean isPermanent()
           
 void setDiscardPathInfo(boolean discardPathInfo)
           
 void setDiscardQuery(boolean discardQuery)
           
 void setNewContextURL(String newContextURL)
           
 void setPermanent(boolean permanent)
           
 
Methods inherited from class org.mortbay.jetty.handler.ContextHandler
addEventListener, addLocaleEncoding, clearAttributes, doStart, doStop, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getHosts, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getMimeTypes, getResource, getResourceBase, getResourcePaths, getVirtualHosts, getWelcomeFiles, handle, isProtectedTarget, isShutdown, loadClass, removeAttribute, setAttribute, setAttributes, setBaseResource, setClassLoader, setConnectorNames, setContextPath, setDisplayName, setErrorHandler, setEventListeners, setHosts, setInitParams, setMimeTypes, setResourceBase, setServer, setShutdown, setVirtualHosts, setWelcomeFiles, startContext, toString
 
Methods inherited from class org.mortbay.jetty.handler.HandlerWrapper
addHandler, expandChildren, getHandler, setHandler
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandlerContainer
expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandler
getServer
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mortbay.component.LifeCycle
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop
 

Constructor Detail

MovedContextHandler

public MovedContextHandler()

MovedContextHandler

public MovedContextHandler(HandlerContainer parent,
                           String contextPath,
                           String newContextURL)
Method Detail

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)