com.sshtools.j2ssh.transport

Class TransportProtocolState

Implemented Interfaces:
Serializable

public class TransportProtocolState
extends State

Version:
$Revision: 1.24 $
Author:
$author$

Field Summary

static int
CONNECTED
static int
DISCONNECTED
static int
NEGOTIATING_PROTOCOL
static int
PERFORMING_KEYEXCHANGE
static int
UNINITIALIZED
IOException
lastError
String
reason

Fields inherited from class com.sshtools.j2ssh.util.State

state

Constructor Summary

TransportProtocolState()
Creates a new TransportProtocolState object.

Method Summary

String
getDisconnectReason()
IOException
getLastError()
boolean
hasError()
boolean
isValidState(int state)
protected void
setDisconnectReason(String reason)
protected void
setLastError(IOException lastError)

Methods inherited from class com.sshtools.j2ssh.util.State

breakWaiting, getValue, isValidState, setValue, waitForState, waitForState, waitForStateUpdate

Field Details

CONNECTED

public static final int CONNECTED
Field Value:
4

DISCONNECTED

public static final int DISCONNECTED
Field Value:
5

NEGOTIATING_PROTOCOL

public static final int NEGOTIATING_PROTOCOL
Field Value:
2

PERFORMING_KEYEXCHANGE

public static final int PERFORMING_KEYEXCHANGE
Field Value:
3

UNINITIALIZED

public static final int UNINITIALIZED
Field Value:
1

lastError

public IOException lastError

reason

public String reason

Constructor Details

TransportProtocolState

public TransportProtocolState()
Creates a new TransportProtocolState object.

Method Details

getDisconnectReason

public String getDisconnectReason()
Returns:

getLastError

public IOException getLastError()
Returns:

hasError

public boolean hasError()
Returns:

isValidState

public boolean isValidState(int state)
Overrides:
isValidState in interface State
Parameters:
state -
Returns:

setDisconnectReason

protected void setDisconnectReason(String reason)
Parameters:
reason -

setLastError

protected void setLastError(IOException lastError)
Parameters:
lastError -

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