com.vhosting.netconf.transport
Class NetconfTransportEvent

java.lang.Object
  extended by com.vhosting.netconf.transport.NetconfTransportEvent

public class NetconfTransportEvent
extends java.lang.Object

This is an event that is passed through NetconfCatcherListener when events concerning the transport protocol are presented. At an event may be associated with the cause of an error.

Version:
1.00, 02/11/2010
Author:
Giuseppe Palmeri

Nested Class Summary
static class NetconfTransportEvent.EventType
          This enumeration lists all types of events that may belong to an Event.
 
Method Summary
 NetconfTransportEvent.EventType getEventType()
          Get the event type.
 NetconfTransportError getTransportError()
          Return the transport error if present.
 java.lang.Exception getTransportErrorException()
          Return the transport error exception if present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEventType

public NetconfTransportEvent.EventType getEventType()
Get the event type.

Returns:
The event type.

getTransportError

public NetconfTransportError getTransportError()
Return the transport error if present.

Returns:
The Netconf transport error; null if the event no have errors.

getTransportErrorException

public java.lang.Exception getTransportErrorException()
Return the transport error exception if present.

Returns:
The Netconf transport error exception; null if the event no have error exceptions.