com.sshtools.j2ssh.connection

Class SshMsgChannelOpenFailure


public class SshMsgChannelOpenFailure
extends SshMessage

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

Field Summary

protected static int
SSH_MSG_CHANNEL_OPEN_FAILURE
protected static long
SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
protected static long
SSH_OPEN_CONNECT_FAILED
protected static long
SSH_OPEN_RESOURCE_SHORTAGE
protected static long
SSH_OPEN_UNKNOWN_CHANNEL_TYPE

Constructor Summary

SshMsgChannelOpenFailure()
Creates a new SshMsgChannelOpenFailure object.
SshMsgChannelOpenFailure(long recipientChannel, long reasonCode, String additional, String languageTag)
Creates a new SshMsgChannelOpenFailure object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
String
getAdditionalText()
String
getLanguageTag()
String
getMessageName()
long
getReasonCode()
long
getRecipientChannel()

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

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

Field Details

SSH_MSG_CHANNEL_OPEN_FAILURE

protected static final int SSH_MSG_CHANNEL_OPEN_FAILURE
Field Value:
92

SSH_OPEN_ADMINISTRATIVELY_PROHIBITED

protected static final long SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
Field Value:
1L

SSH_OPEN_CONNECT_FAILED

protected static final long SSH_OPEN_CONNECT_FAILED
Field Value:
2L

SSH_OPEN_RESOURCE_SHORTAGE

protected static final long SSH_OPEN_RESOURCE_SHORTAGE
Field Value:
4L

SSH_OPEN_UNKNOWN_CHANNEL_TYPE

protected static final long SSH_OPEN_UNKNOWN_CHANNEL_TYPE
Field Value:
3L

Constructor Details

SshMsgChannelOpenFailure

public SshMsgChannelOpenFailure()
Creates a new SshMsgChannelOpenFailure object.

SshMsgChannelOpenFailure

public SshMsgChannelOpenFailure(long recipientChannel,
                                long reasonCode,
                                String additional,
                                String languageTag)
Creates a new SshMsgChannelOpenFailure object.
Parameters:
recipientChannel -
reasonCode -
additional -
languageTag -

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 -

getAdditionalText

public String getAdditionalText()
Returns:

getLanguageTag

public String getLanguageTag()
Returns:

getMessageName

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

getReasonCode

public long getReasonCode()
Returns:

getRecipientChannel

public long getRecipientChannel()
Returns:

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