Library: OSP/Web
Package: Web
Header: Poco/OSP/Web/WebServerDispatcher.h
A VirtualPath struct is used to specify a path mapping for a bundle.
VirtualPath();
VirtualPath(
const std::string & aPath,
const std::string & aResource,
const PathSecurity & aSecurity,
Bundle::ConstPtr pOwner
);
VirtualPath(
const std::string & aPath,
RequestHandlerFactoryPtr aFactory,
const PathSecurity & aSecurity,
Bundle::ConstPtr pOwner
);
std::string description;
user-readable description of resource or service
bool hidden;
path is not included in list returned by listVirtualPaths()
std::string indexPage;
index page (only used if resource path is set; defaults to "index.html")
RequestHandlerFactoryPtr pFactory;
request handler factory (null if resource path is specified)
Bundle::Ptr pOwnerBundle;
bundle owning path
std::string path;
virtual server path (e.g., /images)
std::string resource;
resource path (if mapped to resource)
PathSecurity security;
security attributes