com.jscape.inet.ssh.connection.messages
Class SshMsgChannelRequest
java.lang.Object
com.jscape.inet.ssh.transport.Message
com.jscape.inet.ssh.connection.messages.SshMsgChannelRequest
- All Implemented Interfaces:
- ChannelDispatchable, ConnectionDispatchable
public class SshMsgChannelRequest
- extends Message
- implements ConnectionDispatchable, ChannelDispatchable
Channel-specific request: SSH_MSG_CHANNEL_REQUEST.
- Version:
- 1.0
- Author:
- Natalya Okhremchuk
Field Summary |
static int |
TYPE
Field TYPE |
Constructor Summary |
SshMsgChannelRequest(long recipientChannel,
java.lang.String requestType,
boolean wantReply)
|
SshMsgChannelRequest(long recipientChannel,
java.lang.String requestType,
boolean wantReply,
byte[] data)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final int TYPE
- Field TYPE
- See Also:
- Constant Field Values
SshMsgChannelRequest
public SshMsgChannelRequest(long recipientChannel,
java.lang.String requestType,
boolean wantReply,
byte[] data)
- Parameters:
recipientChannel
- requestType
- wantReply
- data
-
SshMsgChannelRequest
public SshMsgChannelRequest(long recipientChannel,
java.lang.String requestType,
boolean wantReply)
- Parameters:
recipientChannel
- requestType
- wantReply
-
readFrom
public static SshMsgChannelRequest readFrom(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- SshMsgChannelRequest 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
getRecipientChannel
public long getRecipientChannel()
- Returns:
- recipient channel
getRequestType
public java.lang.String getRequestType()
- Returns:
- request type
wantReply
public boolean wantReply()
- Returns:
- want reply
getData
public byte[] getData()
- Returns:
- data byte array
accept
public void accept(ConnectionMessageDispatcher dispatcher)
- Specified by:
accept
in interface ConnectionDispatchable
- Parameters:
dispatcher
-
accept
public void accept(ChannelMessageDispatcher dispatcher)
- Specified by:
accept
in interface ChannelDispatchable
- Parameters:
dispatcher
-
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
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved