com.vhosting.netconf.transport
Class Session

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

public class Session
extends java.lang.Object

This class represents a session of talks with a server. An active session is delivered after it is established a connection to the server. A session becomes inactive if the connection is lost for any reason. A session, when it becomes inactive, can no longer be used.

Author:
Giuseppe Palmeri

Field Summary
static Capability BASE_1_0
           
static Capability CANDIDATE_1_0
           
static Capability CONFIRMED_COMMIT_1_0
           
static Capability INTERLEAVE_1_0
           
static Capability NOTIFICATION_1_0
           
static Capability PARTIAL_LOCK_1_0
           
static Capability ROLLBACK_ON_ERROR_1_0
           
static Capability STARTUP_1_0
           
static Capability URL_1_0
           
static Capability VALIDATE_1_0
           
static Capability WRITABLE_RUNNING_1_0
           
static Capability XPATH_1_0
           
 
Constructor Summary
Session()
           
 
Method Summary
static Capability findCapabilityByNamespaceURI(java.lang.String namespaceURI)
          Search for a capability that until now has been used by a namespace.
 Capability[] getCapabilitiesOnServer()
          Get the capabilities that until now has been used and present on the server.
 java.lang.Integer getSessionId()
          Get the session identifier.
 boolean isActive()
          Allows you to check if the session is active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_1_0

public static Capability BASE_1_0

WRITABLE_RUNNING_1_0

public static Capability WRITABLE_RUNNING_1_0

CANDIDATE_1_0

public static Capability CANDIDATE_1_0

CONFIRMED_COMMIT_1_0

public static Capability CONFIRMED_COMMIT_1_0

ROLLBACK_ON_ERROR_1_0

public static Capability ROLLBACK_ON_ERROR_1_0

VALIDATE_1_0

public static Capability VALIDATE_1_0

STARTUP_1_0

public static Capability STARTUP_1_0

URL_1_0

public static Capability URL_1_0

XPATH_1_0

public static Capability XPATH_1_0

PARTIAL_LOCK_1_0

public static Capability PARTIAL_LOCK_1_0

NOTIFICATION_1_0

public static Capability NOTIFICATION_1_0

INTERLEAVE_1_0

public static Capability INTERLEAVE_1_0
Constructor Detail

Session

public Session()
Method Detail

getSessionId

public java.lang.Integer getSessionId()
Get the session identifier.

Returns:
The session identifier; null if this session is inactive.

isActive

public boolean isActive()
Allows you to check if the session is active.

Returns:
true if the session is active; false otherwise.

findCapabilityByNamespaceURI

public static Capability findCapabilityByNamespaceURI(java.lang.String namespaceURI)
Search for a capability that until now has been used by a namespace.

Parameters:
namespaceURI - The namespace URI.
Returns:
The capability or null if not found.

getCapabilitiesOnServer

public Capability[] getCapabilitiesOnServer()
Get the capabilities that until now has been used and present on the server.

Returns:
The capabilities.