com.sshtools.j2ssh.connection

Class SshMsgChannelRequest


public class SshMsgChannelRequest
extends SshMessage

Version:
$Revision: 1.20 $
Author:
$author$

Field Summary

protected static int
SSH_MSG_CHANNEL_REQUEST

Constructor Summary

SshMsgChannelRequest()
Creates a new SshMsgChannelRequest object.
SshMsgChannelRequest(long recipientChannel, String requestType, boolean wantReply, byte[] channelData)
Creates a new SshMsgChannelRequest object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
byte[]
getChannelData()
String
getMessageName()
long
getRecipientChannel()
String
getRequestType()
boolean
getWantReply()

Methods inherited from class com.sshtools.j2ssh.transport.SshMessage

constructByteArray, constructMessage, fromByteArray, getMessageId, getMessageId, getMessageName, toByteArray

Field Details

SSH_MSG_CHANNEL_REQUEST

protected static final int SSH_MSG_CHANNEL_REQUEST
Field Value:
98

Constructor Details

SshMsgChannelRequest

public SshMsgChannelRequest()
Creates a new SshMsgChannelRequest object.

SshMsgChannelRequest

public SshMsgChannelRequest(long recipientChannel,
                            String requestType,
                            boolean wantReply,
                            byte[] channelData)
Creates a new SshMsgChannelRequest object.
Parameters:
recipientChannel -
requestType -
wantReply -
channelData -

Method Details

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException
Overrides:
constructByteArray in interface SshMessage
Parameters:
baw -

constructMessage

protected void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException
Overrides:
constructMessage in interface SshMessage
Parameters:
bar -

getChannelData

public byte[] getChannelData()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SshMessage
Returns:

getRecipientChannel

public long getRecipientChannel()
Returns:

getRequestType

public String getRequestType()
Returns:

getWantReply

public boolean getWantReply()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.