com.vhosting.netconf
Class CopyConfig

java.lang.Object
  extended by com.vhosting.netconf.Operation
      extended by com.vhosting.netconf.CopyConfig

public class CopyConfig
extends Operation

The copy-config Netconf operation. Create or replace an entire configuration container with the contents of another complete configuration container. If the target Container exists, it is overwritten. Otherwise, a new one is created, if allowed. Supported server capabilities:

 urn:ietf:params:netconf:base:1.0
 urn:ietf:params:netconf:capability:writable-running:1.0
 urn:ietf:params:netconf:capability:startup:1.0
 urn:ietf:params:netconf:capability:candidate:1.0
 urn:ietf:params:netconf:capability:url:1.0
 

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

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
CopyConfig(Session session, Datastore target, Datastore source)
          Create the copy-config Netconf operation.
CopyConfig(Session session, Datastore target, java.net.URL source)
          Create the copy-config Netconf operation.
CopyConfig(Session session, java.net.URL target, Datastore source)
          Create the copy-config Netconf operation.
CopyConfig(Session session, java.net.URL target, java.net.URL source)
          Create the copy-config Netconf operation.
 
Method Summary
 
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

CopyConfig

public CopyConfig(Session session,
                  Datastore target,
                  Datastore source)
           throws CapabilityException
Create the copy-config Netconf operation.

Parameters:
session - The active session.
target - The target Container.
source - The source Container.
Throws:
CapabilityException - Throw this exception if the server does not have the :candidate:1.0 capability and the source or target container is 'candidate'. Throw this exception if the server does not have the :writable-running:1.0 capability and the source or target container is 'running'. Throw this exception if the server does not have the :startup:1.0 capability and the source or target container is 'startup'.

CopyConfig

public CopyConfig(Session session,
                  java.net.URL target,
                  Datastore source)
           throws CapabilityException
Create the copy-config Netconf operation.

Parameters:
session - The active session.
target - The target URL Container.
source - The source Container.
Throws:
CapabilityException - Throw this exception if the server does not have the :candidate:1.0 capability and the source container is 'candidate'. Throw this exception if the server does not have the :writable-running:1.0 capability and the source container is 'running'. Throw this exception if the server does not have the :startup:1.0 capability and the source container is 'startup'. Throw this exception if the server does not have the :url:1.0 capability or if the used URL schema is not supported by server.

CopyConfig

public CopyConfig(Session session,
                  Datastore target,
                  java.net.URL source)
           throws CapabilityException
Create the copy-config Netconf operation.

Parameters:
session - The active session.
target - The target Container.
source - The source URL Container.
Throws:
CapabilityException - Throw this exception if the server does not have the :candidate:1.0 capability and the target container is 'candidate'. Throw this exception if the server does not have the :writable-running:1.0 capability and the target container is 'running'. Throw this exception if the server does not have the :startup:1.0 capability and the target container is 'startup'. Throw this exception if the server does not have the :url:1.0 capability or if the used URL schema is not supported by server.

CopyConfig

public CopyConfig(Session session,
                  java.net.URL target,
                  java.net.URL source)
           throws CapabilityException
Create the copy-config Netconf operation.

Parameters:
session - The active session.
target - The target URL Container.
source - The source URL Container.
Throws:
CapabilityException - Throw this exception if the server does not have the :url:1.0 capability or if the used URL schema is not supported by server.