Secure iNet Factory

com.jscape.inet.ssh.connection.messages
Class SshMsgGlobalRequest

java.lang.Object
  extended by com.jscape.inet.ssh.transport.Message
      extended by com.jscape.inet.ssh.connection.messages.SshMsgGlobalRequest
All Implemented Interfaces:
ConnectionDispatchable

public class SshMsgGlobalRequest
extends Message
implements ConnectionDispatchable

Global request message : SSH_MSG_GLOBAL_REQUEST. There are several kinds of requests that affect the state of the remote end "globally", independent of any channels. An example is a request to start TCP/IP forwarding for a specific port. All such requests use the following format.

Version:
1.0
Author:
Natalya Okhremchuk

Field Summary
static int TYPE
          Message type code.
 
Constructor Summary
SshMsgGlobalRequest(java.lang.String name, boolean wantReply, byte[] data)
           
 
Method Summary
 void accept(ConnectionMessageDispatcher dispatcher)
           
 byte[] getData()
           
 java.lang.String getName()
          Obtains the request name.
static SshMsgGlobalRequest readFrom(java.io.InputStream in)
           
 java.lang.String toString()
          Returns the string representation of this message.
 boolean wantReply()
           
 void writeTo(java.io.OutputStream out)
           
 
Methods inherited from class com.jscape.inet.ssh.transport.Message
getId, getType, readFrom, readFrom, setId, writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
Message type code.

See Also:
Constant Field Values
Constructor Detail

SshMsgGlobalRequest

public SshMsgGlobalRequest(java.lang.String name,
                           boolean wantReply,
                           byte[] data)
Parameters:
name -
wantReply -
data -
Method Detail

readFrom

public static SshMsgGlobalRequest readFrom(java.io.InputStream in)
                                    throws java.io.IOException
Parameters:
in -
Returns:
SshMsgGlobalRequest instance
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Overrides:
writeTo in class Message
Parameters:
out -
Throws:
java.io.IOException

getName

public java.lang.String getName()
Obtains the request name.

Returns:
the request name

wantReply

public boolean wantReply()
Returns:
want reply

getData

public byte[] getData()
Returns:
data byte array

toString

public java.lang.String toString()
Returns the string representation of this message.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this message

accept

public void accept(ConnectionMessageDispatcher dispatcher)
Specified by:
accept in interface ConnectionDispatchable
Parameters:
dispatcher -

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved