![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents an instance of an OGC service, such as a WMS.
Instances are created via the create method of this class and should be deleted when finished with, except in the case where the instance is given to a TSLOGCServiceManager.
User requests should be passed to the processGetRequest method for processing.
Public Member Functions | |
~TSLOGCService () | |
bool | loadConfiguration (const char *configLocation) |
TSLOGCMIMEResponse * | processGetRequest (const char *address, const char *request) |
TSLOGCMIMEResponse * | processGetRequest (const char *address, const char *request, TSLOGCAttributes &attributes) |
TSLOGCMIMEResponse * | processPostRequest (const char *address, const char *contentType, const unsigned char *body, unsigned int bodyLength) |
TSLOGCMIMEResponse * | processPostRequest (const char *address, const char *contentType, const unsigned char *body, unsigned int bodyLength, TSLOGCAttributes &attributes) |
const char * | serviceName () const |
void | operator delete (void *pMem) |
Static Public Member Functions | |
static TSLOGCService * | create (const char *servicePlugin) |
TSLOGCService::~TSLOGCService | ( | ) |
|
static |
Constructs the requested service.
servicePlugin | The name of the service plug-in to load the service from. |
bool TSLOGCService::loadConfiguration | ( | const char * | configLocation | ) |
Configures the service
configLocation | The location of the configuration file to configure the service with. |
void TSLOGCService::operator delete | ( | void * | pMem | ) |
TSLOGCMIMEResponse * TSLOGCService::processGetRequest | ( | const char * | address, |
const char * | request ) |
Processes an HTTP 'GET' formatted request
NOTE: Any URL encoded characters should have been decoded first. e.g. The space character is encoded as %20, it should have been translated back to a space character.
address | The URL through which the service was accessed |
request | The request query string - i.e. The parameters that appear after the '?' part of the address. |
With the exception of the case when a null address or request is passed, a TSLOGCMIMEResponse instance will always be returned, although the contents of the response object may denote a service exception. The returned object is owned by the user and should be deleted when finished with.
TSLOGCMIMEResponse * TSLOGCService::processGetRequest | ( | const char * | address, |
const char * | request, | ||
TSLOGCAttributes & | attributes ) |
Reserved for future use.
TSLOGCMIMEResponse * TSLOGCService::processPostRequest | ( | const char * | address, |
const char * | contentType, | ||
const unsigned char * | body, | ||
unsigned int | bodyLength ) |
Processes an HTTP 'POST' formatted request
address | The URL through which the service was accessed |
body | The POST body |
bodyLength | The length of the POST body, provided through the body parameter |
contentType | The mimeType of the POST body. |
With the exception of the case when any of the passed parameters are null, a TSLOGCMIMEResponse instance will always be returned, although the contents of the response object may denote a service exception. The returned object is owned by the user and should be deleted when finished with.
TSLOGCMIMEResponse * TSLOGCService::processPostRequest | ( | const char * | address, |
const char * | contentType, | ||
const unsigned char * | body, | ||
unsigned int | bodyLength, | ||
TSLOGCAttributes & | attributes ) |
Reserved for future use.
const char * TSLOGCService::serviceName | ( | ) | const |
Query the name of this service. E.G. "wms" etc.