Interface HttpTransportProvider


public interface HttpTransportProvider
Service-provider boundary for HTTP transports. Implementations own all listener resources.
  • Method Details

    • bind

      default Server bind(Application application, InetSocketAddress address) throws IOException
      Binds a running application with the default options.
      Parameters:
      application - running application
      address - address to bind
      Returns:
      owned listener
      Throws:
      IOException - if binding fails
    • bind

      Server bind(Application application, InetSocketAddress address, ListenerOptions options) throws IOException
      Binds a running application. Failed binds must release all allocated resources. The options are already validated and immutable; the listener applies them for its lifetime.
      Parameters:
      application - running application
      address - address to bind
      options - limits and timeouts for this listener
      Returns:
      owned listener
      Throws:
      IOException - if binding fails