- All Superinterfaces:
SocketContext
Server connection context.
-
Method Summary
Modifier and TypeMethodDescriptionData reader to read request bytes.Data writer to write response bytes.executor()
Executor service to submit asynchronous tasks.Context of the listener.default Optional
<ProxyProtocolData> Proxy protocol header data.router()
Router that may contain routings of different types (HTTP, WebSocket, grpc).default HelidonSocket
The underlying network socket for the connection.Methods inherited from interface io.helidon.common.socket.SocketContext
childSocketId, isSecure, localPeer, log, log, remotePeer, socketId
-
Method Details
-
listenerContext
ListenerContext listenerContext()Context of the listener. Configuration specific to a single listener.- Returns:
- listener specific context
-
executor
ExecutorService executor()Executor service to submit asynchronous tasks.- Returns:
- executor service
-
dataWriter
DataWriter dataWriter()Data writer to write response bytes.- Returns:
- data writer
-
dataReader
DataReader dataReader()Data reader to read request bytes.- Returns:
- data reader
-
router
Router router()Router that may contain routings of different types (HTTP, WebSocket, grpc).- Returns:
- the router
-
proxyProtocolData
Proxy protocol header data.- Returns:
- protocol header data if proxy protocol is enabled on socket
- See Also:
-
serverSocket
The underlying network socket for the connection.- Returns:
- the socket
-