Package 

Interface HttpServerPort

  • All Implemented Interfaces:

    
    public interface HttpServerPort
    
                        

    Server instance of one kind.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Integer runtimePort() Get the runtime port if started, throw an exception otherwise.
      abstract Boolean started() Check whether the server has been started or not.
      abstract Unit startUp(HttpServer server) Build a server of a certain engine from a server definition and runs it.
      abstract Unit shutDown() Stop the instance of the engine.
      abstract Set<HttpProtocol> supportedProtocols() Return the server adapter's supported protocols.
      abstract Set<HttpServerFeature> supportedFeatures() Return the server adapter's supported features.
      abstract Map<String, ?> options() Return the adapter's allowed configuration options with its values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • runtimePort

         abstract Integer runtimePort()

        Get the runtime port if started, throw an exception otherwise.

      • started

         abstract Boolean started()

        Check whether the server has been started or not.

      • startUp

         abstract Unit startUp(HttpServer server)

        Build a server of a certain engine from a server definition and runs it.

        Parameters:
        server - The server instance to be run by this adapter.
      • shutDown

         abstract Unit shutDown()

        Stop the instance of the engine.

      • supportedProtocols

         abstract Set<HttpProtocol> supportedProtocols()

        Return the server adapter's supported protocols.

      • options

         abstract Map<String, ?> options()

        Return the adapter's allowed configuration options with its values.