com.maverick.ssh2
Class GlobalRequest

java.lang.Object
  extended bycom.maverick.ssh2.GlobalRequest

public class GlobalRequest
extends java.lang.Object

This class represents a global request.

Author:
Lee David Painter

Constructor Summary
GlobalRequest(java.lang.String name, byte[] requestdata)
          Contstruct a request.
 
Method Summary
 byte[] getData()
          Get the request data, if the request has been sent and processed, this will return the response data (which can be null).
 java.lang.String getName()
          Get the name of the request.
 void setData(byte[] requestdata)
          Set the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalRequest

public GlobalRequest(java.lang.String name,
                     byte[] requestdata)
Contstruct a request.

Parameters:
name - the name of the request
requestdata - the request data
Method Detail

getName

public java.lang.String getName()
Get the name of the request.

Returns:

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 -


Copyright © 2003 3SP LTD. All Rights Reserved.