- All Superinterfaces:
ReleasableResource
- All Known Implementing Classes:
TcpClientConnection
Client connection.
This allows usage of a custom connection for testing - see
DirectClient
class.-
Method Summary
Modifier and TypeMethodDescriptionChannel id, mostly used in logs.AssociatedHelidonSocket
.reader()
Data reader providing response bytes.void
readTimeout
(Duration readTimeout) Read timeout for this connection.writer()
Data writer the client request writes to.Methods inherited from interface io.helidon.webclient.api.ReleasableResource
closeResource, releaseResource
-
Method Details
-
reader
DataReader reader()Data reader providing response bytes.- Returns:
- reader to read from this connection
-
writer
DataWriter writer()Data writer the client request writes to.- Returns:
- writer to write to this connection
-
channelId
String channelId()Channel id, mostly used in logs.- Returns:
- id of this channel (connection)
-
helidonSocket
HelidonSocket helidonSocket()AssociatedHelidonSocket
.- Returns:
- socket of this connection
-
readTimeout
Read timeout for this connection.- Parameters:
readTimeout
- connection read timeout
-