Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Protected Attributes
Arc::WSAEndpointReference Class Reference

Interface for manipulation of WS-Adressing Endpoint Reference. More...

#include <WSA.h>

Collaboration diagram for Arc::WSAEndpointReference:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WSAEndpointReference (XMLNode epr)
 Link to top level EPR XML node.
 WSAEndpointReference (const WSAEndpointReference &wsa)
 Copy constructor.
 WSAEndpointReference (const std::string &address)
 Creating independent EPR - not implemented.
 WSAEndpointReference (void)
 Dummy constructor - creates invalid instance.
 ~WSAEndpointReference (void)
 Destructor.
std::string Address (void) const
 Returns Address (URL) encoded in EPR.
void Address (const std::string &uri)
 Assigns new Address value.
WSAEndpointReferenceoperator= (const std::string &address)
 Same as Address(uri)
XMLNode ReferenceParameters (void)
 Access to ReferenceParameters element of EPR.
XMLNode MetaData (void)
 Access to MetaData element of EPR.
 operator XMLNode (void)
 Returns reference to EPR top XML node.

Protected Attributes

XMLNode epr_

Detailed Description

Interface for manipulation of WS-Adressing Endpoint Reference.

It works on Endpoint Reference stored in XML tree. No information is stored in this object except reference to corresponding XML subtree.

Definition at line 18 of file WSA.h.


Constructor & Destructor Documentation

Link to top level EPR XML node.

Linking to existing EPR in XML tree

Definition at line 38 of file WSA.cpp.

: epr_(epr) {}

Copy constructor.

Definition at line 40 of file WSA.cpp.

: epr_(wsa.epr_) {}
Arc::WSAEndpointReference::WSAEndpointReference ( const std::string &  address)

Creating independent EPR - not implemented.

Definition at line 43 of file WSA.cpp.

                                                           {
}

Dummy constructor - creates invalid instance.

Definition at line 47 of file WSA.cpp.

                                               {
}

Destructor.

All empty elements of EPR XML are destroyed here too

Definition at line 51 of file WSA.cpp.

                                                {
  remove_empty_nodes(epr_,"wsa:Address");
  remove_empty_nodes(epr_,"wsa:ReferenceParameters");
  remove_empty_nodes(epr_,"wsa:MetaData");
}

Here is the call graph for this function:


Member Function Documentation

std::string Arc::WSAEndpointReference::Address ( void  ) const

Returns Address (URL) encoded in EPR.

Definition at line 58 of file WSA.cpp.

                                                  {
  return strip_spaces(const_cast<XMLNode&>(epr_)["wsa:Address"]);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void Arc::WSAEndpointReference::Address ( const std::string &  uri)

Assigns new Address value.

If EPR had no Address element it is created.

Definition at line 67 of file WSA.cpp.

                                                       {
  get_node(epr_,"wsa:Address")=uri; 
}

Here is the call graph for this function:

Access to MetaData element of EPR.

Obtained XML element should be manipulated directly in application-dependent way. If EPR had no MetaData element it is created.

Definition at line 77 of file WSA.cpp.

                                           {
  return get_node(epr_,"wsa:MetaData");
}

Here is the call graph for this function:

Arc::WSAEndpointReference::operator XMLNode ( void  )

Returns reference to EPR top XML node.

Definition at line 82 of file WSA.cpp.

                                           {
  return epr_;
}
WSAEndpointReference & Arc::WSAEndpointReference::operator= ( const std::string &  address)

Same as Address(uri)

Definition at line 62 of file WSA.cpp.

                                                                              {
  Address(address);
  return *this;
}

Here is the call graph for this function:

Access to ReferenceParameters element of EPR.

Obtained XML element should be manipulated directly in application-dependent way. If EPR had no ReferenceParameters element it is created.

Definition at line 72 of file WSA.cpp.

                                                      {
  return get_node(epr_,"wsa:ReferenceParameters");
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 20 of file WSA.h.


The documentation for this class was generated from the following files: