Interface ServerFeature.ServerFeatureContext

Enclosing interface:
ServerFeature

public static interface ServerFeature.ServerFeatureContext
A wrapping object to access various configurable elements of server for ServerFeature.
  • Method Details

    • serverConfig

      WebServerConfig serverConfig()
      Configuration of the server.
      Returns:
      server config builder
    • sockets

      Set<String> sockets()
      List of all configured sockets, does not contain the default socket name.
      Returns:
      additional sockets configured
      See Also:
    • socketExists

      boolean socketExists(String socketName)
      Check if a named socket exists in configuration.
      Parameters:
      socketName - name of the socket
      Returns:
      true if the socket already exists in configuration
    • socket

      Listener builders for a named socket.
      Parameters:
      socketName - name of the socket
      Returns:
      builders for the named listener
      Throws:
      NoSuchElementException - in case the named socket does not exist
      See Also: