Interface ISimpleHttpFileServer

  • All Known Implementing Classes:
    SimpleHttpFileServer

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

      • setFileHandler

        void setFileHandler​(FileHandler fileHandler)
        Parameters:
        fileHandler - file handler to use.
      • setLogger

        void setLogger​(Logger logger)
        Parameters:
        logger - logger to use.
      • 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.
      • 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.