URI handling (hopefully) according to RFC2396. More...
#include <XalanParsedURI.hpp>
Public Types | |
enum | eComponent { d_scheme = 1, d_authority = 2, d_query = 4, d_fragment = 8 } |
Public Member Functions | |
XalanParsedURI (MemoryManager &theManager) | |
Default constructor. More... | |
XalanParsedURI (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen, MemoryManager &theManager) | |
Constructor which parses the passed in uri. More... | |
XalanParsedURI (const XalanDOMString &uriString, MemoryManager &theManager) | |
Constructor which parses the passed in uri. More... | |
MemoryManager & | getMemoryManager () |
void | parse (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen) |
Parse the passed in uri. More... | |
void | parse (const XalanDOMString &uriString) |
Parse the passed in uri. More... | |
XalanDOMString & | make (XalanDOMString &theResult) const |
Reassemble the uri components to make a complete URI. More... | |
void | resolve (const XalanParsedURI &base) |
Resolve this URI relative to another, according to RFC2396. More... | |
void | resolve (const XalanDOMChar *base, const XalanDOMString::size_type baseLen) |
Resolve this URI relative to another. More... | |
void | resolve (const XalanDOMString &base) |
Resolve this URI relative to another. More... | |
const XalanDOMString & | getScheme () const |
Get the scheme component. More... | |
bool | isSchemeDefined () const |
See if the scheme component is defined. More... | |
void | setScheme (const XalanDOMChar *scheme) |
Set the scheme component. More... | |
void | setScheme (const XalanDOMString &scheme) |
Set the scheme component. More... | |
const XalanDOMString & | getAuthority () const |
Get the authority component. More... | |
bool | isAuthorityDefined () const |
See if the authority component is defined. More... | |
void | setAuthority (const XalanDOMChar *authority) |
Set the authority component. More... | |
void | setAuthority (const XalanDOMString &authority) |
Set the authority component. More... | |
const XalanDOMString & | getPath () const |
Get the path component. More... | |
void | setPath (const XalanDOMChar *path) |
Set the path component. More... | |
void | setPath (const XalanDOMString &path) |
Set the path component. More... | |
const XalanDOMString & | getQuery () const |
Get function to get the query component. More... | |
bool | isQueryDefined () const |
See if the query component is defined. More... | |
void | setQuery (const XalanDOMChar *query) |
Set the query component. More... | |
void | setQuery (const XalanDOMString &query) |
Set the query component. More... | |
const XalanDOMString & | getFragment () const |
Get the fragment component. More... | |
bool | isFragmentDefined () const |
See if the fragment component is defined. More... | |
void | setFragment (const XalanDOMChar *fragment) |
Set the fragment component. More... | |
void | setFragment (const XalanDOMString &fragment) |
Set the fragment component. More... | |
unsigned int | getDefined () const |
Get the defined components mask. More... | |
void | setDefined (unsigned int defined) |
Set the defined components mask. More... | |
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. More... | |
static XalanDOMString & | resolve (const XalanDOMString &relative, const XalanDOMString &base, XalanDOMString &theResult) |
Resolve the one URI relative to another. More... | |
URI handling (hopefully) according to RFC2396.
Definition at line 41 of file XalanParsedURI.hpp.
Enumerator | |
---|---|
d_scheme | |
d_authority | |
d_query | |
d_fragment |
Definition at line 53 of file XalanParsedURI.hpp.
|
inline |
Default constructor.
Definition at line 65 of file XalanParsedURI.hpp.
|
inline |
Constructor which parses the passed in uri.
uriString | URI to parse |
uriStringLen | Length of the URI string |
Definition at line 81 of file XalanParsedURI.hpp.
|
inline |
Constructor which parses the passed in uri.
uriString | URI to parse |
Definition at line 100 of file XalanParsedURI.hpp.
|
inline |
Get the authority component.
Definition at line 252 of file XalanParsedURI.hpp.
|
inline |
Get the defined components mask.
Definition at line 378 of file XalanParsedURI.hpp.
|
inline |
Get the fragment component.
Definition at line 344 of file XalanParsedURI.hpp.
|
inline |
Definition at line 114 of file XalanParsedURI.hpp.
|
inline |
Get the path component.
Definition at line 286 of file XalanParsedURI.hpp.
|
inline |
Get function to get the query component.
Definition at line 310 of file XalanParsedURI.hpp.
|
inline |
Get the scheme component.
Definition at line 218 of file XalanParsedURI.hpp.
|
inline |
See if the authority component is defined.
Definition at line 260 of file XalanParsedURI.hpp.
|
inline |
See if the fragment component is defined.
Definition at line 352 of file XalanParsedURI.hpp.
|
inline |
See if the query component is defined.
Definition at line 318 of file XalanParsedURI.hpp.
|
inline |
See if the scheme component is defined.
Definition at line 226 of file XalanParsedURI.hpp.
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 |
|
inline |
Parse the passed in uri.
uriString | URI to parse |
uriStringLen | Length of the URI string |
Definition at line 135 of file XalanParsedURI.hpp.
void XalanParsedURI::resolve | ( | const XalanParsedURI & | base | ) |
Resolve this URI relative to another, according to RFC2396.
base | The base URI to use during resolution. |
|
inline |
Resolve this URI relative to another.
base | The base URI string |
baseLen | The length of the base URI |
Definition at line 161 of file XalanParsedURI.hpp.
|
inline |
Resolve this URI relative to another.
base | The base URI string |
Definition at line 175 of file XalanParsedURI.hpp.
|
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
|
inlinestatic |
Resolve the one URI relative to another.
The URI string to resolve The base URI string
Definition at line 206 of file XalanParsedURI.hpp.
|
inline |
Set the authority component.
Also sets the authority defined flag.
Definition at line 268 of file XalanParsedURI.hpp.
|
inline |
Set the authority component.
Also sets the authority defined flag.
Definition at line 277 of file XalanParsedURI.hpp.
|
inline |
Set the defined components mask.
Definition at line 386 of file XalanParsedURI.hpp.
|
inline |
Set the fragment component.
Also sets the fragment defined flag.
Definition at line 360 of file XalanParsedURI.hpp.
|
inline |
Set the fragment component.
Also sets the fragment defined flag.
Definition at line 369 of file XalanParsedURI.hpp.
|
inline |
Set the path component.
Definition at line 294 of file XalanParsedURI.hpp.
|
inline |
Set the path component.
Definition at line 302 of file XalanParsedURI.hpp.
|
inline |
Set the query component.
Also sets the query defined flag.
Definition at line 326 of file XalanParsedURI.hpp.
|
inline |
Set the query component.
Also sets the query defined flag.
Definition at line 335 of file XalanParsedURI.hpp.
|
inline |
Set the scheme component.
Also sets the scheme defined flag.
Definition at line 234 of file XalanParsedURI.hpp.
|
inline |
Set the scheme component.
Also sets the scheme defined flag.
Definition at line 243 of file XalanParsedURI.hpp.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|