|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sshtools.j2ssh.transport.SshMessage
|
+--com.sshtools.j2ssh.connection.SshMsgChannelOpen
Implements the SSH_MSG_CHANNEL_OPEN message.
| Field Summary | |
protected static int |
SSH_MSG_CHANNEL_OPEN
The message id |
| Constructor Summary | |
SshMsgChannelOpen()
Constructor for the SshMsgChannelOpen object |
|
SshMsgChannelOpen(java.lang.String channelType,
long senderChannelId,
long initialWindowSize,
long maximumPacketSize,
byte[] channelData)
Constructor for the SshMsgChannelOpen object |
|
| Method Summary | |
protected void |
constructByteArray(ByteArrayWriter baw)
Abstract method implementation to construct a byte array containing the message data. |
protected void |
constructMessage(ByteArrayReader bar)
Abstract method implementation to construct the message from a byte array. |
byte[] |
getChannelData()
Gets the channel specific data |
java.lang.String |
getChannelType()
Gets the channel type |
long |
getInitialWindowSize()
Gets the initial window size |
long |
getMaximumPacketSize()
Gets the maximum packet size |
java.lang.String |
getMessageName()
Gets the message name for debugging |
long |
getSenderChannelId()
Gets the sender channel id |
| Methods inherited from class com.sshtools.j2ssh.transport.SshMessage |
fromByteArray, getMessageId, toByteArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int SSH_MSG_CHANNEL_OPEN
| Constructor Detail |
public SshMsgChannelOpen(java.lang.String channelType,
long senderChannelId,
long initialWindowSize,
long maximumPacketSize,
byte[] channelData)
channelType - The channel type (i.e. 'session')senderChannelId - The senders channel idinitialWindowSize - The initial data window spacemaximumPacketSize - The maximum packet sizechannelData - The channel specific datapublic SshMsgChannelOpen()
| Method Detail |
public byte[] getChannelData()
public java.lang.String getMessageName()
getMessageName in class SshMessagepublic java.lang.String getChannelType()
public long getSenderChannelId()
public long getInitialWindowSize()
public long getMaximumPacketSize()
protected void constructMessage(ByteArrayReader bar)
throws InvalidMessageException
constructMessage in class SshMessagebar - The byte array being read
InvalidMessageException - Thrown of the data cannot be read
protected void constructByteArray(ByteArrayWriter baw)
throws InvalidMessageException
constructByteArray in class SshMessagebaw - The byte array being written
InvalidMessageException - Thrown of the data cannot be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||