Poco::Remoting

class URIUtility

Library: Remoting
Package: Remoting
Header: Poco/Remoting/URIUtility.h

Description

Helper utility used for parsing and creating uris.

Member Summary

Member Functions: createURI, createURIPath, parseURI, parseURIPath

Constructors

Destructor

~URIUtility protected

~URIUtility();

Member Functions

createURI static

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.

createURI static

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,

createURIPath static

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

parseURI static

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

parseURI static

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

parseURIPath static

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

Variables

HTTPPREFIX static

static const std::string HTTPPREFIX;

KEYHTTPPREFIX static

static const std::string KEYHTTPPREFIX;

KEYSCHEMEPREFIX static

static const std::string KEYSCHEMEPREFIX;

KEYSECUREHTTPPREFIX static

static const std::string KEYSECUREHTTPPREFIX;

KEYSECURESCHEMEPREFIX static

static const std::string KEYSECURESCHEMEPREFIX;

SCHEMEPREFIX static

static const std::string SCHEMEPREFIX;

SECUREHTTPPREFIX static

static const std::string SECUREHTTPPREFIX;

SECURESCHEMEPREFIX static

static const std::string SECURESCHEMEPREFIX;

SEPARATOR static

static const std::string SEPARATOR;