Interface ISimpleHttpFileServer

  • All Known Implementing Classes:
    SimpleHttpFileServer

    public interface ISimpleHttpFileServer
    Implementation of a Web server that serves one file.
    • Method Detail

      • setFile

        void setFile​(FileHandler handler,
                     Deployable deployable)
        Parameters:
        handler - file handler to use.
        deployable - deployable to handle.
      • setListeningParameters

        void setListeningParameters​(InetSocketAddress listenSocket,
                                    String remoteDeployAddress)
        Parameters:
        listenSocket - socket to listen on.
        remoteDeployAddress - remote hostname to use in the url, if null it will be obtained from the listenSocket.
      • setLogger

        void setLogger​(Logger logger)
        Parameters:
        logger - logger to use.
      • getURL

        URL getURL()
        Returns:
        url this server serves.
      • start

        void start()
        starts the server.
      • getCallCount

        int getCallCount()
        Returns:
        the number of successful calls received.
      • getException

        Throwable getException()
        Returns:
        exception, if any occured.
      • stop

        void stop()
        stops the server.