18 #ifndef _DECAF_INTERNAL_NET_URIHELPER_H_ 19 #define _DECAF_INTERNAL_NET_URIHELPER_H_ 36 const std::string unreserved;
37 const std::string punct;
38 const std::string reserved;
39 const std::string someLegal;
40 const std::string allLegal;
56 const std::string& punct,
57 const std::string& reserved,
58 const std::string& someLegal,
59 const std::string& allLegal );
75 URIType parseURI(
const std::string& uri,
bool forceServer );
84 void validateScheme(
const std::string& uri,
const std::string& scheme,
int index );
93 void validateSsp(
const std::string& uri,
const std::string& ssp,
103 void validateAuthority(
const std::string& uri,
const std::string& authority,
113 void validatePath(
const std::string& uri,
const std::string& path,
123 void validateQuery(
const std::string& uri,
const std::string& query,
133 void validateFragment(
const std::string& uri,
const std::string& fragment,
153 URIType parseAuthority(
bool forceServer,
const std::string& authority );
163 void validateUserinfo(
const std::string& uri,
const std::string& userinfo, std::size_t index );
173 bool isValidHost(
bool forceServer,
const std::string& host );
181 bool isValidDomainName(
const std::string& host );
190 bool isValidIPv4Address(
const std::string& host );
197 bool isValidIP6Address(
const std::string& ipAddress );
205 bool isValidIP4Word(
const std::string& word );
213 bool isValidHexChar(
char c );
virtual ~URIHelper()
Definition: URIHelper.h:66
Basic type object that holds data that composes a given URI.
Definition: URIType.h:31
#define DECAF_API
Definition: Config.h:29
Helper class used by the URI classes in encoding and decoding of URI's.
Definition: URIHelper.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25