Library: RemotingNG
Package: RemotingNG
Header: Poco/RemotingNG/URIUtility.h
This class provides utility methods for parsing and creating RemotingNG URIs.
Member Functions: createURIAuthority, createURIPath, parseURIPath
static std::string createURIAuthority(
const std::string & host,
Poco::UInt16 port
);
Creates an URI authority (e.g. host:port) from the given parameters.
static std::string createURIPath(
const Identifiable::ObjectId & oid,
const Identifiable::TypeId & tid,
const std::string & protocol
);
Creates an URI path from the given input parameters.
static void parseURIPath(
const std::string & uri,
Identifiable::ObjectId & oid,
Identifiable::TypeId & tid,
std::string & protocol
);
Parses an URI containing a path created by createURIPath().
Throws an exception if the URI format is not recognized.