Secure iNet Factory

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

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

public class SshMsgChannelExtendedData
extends Message
implements ConnectionDispatchable, ChannelDispatchable

Data transfer: SSH_MSG_CHANNEL_EXTENDED_DATA. Some channels can transfer several types of data. An example of this is stderr data from interactive sessions. Such data can be passed with the flowing message type.

Version:
1.0
Author:
Natalya Okhremchuk

Field Summary
static int SSH_EXTENDED_DATA_STDERR
          Field SSH_EXTENDED_DATA_STDERR
static int TYPE
          Field TYPE
 
Constructor Summary
SshMsgChannelExtendedData(long recepientChannel, long dataTypeCode, byte[] data)
           
 
Method Summary
 void accept(ChannelMessageDispatcher dispatcher)
           
 void accept(ConnectionMessageDispatcher dispatcher)
           
 byte[] getData()
           
 long getDataTypeCode()
           
 long getRecipientChannel()
           
static SshMsgChannelExtendedData 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

SSH_EXTENDED_DATA_STDERR

public static final int SSH_EXTENDED_DATA_STDERR
Field SSH_EXTENDED_DATA_STDERR

See Also:
Constant Field Values
Constructor Detail

SshMsgChannelExtendedData

public SshMsgChannelExtendedData(long recepientChannel,
                                 long dataTypeCode,
                                 byte[] data)
Parameters:
recepientChannel -
dataTypeCode -
data -
Method Detail

readFrom

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

getDataTypeCode

public long getDataTypeCode()
Returns:
data type code.

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

Secure iNet Factory

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