com.vhosting.netconf.transport
Enum NetconfTransportEvent.EventType

java.lang.Object
  extended by java.lang.Enum<NetconfTransportEvent.EventType>
      extended by com.vhosting.netconf.transport.NetconfTransportEvent.EventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NetconfTransportEvent.EventType>
Enclosing class:
NetconfTransportEvent

public static enum NetconfTransportEvent.EventType
extends java.lang.Enum<NetconfTransportEvent.EventType>

This enumeration lists all types of events that may belong to an Event.

Author:
Giuseppe Palmeri 10/11/2010

Enum Constant Summary
CONNECTION_CANNOT_BE_OPENED
          The connection can not be opened.
CONNECTION_CLOSED_BY_SERVER
          The connection is closed by the server.
CONNECTION_CLOSED_BY_USER
          The connection is closed by user interaction.
 
Method Summary
static NetconfTransportEvent.EventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NetconfTransportEvent.EventType[] 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

CONNECTION_CLOSED_BY_USER

public static final NetconfTransportEvent.EventType CONNECTION_CLOSED_BY_USER
The connection is closed by user interaction.


CONNECTION_CLOSED_BY_SERVER

public static final NetconfTransportEvent.EventType CONNECTION_CLOSED_BY_SERVER
The connection is closed by the server.

See Also:
NetconfTransportEvent.getTransportError(), NetconfTransportEvent.getTransportErrorException()

CONNECTION_CANNOT_BE_OPENED

public static final NetconfTransportEvent.EventType CONNECTION_CANNOT_BE_OPENED
The connection can not be opened.

See Also:
NetconfTransportEvent.getTransportError(), NetconfTransportEvent.getTransportErrorException()
Method Detail

values

public static NetconfTransportEvent.EventType[] 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 (NetconfTransportEvent.EventType c : NetconfTransportEvent.EventType.values())
    System.out.println(c);

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

valueOf

public static NetconfTransportEvent.EventType 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