dtn::SessionScheme Class Reference

This class implements a scheme to match dtn-session: URIs. More...

#include <SessionScheme.h>

Inheritance diagram for dtn::SessionScheme:

dtn::Scheme

List of all members.

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 >


Detailed Description

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.


Constructor & Destructor Documentation

dtn::SessionScheme::SessionScheme (  )  [inline, private]

Definition at line 45 of file SessionScheme.h.


Member Function Documentation

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().

bool dtn::SessionScheme::validate ( const URI uri,
bool  is_pattern = false 
) [virtual]

Virtual from Scheme.

Implements dtn::Scheme.

Definition at line 35 of file SessionScheme.cc.


Friends And Related Function Documentation

friend class oasys::Singleton< SessionScheme > [friend]

Definition at line 44 of file SessionScheme.h.


The documentation for this class was generated from the following files:

Generated on Fri Jan 30 09:43:14 2009 for DTN Reference Implementation by  doxygen 1.5.8