|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vhosting.netconf.Operation
com.vhosting.netconf.CreateSubscription
public class CreateSubscription
The create-subscription Netconf operation. This operation initiates an event notification subscription that will send asynchronous event notifications to the initiator of the operation until the subscription terminates. Supported server capabilities:
urn:ietf:params:xml:ns:netconf:notification:1.0
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vhosting.netconf.Operation |
---|
Operation.Reply |
Field Summary |
---|
Fields inherited from class com.vhosting.netconf.Operation |
---|
operation, session |
Constructor Summary | |
---|---|
CreateSubscription(Session session)
Create the create-subscription Netconf operation. |
Method Summary | |
---|---|
static java.lang.String |
convert3339(java.util.Date d)
Converts a date into a string that conforms to the RFC3339 standard of the Internet. |
SubtreeFilter |
createSubtreeFilter()
Create a subtree filter. |
void |
setStartTime(java.util.Date startTime)
Allows you to specify the starting time for the subscription. |
void |
setStopTime(java.util.Date stopTime)
Allows you to specify the time to end the subscription. |
void |
setStream(java.lang.String stream)
This method allows you to specify a specific stream for the subscription. |
void |
setSubtreeFilter(SubtreeFilter f)
|
void |
setXPathFilter(java.lang.String xpath)
Set an XPath filter. |
Methods inherited from class com.vhosting.netconf.Operation |
---|
execute, execute, executeSync |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateSubscription(Session session) throws CapabilityException
See the RFC 5277 - NETCONF Event Notifications
session
- The active session.
CapabilityException
- Throw this exception if the server
does not have the :notification:1.0 capability.Method Detail |
---|
public void setStream(java.lang.String stream)
stream
- The stream.public void setStartTime(java.util.Date startTime)
startTime
- The start time.public void setStopTime(java.util.Date stopTime)
stopTime
- The stop time.public SubtreeFilter createSubtreeFilter()
public void setSubtreeFilter(SubtreeFilter f)
public void setXPathFilter(java.lang.String xpath) throws CapabilityException
xpath
- The XPath string.
CapabilityException
- Throw this exception if the server
does not have the :xpath:1.0 capability.public static java.lang.String convert3339(java.util.Date d)
d
- The Java Date.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |