Library: Remoting
Package: Remoting
Header: Poco/Remoting/URIUtility.h
Helper utility used for parsing and creating uris.
Member Functions: createURI, createURIPath, parseURI, parseURIPath
 ~URIUtility();
 static std::string createURI(
    const std::string & serverName,
    Poco::UInt16 port,
    const Identifiable::ObjectId & oid,
    const Identifiable::TypeId & tid,
    const std::string & transport,
    bool secure
);
Creates an uri from the given input parameters.
 static std::string createURI(
    const std::string & serverName,
    Poco::UInt16 port,
    const std::string & path,
    bool secure
);
Creates an uri from the given input parameters. The path is taken as is and is not checked if it is valid,
 static std::string createURIPath(
    const Identifiable::ObjectId & oid,
    const Identifiable::TypeId & tid,
    const std::string & transport
);
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,
    Identifiable::ObjectId & oid,
    Identifiable::TypeId & tid,
    std::string & transport,
    bool & secure
);
Parses an URI path created by createURI, throws an exception if the format does not match
 static void parseURI(
    const std::string & uri,
    std::string & serverName,
    Poco::UInt16 & port,
    std::string & uriPath,
    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,
    Identifiable::ObjectId & oid,
    Identifiable::TypeId & tid,
    std::string & transport
);
Parses an URI path created by createURIPath, throws an exception if the format does not match, works also for full URIs
 static const std::string HTTPPREFIX;
 static const std::string KEYHTTPPREFIX;
 static const std::string KEYSCHEMEPREFIX;
 static const std::string KEYSECUREHTTPPREFIX;
 static const std::string KEYSECURESCHEMEPREFIX;
 static const std::string SCHEMEPREFIX;
 static const std::string SECUREHTTPPREFIX;
 static const std::string SECURESCHEMEPREFIX;
 static const std::string SEPARATOR;