Poco::OSP::Web::WebServerDispatcher

struct VirtualPath

Library: OSPWeb
Package: Web
Header: Poco/OSP/Web/WebServerDispatcher.h

Description

A VirtualPath struct is used to specify a path mapping for a bundle.

Constructors

VirtualPath inline

VirtualPath();

VirtualPath inline

VirtualPath(
    const std::string & aPath,
    const std::string & aResource,
    const PathSecurity & aSecurity,
    Bundle::ConstPtr pOwner
);

VirtualPath inline

VirtualPath(
    const std::string & aPath,
    RequestHandlerFactoryPtr aFactory,
    const PathSecurity & aSecurity,
    Bundle::ConstPtr pOwner
);

Variables

description

std::string description;

user-readable description of resource or service

hidden

bool hidden;

path is not included in list returned by listVirtualPaths()

indexPage

std::string indexPage;

index page (only used if resource path is set; defaults to "index.html")

pFactory

RequestHandlerFactoryPtr pFactory;

request handler factory (null if resource path is specified)

pOwnerBundle

Bundle::Ptr pOwnerBundle;

bundle owning path

path

std::string path;

virtual server path (e.g., /images)

resource

std::string resource;

resource path (if mapped to resource)

security

PathSecurity security;

security attributes