19 #if !defined(XALANPARSEDURI_HEADER_GUARD_1357924680) 20 #define XALANPARSEDURI_HEADER_GUARD_1357924680 34 XALAN_CPP_NAMESPACE_BEGIN
47 #if defined(XALAN_INLINE_INITIALIZATION) 48 static const int d_scheme = 1;
49 static const int d_authority = 2;
50 static const int d_query = 4;
51 static const int d_fragment = 8;
67 m_authority(theManager),
70 m_fragment(theManager),
82 const XalanDOMChar* uriString,
84 MemoryManager& theManager) :
86 m_authority(theManager),
89 m_fragment(theManager),
92 parse(uriString, uriStringLen);
102 MemoryManager& theManager) :
103 m_scheme(theManager),
104 m_authority(theManager),
107 m_fragment(theManager),
116 return m_scheme.getMemoryManager();
126 const XalanDOMChar* uriString,
162 const XalanDOMChar *base,
191 const XalanDOMChar *relative,
193 const XalanDOMChar *base,
228 return m_defined & d_scheme;
237 m_defined |= d_scheme;
246 m_defined |= d_scheme;
262 return m_defined & d_authority ? true :
false;
270 m_authority = authority;
271 m_defined |= d_authority;
279 m_authority = authority;
280 m_defined |= d_authority;
320 return m_defined & d_query ? true :
false;
329 m_defined |= d_query;
338 m_defined |= d_query;
354 return m_defined & d_fragment ? true :
false;
362 m_fragment = fragment;
363 m_defined |= d_fragment;
371 m_fragment = fragment;
372 m_defined |= d_fragment;
402 unsigned int m_defined;
405 XALAN_CPP_NAMESPACE_END
407 #endif // XALANPARSEDURI_HEADER_GUARD_1357924680 bool isSchemeDefined() const
See if the scheme component is defined.
void setFragment(const XalanDOMChar *fragment)
Set the fragment component.
MemoryManager & getMemoryManager()
void setQuery(const XalanDOMChar *query)
Set the query component.
void setDefined(unsigned int defined)
Set the defined components mask.
const XalanDOMString & getPath() const
Get the path component.
void setAuthority(const XalanDOMString &authority)
Set the authority component.
const XalanDOMString & getScheme() const
Get the scheme component.
URI handling (hopefully) according to RFC2396.
XalanParsedURI(MemoryManager &theManager)
Default constructor.
const XalanDOMChar * c_str() const
void setScheme(const XalanDOMString &scheme)
Set the scheme component.
unsigned int getDefined() const
Get the defined components mask.
bool isQueryDefined() const
See if the query component is defined.
const XalanDOMString & getFragment() const
Get the fragment component.
const XalanDOMString & getQuery() const
Get function to get the query component.
void setFragment(const XalanDOMString &fragment)
Set the fragment component.
void setQuery(const XalanDOMString &query)
Set the query component.
void setPath(const XalanDOMChar *path)
Set the path component.
XalanParsedURI(const XalanDOMString &uriString, MemoryManager &theManager)
Constructor which parses the passed in uri.
const XalanDOMString & getAuthority() const
Get the authority component.
void resolve(const XalanDOMString &base)
Resolve this URI relative to another.
XalanParsedURI(const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen, MemoryManager &theManager)
Constructor which parses the passed in uri.
void setAuthority(const XalanDOMChar *authority)
Set the authority component.
void setPath(const XalanDOMString &path)
Set the path component.
void parse(const XalanDOMString &uriString)
Parse the passed in uri.
void setScheme(const XalanDOMChar *scheme)
Set the scheme component.
void resolve(const XalanDOMChar *base, const XalanDOMString::size_type baseLen)
Resolve this URI relative to another.
static XalanDOMString & resolve(const XalanDOMString &relative, const XalanDOMString &base, XalanDOMString &theResult)
Resolve the one URI relative to another.
bool isAuthorityDefined() const
See if the authority component is defined.
bool isFragmentDefined() const
See if the fragment component is defined.