com.sshtools.j2ssh.connection
Class SshMsgChannelOpenConfirmation

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.SshMessage
        |
        +--com.sshtools.j2ssh.connection.SshMsgChannelOpenConfirmation

public class SshMsgChannelOpenConfirmation
extends SshMessage

Implements the SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Field Summary
protected static int SSH_MSG_CHANNEL_OPEN_CONFIRMATION
          The message id
 
Constructor Summary
SshMsgChannelOpenConfirmation()
          Constructor for the SshMsgChannelOpenConfirmation object
SshMsgChannelOpenConfirmation(long recipientChannel, long senderChannel, long initialWindowSize, long maximumPacketSize, byte[] channelData)
          Constructor for the SshMsgChannelOpenConfirmation object
 
Method Summary
protected  void constructByteArray(ByteArrayWriter baw)
          Abstract method implementation to construct a byte array containing the message
protected  void constructMessage(ByteArrayReader bar)
          Abstract method implementation to construct the message from a byte array
 byte[] getChannelData()
          Gets the channel data
 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 getRecipientChannel()
          Gets the recipient channel id
 long getSenderChannel()
          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

SSH_MSG_CHANNEL_OPEN_CONFIRMATION

protected static final int SSH_MSG_CHANNEL_OPEN_CONFIRMATION
The message id

See Also:
Constant Field Values
Constructor Detail

SshMsgChannelOpenConfirmation

public SshMsgChannelOpenConfirmation(long recipientChannel,
                                     long senderChannel,
                                     long initialWindowSize,
                                     long maximumPacketSize,
                                     byte[] channelData)
Constructor for the SshMsgChannelOpenConfirmation object

Parameters:
recipientChannel - The recipient channel id
senderChannel - The senders channel id
initialWindowSize - The initial data window space
maximumPacketSize - The maximum packet size
channelData - The channel data

SshMsgChannelOpenConfirmation

public SshMsgChannelOpenConfirmation()
Constructor for the SshMsgChannelOpenConfirmation object

Method Detail

getMessageName

public java.lang.String getMessageName()
Gets the message name for debugging

Specified by:
getMessageName in class SshMessage
Returns:

getRecipientChannel

public long getRecipientChannel()
Gets the recipient channel id

Returns:
The recipient channel id

getSenderChannel

public long getSenderChannel()
Gets the sender channel id

Returns:
The sender channel id

getInitialWindowSize

public long getInitialWindowSize()
Gets the initial window size

Returns:
The initial window size

getMaximumPacketSize

public long getMaximumPacketSize()
Gets the maximum packet size

Returns:
The maximum packet size

getChannelData

public byte[] getChannelData()
Gets the channel data

Returns:
The channel data

constructMessage

protected void constructMessage(ByteArrayReader bar)
                         throws InvalidMessageException
Abstract method implementation to construct the message from a byte array

Specified by:
constructMessage in class SshMessage
Parameters:
bar - The byte array being read
Throws:
InvalidMessageException - Thrown if the data cannot be read

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
                           throws InvalidMessageException
Abstract method implementation to construct a byte array containing the message

Specified by:
constructByteArray in class SshMessage
Parameters:
baw - The byte array being written
Throws:
InvalidMessageException - Description of the Exception


Copyright © 2002 Sshtools.com. All Rights Reserved.