URI handling (hopefully) according to RFC2396. More...
Public Types | |
enum | eComponent { d_scheme = 1, d_authority = 2, d_query = 4, d_fragment = 8 } |
Public Member Functions | |
XalanParsedURI (MemoryManagerType &theManager) | |
Default constructor. | |
XalanParsedURI (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen, MemoryManagerType &theManager) | |
Constructor which parses the passed in uri. | |
XalanParsedURI (const XalanDOMString &uriString, MemoryManagerType &theManager) | |
Constructor which parses the passed in uri. | |
MemoryManagerType & | getMemoryManager () |
void | parse (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen) |
Parse the passed in uri. | |
void | parse (const XalanDOMString &uriString) |
Parse the passed in uri. | |
XalanDOMString & | make (XalanDOMString &theResult) const |
Reassemble the uri components to make a complete URI. | |
void | resolve (const XalanParsedURI &base) |
Resolve this URI relative to another, according to RFC2396. | |
void | resolve (const XalanDOMChar *base, const XalanDOMString::size_type baseLen) |
Resolve this URI relative to another. | |
void | resolve (const XalanDOMString &base) |
Resolve this URI relative to another. | |
const XalanDOMString & | getScheme () const |
Get the scheme component. | |
bool | isSchemeDefined () const |
See if the scheme component is defined. | |
void | setScheme (const XalanDOMChar *scheme) |
Set the scheme component. | |
void | setScheme (const XalanDOMString &scheme) |
Set the scheme component. | |
const XalanDOMString & | getAuthority () const |
Get the authority component. | |
bool | isAuthorityDefined () const |
See if the authority component is defined. | |
void | setAuthority (const XalanDOMChar *authority) |
Set the authority component. | |
void | setAuthority (const XalanDOMString &authority) |
Set the authority component. | |
const XalanDOMString & | getPath () const |
Get the path component. | |
void | setPath (const XalanDOMChar *path) |
Set the path component. | |
void | setPath (const XalanDOMString &path) |
Set the path component. | |
const XalanDOMString & | getQuery () const |
Get function to get the query component. | |
bool | isQueryDefined () const |
See if the query component is defined. | |
void | setQuery (const XalanDOMChar *query) |
Set the query component. | |
void | setQuery (const XalanDOMString &query) |
Set the query component. | |
const XalanDOMString & | getFragment () const |
Get the fragment component. | |
bool | isFragmentDefined () const |
See if the fragment component is defined. | |
void | setFragment (const XalanDOMChar *fragment) |
Set the fragment component. | |
void | setFragment (const XalanDOMString &fragment) |
Set the fragment component. | |
unsigned int | getDefined () const |
Get the defined components mask. | |
void | setDefined (unsigned int defined) |
Set the defined components mask. |
Static Public Member Functions | |
static XalanDOMString & | resolve (const XalanDOMChar *relative, XalanDOMString::size_type relativeLen, const XalanDOMChar *base, XalanDOMString::size_type baseLen, XalanDOMString &theResult) |
Resolve the one URI relative to another. | |
static XalanDOMString & | resolve (const XalanDOMString &relative, const XalanDOMString &base, XalanDOMString &theResult) |
Resolve the one URI relative to another. |
URI handling (hopefully) according to RFC2396.
XalanParsedURI::XalanParsedURI | ( | MemoryManagerType & | theManager | ) |
Default constructor.
XalanParsedURI::XalanParsedURI | ( | const XalanDOMChar * | uriString, |
XalanDOMString::size_type | uriStringLen, | ||
MemoryManagerType & | theManager | ||
) |
Constructor which parses the passed in uri.
uriString | URI to parse |
uriStringLen | Length of the URI string |
XalanParsedURI::XalanParsedURI | ( | const XalanDOMString & | uriString, |
MemoryManagerType & | theManager | ||
) |
Constructor which parses the passed in uri.
uriString | URI to parse |
const XalanDOMString& XalanParsedURI::getAuthority | ( | ) | const |
Get the authority component.
unsigned int XalanParsedURI::getDefined | ( | ) | const |
Get the defined components mask.
const XalanDOMString& XalanParsedURI::getFragment | ( | ) | const |
Get the fragment component.
MemoryManagerType& XalanParsedURI::getMemoryManager | ( | ) |
const XalanDOMString& XalanParsedURI::getPath | ( | ) | const |
Get the path component.
const XalanDOMString& XalanParsedURI::getQuery | ( | ) | const |
Get function to get the query component.
const XalanDOMString& XalanParsedURI::getScheme | ( | ) | const |
Get the scheme component.
bool XalanParsedURI::isAuthorityDefined | ( | ) | const |
See if the authority component is defined.
bool XalanParsedURI::isFragmentDefined | ( | ) | const |
See if the fragment component is defined.
bool XalanParsedURI::isQueryDefined | ( | ) | const |
See if the query component is defined.
bool XalanParsedURI::isSchemeDefined | ( | ) | const |
See if the scheme component is defined.
XalanDOMString& XalanParsedURI::make | ( | XalanDOMString & | theResult | ) | const |
Reassemble the uri components to make a complete URI.
void XalanParsedURI::parse | ( | const XalanDOMChar * | uriString, |
XalanDOMString::size_type | uriStringLen | ||
) |
Parse the passed in uri.
uriString | URI to parse |
uriStringLen | Length of the URI string |
void XalanParsedURI::parse | ( | const XalanDOMString & | uriString | ) |
Parse the passed in uri.
uriString | URI to parse |
uriStringLen | Length of the URI string |
void XalanParsedURI::resolve | ( | const XalanParsedURI & | base | ) |
Resolve this URI relative to another, according to RFC2396.
base | The base URI to use during resolution. |
void XalanParsedURI::resolve | ( | const XalanDOMChar * | base, |
const XalanDOMString::size_type | baseLen | ||
) |
Resolve this URI relative to another.
base | The base URI string |
baseLen | The length of the base URI |
void XalanParsedURI::resolve | ( | const XalanDOMString & | base | ) |
Resolve this URI relative to another.
base | The base URI string |
|
static |
Resolve the one URI relative to another.
The URI string to resolve The lengh of the relative URI string The base URI string The length of the base URI string
|
static |
Resolve the one URI relative to another.
The URI string to resolve The base URI string
void XalanParsedURI::setAuthority | ( | const XalanDOMChar * | authority | ) |
Set the authority component.
Also sets the authority defined flag.
void XalanParsedURI::setAuthority | ( | const XalanDOMString & | authority | ) |
Set the authority component.
Also sets the authority defined flag.
void XalanParsedURI::setDefined | ( | unsigned int | defined | ) |
Set the defined components mask.
void XalanParsedURI::setFragment | ( | const XalanDOMChar * | fragment | ) |
Set the fragment component.
Also sets the fragment defined flag.
void XalanParsedURI::setFragment | ( | const XalanDOMString & | fragment | ) |
Set the fragment component.
Also sets the fragment defined flag.
void XalanParsedURI::setPath | ( | const XalanDOMChar * | path | ) |
Set the path component.
void XalanParsedURI::setPath | ( | const XalanDOMString & | path | ) |
Set the path component.
void XalanParsedURI::setQuery | ( | const XalanDOMChar * | query | ) |
Set the query component.
Also sets the query defined flag.
void XalanParsedURI::setQuery | ( | const XalanDOMString & | query | ) |
Set the query component.
Also sets the query defined flag.
void XalanParsedURI::setScheme | ( | const XalanDOMChar * | scheme | ) |
Set the scheme component.
Also sets the scheme defined flag.
void XalanParsedURI::setScheme | ( | const XalanDOMString & | scheme | ) |
Set the scheme component.
Also sets the scheme defined flag.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|