This class implements a scheme to match dtn-session: URIs. More...
#include <SessionScheme.h>
Public Member Functions | |
bool | validate (const URI &uri, bool is_pattern=false) |
Virtual from Scheme. | |
bool | match (const EndpointIDPattern &pattern, const EndpointID &eid) |
Virtual from Scheme. | |
singleton_info_t | is_singleton (const URI &uri) |
Virtual from Scheme. | |
Private Member Functions | |
SessionScheme () | |
Friends | |
class | oasys::Singleton< SessionScheme > |
This class implements a scheme to match dtn-session: URIs.
The SSP must itself be another URI, e.g.:
dtn-session:http://foo/bar
If it's an endpoint id pattern, then as long as the characters are valid, any string can follow, and globbing rules are used to match.
Definition at line 35 of file SessionScheme.h.
dtn::SessionScheme::SessionScheme | ( | ) | [inline, private] |
Definition at line 45 of file SessionScheme.h.
Scheme::singleton_info_t dtn::SessionScheme::is_singleton | ( | const URI & | uri | ) | [virtual] |
Virtual from Scheme.
Implements dtn::Scheme.
Definition at line 90 of file SessionScheme.cc.
References dtn::EndpointID::SINGLETON.
bool dtn::SessionScheme::match | ( | const EndpointIDPattern & | pattern, | |
const EndpointID & | eid | |||
) | [virtual] |
Virtual from Scheme.
Implements dtn::Scheme.
Definition at line 62 of file SessionScheme.cc.
References ASSERT, dtn::EndpointID::known_scheme(), dtn::EndpointID::scheme(), and dtn::EndpointID::uri().
friend class oasys::Singleton< SessionScheme > [friend] |
Definition at line 44 of file SessionScheme.h.