public class Capabilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIONS_CAPABILITY
String constant for the
:actions capability. |
protected boolean |
actionsCapability |
protected boolean |
baseCapability
Capabilites
|
static java.lang.String |
CANDIDATE_CAPABILITY
String constant for the
:candidate capability. |
protected boolean |
candidateCapability |
static java.lang.String |
CONFIRMED_COMMIT_CAPABILITY
String constant for the
:confirmed-commit capability. |
protected boolean |
confirmedCommitCapability |
static java.lang.String |
HTTP_TAIL_F_COM |
static java.lang.String |
INTERLEAVE_CAPABILITY
String constant for the
:interleave capability. |
protected boolean |
interleaveCapability |
static java.lang.String |
NETCONF_BASE_CAPABILITY
String constant for the NETCONF base capability.
|
static java.lang.String |
NOTIFICATION_CAPABILITY
String constant for the
:notification capability. |
protected boolean |
notificationCapability |
static java.lang.String |
NS_ACTIONS
The NETCONF actions namespace.
|
static java.lang.String |
NS_NETCONF
The NETCONF namespace "urn:ietf:params:xml:ns:netconf:base:1.0"
|
static java.lang.String |
NS_NOTIFICATION
The NETCONF notifications namespace.
|
static java.lang.String |
NS_PARTIAL_LOCK
The NETCONF partial lock namespace.
|
static java.lang.String |
NS_TRANSACTIONS
The NETCONF transactions namespace.
|
static java.lang.String |
PARTIAL_LOCK_CAPABILITY
String constant for the
:partial-lock capability. |
protected boolean |
partialLockCapability |
static java.lang.String |
ROLLBACK_ON_ERROR_CAPABILITY
String constant for the
:rollback-on-error capability. |
protected boolean |
rollbackOnErrorCapability |
static java.lang.String |
STARTUP_CAPABILITY
String constant for the
:startup capability. |
protected boolean |
startupCapability |
static java.lang.String |
TRANSACTIONS_CAPABILITY
String constant for the
:transactions capability. |
protected boolean |
transactionsCapability |
static java.lang.String |
URL_CAPABILITY
String constant for the
:url capability. |
static java.lang.String |
URL_CAPABILITY_SCHEME |
protected boolean |
urlCapability |
protected java.lang.String[] |
urlSchemes |
static java.lang.String |
URN_IETF_PARAMS |
static java.lang.String |
URN_IETF_PARAMS_NETCONF |
static java.lang.String |
URN_IETF_PARAMS_XML_NS_NETCONF |
static java.lang.String |
VALIDATE_CAPABILITY
String constant for the
:validate capability. |
protected boolean |
validateCapability |
static java.lang.String |
WITH_DEFAULTS_CAPABILITY
String constant for the
:with-defaults capability. |
protected boolean |
withDefaultsCapability |
static java.lang.String |
WRITABLE_RUNNING_CAPABILITY
String constant for the
:writable-running capability. |
protected boolean |
writableRunningCapability |
static java.lang.String |
XPATH_CAPABILITY
String constant for the
:xpath capability. |
protected boolean |
xpathCapability |
| Modifier | Constructor and Description |
|---|---|
protected |
Capabilities(Element e) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRevision(java.lang.String uri)
Returns the revision for a specific uri, return null if no revision
found.
|
java.lang.String[] |
getUrlSchemes() |
boolean |
hasActions()
Predicate for the
:actions capability. |
boolean |
hasCandidate()
Predicate for the
:candidate capability. |
boolean |
hasCapability(java.lang.String uri)
Checks all capabilities including the rfc 4711 ones
|
boolean |
hasConfirmedCommit()
Predicate for the
:confirmed-commit capability. |
boolean |
hasInterleave()
Predicate for the
:interleave capablity |
boolean |
hasNotification()
Predicate for the
:notification capablity |
boolean |
hasPartialLock()
Predicate for the
:partial-lock capability. |
boolean |
hasRollbackOnError()
Predicate for the
:rollback-on-error capability. |
boolean |
hasStartup()
Predicate for the
:startup capablity |
boolean |
hasTransactions()
Predicate for the
:transactions capability. |
boolean |
hasUrl()
Predicate for the
:url capability. |
boolean |
hasValidate()
Predicate for the
:validate capability. |
boolean |
hasWithDefaults()
Predicate for the
:with-defaults capability. |
boolean |
hasWritableRunning()
Predicate for the
:writable-running capability. |
boolean |
hasXPath()
Predicate for the
:xpath capability. |
java.lang.String[] |
urlSchemes()
If the
:url capability is set the supported schemes are
listed here. |
public static final java.lang.String NS_NETCONF
public static final java.lang.String URN_IETF_PARAMS_XML_NS_NETCONF
public static final java.lang.String NS_NOTIFICATION
public static final java.lang.String NS_PARTIAL_LOCK
public static final java.lang.String URN_IETF_PARAMS
public static final java.lang.String NETCONF_BASE_CAPABILITY
public static final java.lang.String WRITABLE_RUNNING_CAPABILITY
:writable-running capability.
"urn:ietf:params:netconf:capability:writable-running:1.0".public static final java.lang.String URN_IETF_PARAMS_NETCONF
public static final java.lang.String CANDIDATE_CAPABILITY
:candidate capability.
"urn:ietf:params:netconf:capability:candidate:1.0".public static final java.lang.String CONFIRMED_COMMIT_CAPABILITY
:confirmed-commit capability.
"urn:ietf:params:netconf:capability:confirmed-commit:1.0".public static final java.lang.String ROLLBACK_ON_ERROR_CAPABILITY
:rollback-on-error capability.
"urn:ietf:params:netconf:capability:rollback-on-error:1.0".public static final java.lang.String VALIDATE_CAPABILITY
:validate capability.
"urn:ietf:params:netconf:capability:validate:1.0".public static final java.lang.String STARTUP_CAPABILITY
:startup capability.
"urn:ietf:params:netconf:capability:startup:1.0".public static final java.lang.String URL_CAPABILITY
:url capability.
"urn:ietf:params:netconf:capability:url:1.0".public static final java.lang.String URL_CAPABILITY_SCHEME
public static final java.lang.String XPATH_CAPABILITY
:xpath capability.
"urn:ietf:params:netconf:capability:xpath:1.0".public static final java.lang.String NOTIFICATION_CAPABILITY
:notification capability.
"urn:ietf:params:netconf:capability:notification:1.0".public static final java.lang.String INTERLEAVE_CAPABILITY
:interleave capability.
"urn:ietf:params:netconf:capability:interleave:1.0".public static final java.lang.String PARTIAL_LOCK_CAPABILITY
:partial-lock capability.
"urn:ietf:params:netconf:capability:partial-lock:1.0"public static final java.lang.String HTTP_TAIL_F_COM
public static final java.lang.String NS_ACTIONS
public static final java.lang.String NS_TRANSACTIONS
public static final java.lang.String ACTIONS_CAPABILITY
:actions capability.
"http://tail-f.com/ns/netconf/actions/1.0".public static final java.lang.String TRANSACTIONS_CAPABILITY
:transactions capability.
"http://tail-f.com/ns/netconf/transactions/1.0".public static final java.lang.String WITH_DEFAULTS_CAPABILITY
:with-defaults capability.
"http://tail-f.com/ns/netconf/with-defaults/1.0".protected boolean baseCapability
protected boolean writableRunningCapability
protected boolean candidateCapability
protected boolean confirmedCommitCapability
protected boolean rollbackOnErrorCapability
protected boolean validateCapability
protected boolean startupCapability
protected boolean notificationCapability
protected boolean interleaveCapability
protected boolean urlCapability
protected boolean xpathCapability
protected boolean partialLockCapability
protected boolean actionsCapability
protected boolean transactionsCapability
protected boolean withDefaultsCapability
protected java.lang.String[] urlSchemes
protected Capabilities(Element e) throws JNCException
JNCExceptionpublic boolean hasWritableRunning()
:writable-running capability.public boolean hasCandidate()
:candidate capability.public boolean hasConfirmedCommit()
:confirmed-commit capability.public boolean hasRollbackOnError()
:rollback-on-error capability.public boolean hasValidate()
:validate capability.public boolean hasStartup()
:startup capablitypublic boolean hasNotification()
:notification capablitypublic boolean hasInterleave()
:interleave capablitypublic boolean hasUrl()
:url capability.
The :url capability URI must contain a "scheme" argument
assigned a comma-separated list of scheme names indicating which schemes
the NETCONF peer supports. If the :url capability is set
the supported schemas will listed in urlSchemes.
If the :url capability is supported an url argument may be
given to the following methods:
public java.lang.String[] urlSchemes()
:url capability is set the supported schemes are
listed here.
For example: In "urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file" the urlSchemes are: "http","ftp","file"
public boolean hasXPath()
:xpath capability.public boolean hasPartialLock()
:partial-lock capability.public boolean hasActions()
:actions capability.public boolean hasTransactions()
:transactions capability.public boolean hasWithDefaults()
:with-defaults capability.public java.lang.String[] getUrlSchemes()
public boolean hasCapability(java.lang.String uri)
public java.lang.String getRevision(java.lang.String uri)