Secure iNet Factory

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

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

public class SshMsgChannelOpen
extends Message
implements ConnectionDispatchable

Opening channel message: SSH_MSG_CHANNEL_OPEN

Version:
1.0
Author:
Natalya Okhremchuk

Field Summary
static int TYPE
          Field TYPE
 
Constructor Summary
SshMsgChannelOpen(java.lang.String channelType, long sender, long initialWindowSize, long maxPacketSize, byte[] data)
           
 
Method Summary
 void accept(ConnectionMessageDispatcher dispatcher)
           
 java.lang.String getChannelType()
           
 byte[] getData()
           
 long getInitialWindowSize()
           
 long getMaxPacketSize()
           
 long getSenderChannel()
           
static SshMsgChannelOpen readFrom(java.io.InputStream in)
           
 java.lang.String toString()
          Returns the string representation of this message.
 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
Field TYPE

See Also:
Constant Field Values
Constructor Detail

SshMsgChannelOpen

public SshMsgChannelOpen(java.lang.String channelType,
                         long sender,
                         long initialWindowSize,
                         long maxPacketSize,
                         byte[] data)
Parameters:
channelType -
sender -
initialWindowSize -
maxPacketSize -
data -
Method Detail

readFrom

public static SshMsgChannelOpen readFrom(java.io.InputStream in)
                                  throws java.io.IOException
Parameters:
in -
Returns:
SshMsgChannelOpen 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

getChannelType

public java.lang.String getChannelType()
Returns:
channel type

getSenderChannel

public long getSenderChannel()
Returns:
sender channel

getInitialWindowSize

public long getInitialWindowSize()
Returns:
initial window size

getMaxPacketSize

public long getMaxPacketSize()
Returns:
maximum packet size

getData

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

accept

public void accept(ConnectionMessageDispatcher dispatcher)
Specified by:
accept in interface ConnectionDispatchable
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

Secure iNet Factory

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