Library: Remoting/SoapLite
Package: SoapLite
Header: Poco/Remoting/SoapLite/URIUtility.h
URIUtility provides various static helper member functions for dealing with URIs used by Remoting.
Member Functions: createLocalURI, createURI, createURIPath, parseURI, parseURIPath
~URIUtility();
static std::string createLocalURI(
Poco::UInt16 port,
const Poco::Remoting::Identifiable::ObjectId & oid,
const Poco::Remoting::Identifiable::TypeId & tid
);
Creates an uri from the given input parameters for the localHost
static std::string createURI(
const std::string & serverName,
Poco::UInt16 port,
const Poco::Remoting::Identifiable::ObjectId & oid,
const Poco::Remoting::Identifiable::TypeId & tid,
bool secure
);
Creates an uri from the given input parameters
static std::string createURIPath(
const Poco::Remoting::Identifiable::ObjectId & oid,
const Poco::Remoting::Identifiable::TypeId & tid
);
Creates an uri path (i.e. the part after the serverName) from the given input parameters
static void parseURI(
const std::string & uri,
std::string & serverName,
Poco::UInt16 & port,
Poco::Remoting::Identifiable::ObjectId & oid,
Poco::Remoting::Identifiable::TypeId & tid,
bool & secure
);
Parses an URI path created by createURI, throws an exception if the format does not match
static void parseURIPath(
const std::string & uri,
Poco::Remoting::Identifiable::ObjectId & oid,
Poco::Remoting::Identifiable::TypeId & tid
);
Parses an URI path created by createURIPath, throws an exception if the format does not match, works also for full URIs