Package com.aoindustries.aoserv.client
Interface AoservConnector.ResultRequest<T>
- Enclosing class:
AoservConnector
public static interface AoservConnector.ResultRequest<T>
This is the preferred mechanism for providing custom requests that have a return value.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionIf both the request and response were successful, this is called after the connection to the server is released.voidReads the response from the server if the request was successfully sent.voidWrites the request to the server.
-
Method Details
-
writeRequest
Writes the request to the server. This does not need to flush the output stream.- Throws:
IOException
-
readResponse
Reads the response from the server if the request was successfully sent.- Throws:
IOExceptionSQLException
-
afterRelease
T afterRelease()If both the request and response were successful, this is called after the connection to the server is released. The result is returned here so any additional processing in packaging the result may be performed after the connection is released.
-
