Class GlobalRequest

All Implemented Interfaces:
RequestFuture

public class GlobalRequest extends AbstractRequestFuture
This class represents a global request.
  • Constructor Details

    • GlobalRequest

      public GlobalRequest(String name, SshConnection con, byte[] requestdata)
      Contstruct a request.
      Parameters:
      name - the name of the request
      the - connection of the request
      requestdata - the request data
  • Method Details

    • getName

      public String getName()
      Get the name of the request.
      Returns:
      String
    • getConnection

      public SshConnection getConnection()
    • getData

      public byte[] getData()
      Get the request data, if the request has been sent and processed, this will return the response data (which can be null).
      Returns:
      either the request data or response data according to the current state.
    • setData

      public void setData(byte[] requestdata)
      Set the data.
      Parameters:
      requestdata -
    • complete

      public void complete(boolean success)