Interface TerminalTransport.Callback

Enclosing interface:
TerminalTransport

public static interface TerminalTransport.Callback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    No answer: the connection failed or timed out.
    void
    onResponse(int status, String body)
    The server answered, with any status.
  • Method Details

    • onResponse

      void onResponse(int status, String body)

      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

      void onError(Throwable error)

      No answer: the connection failed or timed out.

      Parameters
      • error: what went wrong