Module io.helidon.webserver
Package io.helidon.webserver.spi
Interface ServerFeature.ServerFeatureContext
- Enclosing interface:
ServerFeature
public static interface ServerFeature.ServerFeatureContext
A wrapping object to access various configurable elements of server for
ServerFeature
.-
Method Summary
Modifier and TypeMethodDescriptionConfiguration of the server.Listener builders for a named socket.boolean
socketExists
(String socketName) Check if a named socket exists in configuration.sockets()
List of all configured sockets, does not contain the default socket name.
-
Method Details
-
serverConfig
WebServerConfig serverConfig()Configuration of the server.- Returns:
- server config builder
-
sockets
List of all configured sockets, does not contain the default socket name.- Returns:
- additional sockets configured
- See Also:
-
socketExists
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:
-