Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface TerminalTransport.Callback
Methods
public abstract void onResponse(int status, String body) | The server answered, with any status. |
public abstract void onError(Throwable error) | No answer: the connection failed or timed out. |
Method details
onResponse
public abstract void onResponse(int status, String body)The server answered, with any status.
Parameters
statusint- the HTTP status code
bodyString- the response body as UTF-8, empty when there was none
onError
public abstract void onError(Throwable error)No answer: the connection failed or timed out.
Parameters
errorThrowable- what went wrong