Package net.dona.doip.client.transport
Interface DoipExchange
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface DoipExchange extends java.lang.AutoCloseableAn 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()OutDoipMessagegetRequestOutgoingMessage()Returns an instance ofOutDoipMessageto which segments of the request input can be written.DoipClientResponsegetResponse()Returns the response from the server.
-
-
-
Method Detail
-
getResponse
DoipClientResponse getResponse() throws java.io.IOException
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:
java.io.IOException
-
getRequestOutgoingMessage
OutDoipMessage getRequestOutgoingMessage()
Returns an instance ofOutDoipMessageto which segments of the request input can be written.- Returns:
- an instance of
OutDoipMessageto which segments of the request input can be written
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-