Package net.dona.doip.client.transport
Interface DoipExchange
- All Superinterfaces:
AutoCloseable
An object representing both the outgoing request input, and the response,
of a DOIP connection.
This allows the writing of segments to the request input to be interspersed with
reading segments from the response.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns an instance ofOutDoipMessage
to which segments of the request input can be written.Returns the response from the server.
-
Method Details
-
getResponse
Returns the response from the server. This method will block until the initial segment of the response is available; in general it may be necessary to write some or all request input usinggetRequestOutgoingMessage()
before this method will return.- Returns:
- the response from the server
- Throws:
IOException
-
getRequestOutgoingMessage
OutDoipMessage getRequestOutgoingMessage()Returns an instance ofOutDoipMessage
to which segments of the request input can be written.- Returns:
- an instance of
OutDoipMessage
to which segments of the request input can be written
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-