Class Openwsman::EndPointReference
In: ../openwsman.i
openwsman/openwsman.rb
Parent: Object

Document-class: EndPointReference

The EndPointReference is a stub to proxy server-side operations

Each WS-Management operation (Get, Enumerate, Invoke, …) has an associated end point reference, providing the actual implementation of the operation.

Methods

==   add_selector   classname   clone   cmp   each   namespace   new   new   prefix   resource_uri   selector   selector_count   selector_names   serialize   to_s   to_xml  

Public Class methods

EndPointReference.new(uri, address, { key=>value, ...})
EndPointReference.new(uri)
EndPointReference.new(xml)

Create EndPointReference from URI (String) or XML (XmlNode or XmlDoc)

EndPointReference.new(uri, address, { key=>value, ...})
EndPointReference.new(uri)
EndPointReference.new(xml)

Create EndPointReference from URI (String) or XML (XmlNode or XmlDoc)

Public Instance methods

==(p1)

Alias for cmp

Add selector as key/value pair

Classname of EPR

Compare two EndPointReferences

enumerate over selectors as key,value pairs

Namespace of EPR

Prefix of EPR

The resource URI associated to this EndPointReference

Get value of selector by name epr#selector converts any value passed to String

Shortcut

epr.selector("name") can also be abbreviated as epr.name

Examples

  epr.selector("name")
  epr.selector(value)
  epr.name

Number of selectors

Return list of selector names

Serialization

XML-serialize EndPointReference as child (with namespace and name) of node

String representation (<uri>?<selector>,<selector>,…)

String representation (XML syntax)

[Validate]