Interface ConnectionContext
- 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 HelidonSocketThe underlying network socket for the connection.default Optional<SniContext> Listener SNI context for this connection.Methods inherited from interface SocketContext
childSocketId, isSecure, localPeer, log, log, remotePeer, socketIdModifier and TypeMethodDescriptionChild socket id.booleanisSecure()Whether the request is secure.Local peer information.default voidlog(System.Logger logger, System.Logger.Level level, String format, Object... variables) Log a message with the currentSocketContext.socketId()andSocketContext.childSocketId()to have consistent logs mappable to sockets.default voidlog(System.Logger logger, System.Logger.Level level, String format, Throwable t, Object... variables) Log a message with the currentSocketContext.socketId()andSocketContext.childSocketId()to have consistent logs mappable to sockets.Remote peer information.socketId()Main socket id.
-
Method Details
-
listenerContext
ListenerContext listenerContext()Context of the listener. Configuration specific to a single listener.- Returns:
- listener specific context
-
executor
-
dataWriter
-
dataReader
-
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:
-
sniContext
Listener SNI context for this connection.- Returns:
- SNI context, if listener virtual hosts are configured
-
serverSocket
The underlying network socket for the connection.- Returns:
- the socket
-