|
Public Member Functions |
| | XMLUri (const XMLCh *const uriSpec, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |
| | Construct a new URI from a URI specification string.
|
| | XMLUri (const XMLUri *const baseURI, const XMLCh *const uriSpec, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |
| | Construct a new URI from a base URI and a URI specification string.
|
| | XMLUri (const XMLUri &toCopy) |
| | Copy constructor.
|
| XMLUri & | operator= (const XMLUri &toAssign) |
| virtual | ~XMLUri () |
| const XMLCh * | getUriText () const |
| | Get the URI as a string specification.
|
| const XMLCh * | getScheme () const |
| | Get the scheme for this URI.
|
| const XMLCh * | getUserInfo () const |
| | Get the userinfo for this URI.
|
| const XMLCh * | getHost () const |
| | Get the host for this URI.
|
| int | getPort () const |
| | Get the port for this URI.
|
| const XMLCh * | getRegBasedAuthority () const |
| | Get the registry based authority for this URI.
|
| const XMLCh * | getPath () const |
| | Get the path for this URI.
|
| const XMLCh * | getQueryString () const |
| | Get the query string for this URI.
|
| const XMLCh * | getFragment () const |
| | Get the fragment for this URI.
|
| void | setScheme (const XMLCh *const newScheme) |
| | Set the scheme for this URI.
|
| void | setUserInfo (const XMLCh *const newUserInfo) |
| | Set the userinfo for this URI.
|
| void | setHost (const XMLCh *const newHost) |
| | Set the host for this URI.
|
| void | setPort (int newPort) |
| | Set the port for this URI.
|
| void | setRegBasedAuthority (const XMLCh *const newRegAuth) |
| | Sets the registry based authority for this URI.
|
| void | setPath (const XMLCh *const newPath) |
| | Set the path for this URI.
|
| void | setQueryString (const XMLCh *const newQueryString) |
| | Set the query string for this URI.
|
| void | setFragment (const XMLCh *const newFragment) |
| | Set the fragment for this URI.
|
| | XMLUri (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |
Static Public Member Functions |
| static bool | isURIString (const XMLCh *const uric) |
| | Determine whether a given string contains only URI characters (also called "uric" in RFC 2396).
|
| static bool | isValidURI (const XMLUri *const baseURI, const XMLCh *const uriStr) |
| | Determine whether a given string is a valid URI.
|
| static bool | isValidURI (bool haveBaseURI, const XMLCh *const uriStr) |
| | Determine whether a given string is a valid URI.
|
| static void | normalizeURI (const XMLCh *const systemURI, XMLBuffer &normalizedURI) |
Construct a new URI from a URI specification string.
If the specification follows the "generic URI" syntax, (two slashes following the first colon), the specification will be parsed accordingly - setting the scheme, userinfo, host, port, path, querystring and fragment fields as necessary.
If the specification does not follow the "generic URI" syntax, the specification is parsed into a scheme and scheme-specific part (stored as the path) only.
- Parameters:
-
| uriSpec | the URI specification string (cannot be null or empty) |
| manager | Pointer to the memory manager to be used to allocate objects. |
ctor# 2
| void XMLUri::setPath |
( |
const XMLCh *const |
newPath |
) |
|
Set the path for this URI.
If the supplied path is null, then the query string and fragment are set to null as well.
If the supplied path includes a query string and/or fragment, these fields will be parsed and set as well.
Note:
For URIs following the "generic URI" syntax, the path specified should start with a slash.
For URIs that do not follow the generic URI syntax, this method sets the scheme-specific part.
- Parameters:
-
| newPath | the path for this URI (may be null) |