Package com.sshtools.j2ssh.transport
Class TransportProtocolState
- java.lang.Object
-
- com.sshtools.j2ssh.util.State
-
- com.sshtools.j2ssh.transport.TransportProtocolState
-
- All Implemented Interfaces:
java.io.Serializable
public class TransportProtocolState extends State
- Version:
- $Revision: 1.24 $
- Author:
- $author$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECTED
static int
DISCONNECTED
java.io.IOException
lastError
static int
NEGOTIATING_PROTOCOL
static int
PERFORMING_KEYEXCHANGE
java.lang.String
reason
static int
UNINITIALIZED
-
Constructor Summary
Constructors Constructor Description TransportProtocolState()
Creates a new TransportProtocolState object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisconnectReason()
java.io.IOException
getLastError()
boolean
hasError()
boolean
isValidState(int state)
protected void
setDisconnectReason(java.lang.String reason)
protected void
setLastError(java.io.IOException lastError)
-
Methods inherited from class com.sshtools.j2ssh.util.State
breakWaiting, getValue, setValue, waitForState, waitForState, waitForStateUpdate
-
-
-
-
Field Detail
-
UNINITIALIZED
public static final int UNINITIALIZED
- See Also:
- Constant Field Values
-
NEGOTIATING_PROTOCOL
public static final int NEGOTIATING_PROTOCOL
- See Also:
- Constant Field Values
-
PERFORMING_KEYEXCHANGE
public static final int PERFORMING_KEYEXCHANGE
- See Also:
- Constant Field Values
-
CONNECTED
public static final int CONNECTED
- See Also:
- Constant Field Values
-
DISCONNECTED
public static final int DISCONNECTED
- See Also:
- Constant Field Values
-
lastError
public java.io.IOException lastError
-
reason
public java.lang.String reason
-
-
Method Detail
-
setLastError
protected void setLastError(java.io.IOException lastError)
- Parameters:
lastError
-
-
hasError
public boolean hasError()
- Returns:
-
getLastError
public java.io.IOException getLastError()
- Returns:
-
setDisconnectReason
protected void setDisconnectReason(java.lang.String reason)
- Parameters:
reason
-
-
getDisconnectReason
public java.lang.String getDisconnectReason()
- Returns:
-
isValidState
public boolean isValidState(int state)
- Specified by:
isValidState
in classState
- Parameters:
state
-- Returns:
-
-