Does not inherit
#include rwsf/core/ServiceLocation.h
This class represents a URL location. A basic URL is comprised of a scheme, address, and path:
scheme://server:port/path/to/service [scheme]:// [address] / [path]
Although it has constructors for a separate scheme, server, and path, this class is best constructed with a simple string, which will be parsed out correctly:
rwsf::ServiceLocation sl("http://myServer:9999/path/to/service");
ServiceLocation();
Default constructor.
ServiceLocation(const std::string & location);
Full location constructor.
ServiceLocation(const std::string & scheme, const std::string & address, const std::string & path);
scheme/address/path constructor.
ServiceLocation(const rwsf::ServiceLocation & s);
Copy constructor.
~ServiceLocation();
Destructor.
bool equals(const rwsf::ServiceLocation & rhs) const;
Return whether or not the given ServiceLocation is equal to this one.
std::string getAddress() const;
Return the address for this operation.
std::string getFullLocation() const;
Return the full location for this operation (scheme://server:port/path).
std::string getPath() const;
Return the path for this operation.
std::string getPort() const;
Return the port for this operation.
std::string getQueryVars() const;
Return the query variables for this operation.
std::list< std::string > getQueryVarsList() const;
Return the list of queryVar attributes for this operation.
std::string getScheme() const;
Return the scheme for this operation.
std::string getServer() const;
Return the server for this operation.
void setAddress(const std::string & address);
Set the address for this operation.
void setPath(const std::string & path);
Set the path for this operation.
void setPort(const std::string &);
Set the port for this operation.
void setQueryVars(const std::string & queryVars);
Set the query variables and populate the queryVarList for this operation.
void setScheme(const std::string & scheme);
Set the scheme for this operation.
void setServer(const std::string &);
Set the server for this operation.
ServiceLocation & operator=(const rwsf::ServiceLocation & rhs);
Assignment operator.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.