Class MovedContextHandler

  • All Implemented Interfaces:
    Handler, HandlerContainer, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.util.component.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 Detail

      • MovedContextHandler

        public MovedContextHandler()
      • MovedContextHandler

        public MovedContextHandler​(HandlerContainer parent,
                                   java.lang.String contextPath,
                                   java.lang.String newContextURL)
    • Method Detail

      • isDiscardPathInfo

        public boolean isDiscardPathInfo()
      • setDiscardPathInfo

        public void setDiscardPathInfo​(boolean discardPathInfo)
      • getNewContextURL

        public java.lang.String getNewContextURL()
      • setNewContextURL

        public void setNewContextURL​(java.lang.String newContextURL)
      • isPermanent

        public boolean isPermanent()
      • setPermanent

        public void setPermanent​(boolean permanent)
      • isDiscardQuery

        public boolean isDiscardQuery()
      • setDiscardQuery

        public void setDiscardQuery​(boolean discardQuery)
      • getExpires

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

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