Package com.aoindustries.aoserv.client
Interface AOServConnector.UpdateRequest
-
- Enclosing class:
- AOServConnector
public static interface AOServConnector.UpdateRequestThis is the preferred mechanism for providing custom requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterRelease()If both the request and response were successful, this is called after the connection to the server is released.voidreadResponse(StreamableInput in)Reads the response from the server if the request was successfully sent.voidwriteRequest(StreamableOutput out)Writes the request to the server.
-
-
-
Method Detail
-
writeRequest
void writeRequest(StreamableOutput out) throws IOException
Writes the request to the server. This does not need to flush the output stream.- Throws:
IOException
-
readResponse
void readResponse(StreamableInput in) throws IOException, SQLException
Reads the response from the server if the request was successfully sent.- Throws:
IOExceptionSQLException
-
afterRelease
void afterRelease()
If both the request and response were successful, this is called after the connection to the server is released.
-
-