libqtaws
0.1.0
UnofficialAWSlibraryforQt-InternalDocumentation
|
Private implementation for AwsEndpoint. More...
Classes | |
struct | HostInfo |
The per-host information to load from the endpoints.xml file. More... | |
struct | RegionEndpointInfo |
The per-region endpoint-specific information to load from the endpoints.xml file. More... | |
struct | RegionInfo |
The per-region information to load from the endpoints.xml file. More... | |
struct | ServiceInfo |
The per-service information to load from the endpoints.xml file. More... | |
Public Member Functions | |
AwsEndpointPrivate (AwsEndpoint *const q) | |
Constructs a new AwsEndpointPrivate object. More... | |
Public Attributes | |
QString | hostName |
This endpoint's hostname. | |
QString | regionName |
This endpoint's region name. | |
QString | serviceName |
This endpoint's service name. | |
Protected Types | |
typedef QHash< QString, RegionEndpointInfo > | RegionServices |
Hash of service names to RegionEndpointInfo. | |
Static Protected Member Functions | |
static void | loadEndpointData (const QString &fileName=QLatin1String(":/aws/endpoints.xml")) |
Load endpoint data. More... | |
static void | loadEndpointData (QIODevice &device) |
Load endpoint data. More... | |
static void | loadEndpointData (QXmlStreamReader &xml) |
Load endpoint data. More... | |
static void | parseRegion (QXmlStreamReader &xml) |
Parse a Region element from Amazon's endpoint XML data. More... | |
static void | parseRegions (QXmlStreamReader &xml) |
Parse a Regions element from Amazon's endpoint XML data. More... | |
static void | parseService (QXmlStreamReader &xml) |
Parse a Service element from Amazon's endpoint XML data. More... | |
static void | parseServices (QXmlStreamReader &xml) |
Parse a Services element from Amazon's endpoint XML data. More... | |
Static Protected Attributes | |
static QHash< QString, HostInfo > | hosts |
Hash of hostnames to HostInfo. | |
static QHash< QString, RegionInfo > | regions |
Hash of region names to RegionInfo. | |
static QHash< QString, ServiceInfo > | services |
Hash of service names to ServiceInfo. | |
static QMutex | mutex |
Mutex for protecting access to static members. | |
Private Attributes | |
AwsEndpoint *const | q_ptr |
Internal q-pointer. | |
Friends | |
class | TestAwsEndpoint |
class | TestAwsSignatureV4 |
Private implementation for AwsEndpoint.
Definition at line 37 of file awsendpoint_p.h.
AwsEndpointPrivate::AwsEndpointPrivate | ( | AwsEndpoint *const | q | ) |
Constructs a new AwsEndpointPrivate object.
q | Pointer to this object's public AwsEndpoint instance. |
Definition at line 417 of file awsendpoint.cpp.
References loadEndpointData().
|
staticprotected |
Load endpoint data.
This function parses AWS endpoint data in XML format. The XML data is expected to match the same format as the file provided by Amazon at http://aws-sdk-configurations.amazonwebservices.com/endpoints.xml
If any data has been loaded previously, this function will return immediately with no parsing performed.
fileName | Name of the endpoint XML data file to load. |
Definition at line 437 of file awsendpoint.cpp.
Referenced by AwsEndpointPrivate(), AwsEndpoint::fullServiceName(), AwsEndpoint::getEndpoint(), AwsEndpoint::isSupported(), loadEndpointData(), AwsEndpoint::supportedRegions(), and AwsEndpoint::supportedServices().
|
staticprotected |
Load endpoint data.
This function parses AWS endpoint data in XML format. The XML data is expected to match the same format as the file provided by Amazon at http://aws-sdk-configurations.amazonwebservices.com/endpoints.xml
If any data has been loaded previously, this function will return immediately with no parsing performed.
device | Device to parse XML data from. |
Definition at line 463 of file awsendpoint.cpp.
References hosts, loadEndpointData(), and mutex.
|
staticprotected |
Load endpoint data.
This function parses AWS endpoint data in XML format. The XML data is expected to match the same format as the file provided by Amazon at http://aws-sdk-configurations.amazonwebservices.com/endpoints.xml
If any data has been loaded previously, this function will return immediately with no parsing performed.
xml | XML document to parse. |
Definition at line 495 of file awsendpoint.cpp.
References hosts, mutex, parseRegions(), parseServices(), regions, and services.
|
staticprotected |
Parse a Region
element from Amazon's endpoint XML data.
This function parses XML elements like:
The parsed entries are automatically added to AwsEndpointPrivate::hosts and AwsEndpointPrivate::regions.
xml | XML element to parse. |
Definition at line 553 of file awsendpoint.cpp.
References hosts, regionName, regions, and serviceName.
Referenced by parseRegions().
|
staticprotected |
Parse a Regions
element from Amazon's endpoint XML data.
This function parse an XML element containing a list of Region
elements. See AwsEndpointPrivate::parseRegion for the Region
element format.
The parsed entries are automatically added to AwsEndpointPrivate::hosts and AwsEndpointPrivate::regions.
xml | XML element containing regions to parse. |
Definition at line 614 of file awsendpoint.cpp.
References parseRegion().
Referenced by loadEndpointData().
|
staticprotected |
Parse a Service
element from Amazon's endpoint XML data.
This function parses XML elements like:
The parsed entries are automatically added to AwsEndpointPrivate::services.
xml | XML element to parse. |
Definition at line 654 of file awsendpoint.cpp.
References regionName, serviceName, and services.
Referenced by parseServices().
|
staticprotected |
Parse a Services
element from Amazon's endpoint XML data.
This function parses an XML element containing a list of Service
elements. See AwsEndpointPrivate::parseServices for the Service
element format.
The parsed entries are automatically added to AwsEndpointPrivate::services.
xml | XML element containing services to parse. |
Definition at line 689 of file awsendpoint.cpp.
References parseService().
Referenced by loadEndpointData().