Interface StubHttpServerManager

  • All Known Implementing Classes:
    JadlerMocker

    public interface StubHttpServerManager
    An implementation of this interface can manage an underlying stub http server.
    • Method Detail

      • start

        void start()
        Starts the underlying stub http server
        Throws:
        JadlerException - if an error occurred while starting the stub http server.
        IllegalStateException - if the stub server has been started already.
      • close

        void close()
        Stops the underlying stub http server.
        Throws:
        JadlerException - if an error occurred while stopping the stub http server.
        IllegalStateException - if the stub server hasn't been started yet or has been stopped already.
      • isStarted

        boolean isStarted()
        Returns:
        true, if the stub server has already been started, otherwise false
      • getStubHttpServerPort

        int getStubHttpServerPort()
        Returns:
        port of HTTP server