com.jscape.inet.ssh.connection.messages
Class SshMsgGlobalRequest
java.lang.Object
com.jscape.inet.ssh.transport.Message
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final int TYPE
- Message type code.
- See Also:
- Constant Field Values
SshMsgGlobalRequest
public SshMsgGlobalRequest(java.lang.String name,
boolean wantReply,
byte[] data)
- Parameters:
name
- wantReply
- data
-
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
-
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved