OW_NAMESPACE::URL Struct Reference

This class represents URLs, and is used to easily parse and manage them. More...

#include <OW_URL.hpp>

Collaboration diagram for OW_NAMESPACE::URL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 URL ()
 Creates an URL with empty member variables.
 URL (const String &sUrl)
 Allocate a new URL, based on a string.
String toString () const
 Return a string based on the data in the member variables.

Public Attributes

String scheme
String principal
String credential
String host
String port
String namespaceName
String modelPath

Static Public Attributes

static const char *const CIMXML_WBEM = "cimxml.wbem"
static const char *const CIMXML_WBEMS = "cimxml.wbems"
static const char *const HTTP = "http"
static const char *const HTTPS = "https"
static const char *const OWBINARY_WBEM = "owbinary.wbem"
static const char *const OWBINARY_WBEMS = "owbinary.wbems"
static const char *const OWBINARY = "owbinary"
static const char *const OWIPC = "owipc"

Detailed Description

This class represents URLs, and is used to easily parse and manage them.

See DMTF DSP0207 WBEM URI Mapping Specification 1.0.0

Definition at line 51 of file OW_URL.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::URL::URL  ) 
 

Creates an URL with empty member variables.

This is mean to be filled out before being used.

Definition at line 86 of file OW_URL.cpp.

OW_NAMESPACE::URL::URL const String sUrl  ) 
 

Allocate a new URL, based on a string.

This ctor parses the string and fills out the member variables. An Acceptable URL for this class is defined as follows: [scheme"://"][[<principal>][":"<credential>]"@"]<host>[":"<port>]["/"<namespace name>="">["/:"<model path>="">]] The only required element is <host>

Standard WBEM schemes are: cimxml.wbem, cimxml.wbems, http, https. OW specific WBEM schemes are: owbinary.wbem, owbinary.wbems

A port may be a number to indicate a TCP port, or it may be the special value owipc which indicates the Unix Domain Socket for the system.

Parameters:
sUrl The URL such as "https://jdd:test@myhost.com:5989/interop/:CIM_Namespace.Name=unknown,CreationClassName=CIM_ComputerSystem"
Exceptions:
MalformedURLException 

Definition at line 91 of file OW_URL.cpp.

References credential, OW_NAMESPACE::String::empty(), OW_NAMESPACE::String::indexOf(), OW_NAMESPACE::String::npos, principal, scheme, OW_NAMESPACE::String::substring(), OW_NAMESPACE::String::toLowerCase(), and OW_NAMESPACE::String::trim().


Member Function Documentation

String OW_NAMESPACE::URL::toString  )  const
 

Return a string based on the data in the member variables.

Definition at line 48 of file OW_URL.cpp.

References OW_NAMESPACE::String::empty(), and scheme.

Referenced by OW_NAMESPACE::HTTPXMLCIMListenerCallback::deleteRegistrationObjects(), OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication(), OW_NAMESPACE::HTTPClient::getCredentialsIfNecessary(), and OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle().


Member Data Documentation

const char *const OW_NAMESPACE::URL::CIMXML_WBEM = "cimxml.wbem" [static]
 

Definition at line 89 of file OW_URL.hpp.

const char *const OW_NAMESPACE::URL::CIMXML_WBEMS = "cimxml.wbems" [static]
 

Definition at line 90 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication().

String OW_NAMESPACE::URL::credential
 

Definition at line 78 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::HTTPClient::getCredentialsIfNecessary(), OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), OW_NAMESPACE::HTTPClient::sendAuthorization(), and URL().

String OW_NAMESPACE::URL::host
 

Definition at line 79 of file OW_URL.hpp.

const char *const OW_NAMESPACE::URL::HTTP = "http" [static]
 

Definition at line 91 of file OW_URL.hpp.

const char *const OW_NAMESPACE::URL::HTTPS = "https" [static]
 

Definition at line 92 of file OW_URL.hpp.

String OW_NAMESPACE::URL::modelPath
 

Definition at line 82 of file OW_URL.hpp.

String OW_NAMESPACE::URL::namespaceName
 

Definition at line 81 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::ClientCIMOMHandle::createFromURL().

const char *const OW_NAMESPACE::URL::OWBINARY = "owbinary" [static]
 

Definition at line 99 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::ClientCIMOMHandle::createFromURL().

const char *const OW_NAMESPACE::URL::OWBINARY_WBEM = "owbinary.wbem" [static]
 

Definition at line 93 of file OW_URL.hpp.

const char *const OW_NAMESPACE::URL::OWBINARY_WBEMS = "owbinary.wbems" [static]
 

Definition at line 94 of file OW_URL.hpp.

const char *const OW_NAMESPACE::URL::OWIPC = "owipc" [static]
 

Definition at line 102 of file OW_URL.hpp.

String OW_NAMESPACE::URL::port
 

Definition at line 80 of file OW_URL.hpp.

String OW_NAMESPACE::URL::principal
 

Definition at line 77 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::HTTPClient::getCredentialsIfNecessary(), OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), OW_NAMESPACE::HTTPClient::sendAuthorization(), and URL().

String OW_NAMESPACE::URL::scheme
 

Definition at line 76 of file OW_URL.hpp.

Referenced by OW_NAMESPACE::ClientCIMOMHandle::createFromURL(), OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication(), OW_NAMESPACE::HTTPClient::setUrl(), toString(), and URL().


The documentation for this struct was generated from the following files:
Generated on Thu Feb 9 09:14:50 2006 for openwbem by  doxygen 1.4.6