Class MovedContextHandler

All Implemented Interfaces:
Handler, HandlerContainer, Attributes, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, Graceful, 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).
  • Constructor Details

    • MovedContextHandler

      public MovedContextHandler()
    • MovedContextHandler

      public MovedContextHandler(HandlerContainer parent, String contextPath, String newContextURL)
  • Method Details

    • 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)
    • getExpires

      public String getExpires()
      Returns:
      the expires header value or null if no expires header
    • setExpires

      public void setExpires(String expires)
      Parameters:
      expires - the expires header value or null if no expires header