Class HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler

  • All Implemented Interfaces:
    org.mortbay.component.LifeCycle, org.mortbay.jetty.Handler
    Enclosing class:
    HTTPRemoteFileRegistry

    protected class HTTPRemoteFileRegistry.HTTPRemoteFileRegistryHandler
    extends org.mortbay.jetty.handler.AbstractHandler
    A handler for the registry.

    It has three ways to behave: Serve registered files, return 404 on unknown files, and unregister registered files, depending on the URL.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle

        org.mortbay.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.mortbay.jetty.handler.AbstractHandler

        _string
      • Fields inherited from class org.mortbay.component.AbstractLifeCycle

        _listeners
      • Fields inherited from interface org.mortbay.jetty.Handler

        ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(String string, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, int i)
      A method for handling Jetty requests.
      • Methods inherited from class org.mortbay.jetty.handler.AbstractHandler

        destroy, doStart, doStop, getServer, setServer, toString
      • Methods inherited from class org.mortbay.component.AbstractLifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
      • Methods inherited from interface org.mortbay.component.LifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
    • Constructor Detail

      • HTTPRemoteFileRegistryHandler

        protected HTTPRemoteFileRegistryHandler()
    • Method Detail

      • handle

        public void handle​(String string,
                           javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse,
                           int i)
                    throws IOException,
                           javax.servlet.ServletException
        A method for handling Jetty requests.
        Parameters:
        string - Unused domain.
        httpServletRequest - request object.
        httpServletResponse - the response to write to.
        Throws:
        IOException - On trouble in communication.
        javax.servlet.ServletException - On servlet trouble.