sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::WSServices Class Reference

#include <WSServices.h>

Public Member Functions

 WSServices (const SWSRequest &defaultService)
 
 ~WSServices ()=default
 
 WSServices (const WSServices &other)
 
void set (const sptk::String &location, const SWSRequest &service)
 
WSRequestget (const sptk::String &location) const
 

Detailed Description

Collection of references to available services

Constructor & Destructor Documentation

◆ WSServices() [1/2]

sptk::WSServices::WSServices ( const SWSRequest &  defaultService)
explicit

Constructor

Registers default service for empty location

Parameters
defaultServiceDefault service

◆ ~WSServices()

sptk::WSServices::~WSServices ( )
default

Destructor

◆ WSServices() [2/2]

sptk::WSServices::WSServices ( const WSServices other)

Copy constructor

Registers default service for empty location

Parameters
otherOther services object

Member Function Documentation

◆ get()

WSRequest & sptk::WSServices::get ( const sptk::String location) const

Get service for given location that is processing that location requests

Parameters
locationPath to the resource, not including resource name
Returns
matching service, or default service if there is no match

◆ set()

void sptk::WSServices::set ( const sptk::String location,
const SWSRequest &  service 
)

Set a service for given location

Parameters
locationPath to the resource, not including resource name
serviceService that is processing that location requests

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

Fri Oct 14 2022 09:58:48: SPTK 5.4.1