java.lang.Object
io.helidon.nima.webserver.ListenerConfiguration
Configuration of a server listener (server socket).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreate a new builder for a named socket.voidconfigureSocket(ServerSocket socket) Update the server socket with configured socket options.Content encoding context of this listener.context()Configured context.static ListenerConfigurationCreate a default configuration, listening on a random port and on localhost.Configured direct handlers.longMaximal payload size (in bytes).Media context of this listener.Requuested URI discovery context.intInitial buffer size ofBufferedOutputStreamcreated internally.intMaximal number of buffers to be queued in the write queue (when used).
-
Method Details
-
builder
Create a new builder for a named socket.- Parameters:
socketName- name of the listener- Returns:
- a new builder
-
create
Create a default configuration, listening on a random port and on localhost.- Parameters:
socketName- name of the socket to create default configuration for- Returns:
- a new default socket configuration
-
configureSocket
Update the server socket with configured socket options.- Parameters:
socket- socket to update
-
writeQueueLength
public int writeQueueLength()Maximal number of buffers to be queued in the write queue (when used).- Returns:
- write queue length
-
contentEncodingContext
Content encoding context of this listener.- Returns:
- content encoding context, never
null
-
mediaContext
Media context of this listener.- Returns:
- media context, never
null
-
maxPayloadSize
public long maxPayloadSize()Maximal payload size (in bytes).- Returns:
- maximal allowed payload size
-
writeBufferSize
public int writeBufferSize()Initial buffer size ofBufferedOutputStreamcreated internally.- Returns:
- initial buffer size for writing (in bytes)
-
directHandlers
Configured direct handlers.- Returns:
- direct handlers
-
context
Configured context.- Returns:
- context
-
requestedUriDiscoveryContext
Requuested URI discovery context.- Returns:
- discovery context
-