Interface TerminalTransport.Callback
- Enclosing interface:
TerminalTransport
public static interface TerminalTransport.Callback
-
Method Summary
Modifier and TypeMethodDescriptionvoidNo answer: the connection failed or timed out.voidonResponse(int status, String body) The server answered, with any status.
-
Method Details
-
onResponse
The server answered, with any status.
Parameters
-
status: the HTTP status code -
body: the response body as UTF-8, empty when there was none
-
-
onError
No answer: the connection failed or timed out.
Parameters
error: what went wrong
-