com.vhosting.netconf.transport.ssh
Enum SshFailCause

java.lang.Object
  extended by java.lang.Enum<SshFailCause>
      extended by com.vhosting.netconf.transport.ssh.SshFailCause
All Implemented Interfaces:
NetconfTransportError.FailCause, java.io.Serializable, java.lang.Comparable<SshFailCause>

public enum SshFailCause
extends java.lang.Enum<SshFailCause>
implements NetconfTransportError.FailCause

This enum groups all the causes of failure are specific to the SSH-2 transport protocol.

Author:
Giuseppe Palmeri 10/11/2010

Enum Constant Summary
CAUSE_SSH_SESSION_TROUBLES
          Cause of failure due to problems in SSH-2 session.
CAUSE_SSH_SUBSYSTEM_TROUBLES
          Cause of failure due to interface problems with the netconf SSH-2 subsystem.
 
Method Summary
static SshFailCause valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SshFailCause[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CAUSE_SSH_SESSION_TROUBLES

public static final SshFailCause CAUSE_SSH_SESSION_TROUBLES
Cause of failure due to problems in SSH-2 session.


CAUSE_SSH_SUBSYSTEM_TROUBLES

public static final SshFailCause CAUSE_SSH_SUBSYSTEM_TROUBLES
Cause of failure due to interface problems with the netconf SSH-2 subsystem.

Method Detail

values

public static SshFailCause[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SshFailCause c : SshFailCause.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SshFailCause valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null