HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_UrlFileHandler Class Reference

#include <NET_UrlHandler.h>

+ Inheritance diagram for NET_UrlFileHandler:

Public Member Functions

 NET_UrlFileHandler (const UT_StringRef &url_prefix, const char *directory, bool allows_partial=true)
 
void handle (NET_HTTPRequest &req, NET_WebResponse &resp) override
 
- Public Member Functions inherited from NET_BaseUrlHandler
 NET_BaseUrlHandler (const UT_StringRef &path, bool allows_partial=false)
 
 NET_BaseUrlHandler (const UT_StringRef &path, const UT_StringArray &methods, bool allows_partial=false)
 
virtual ~NET_BaseUrlHandler ()=default
 
const UT_StringHolderpath () const
 
void addMethod (const UT_StringRef &method)
 
void removeMethod (const UT_StringRef &method)
 
bool canHandleMethod (const UT_StringRef &method) const
 

Static Public Member Functions

static bool buildValidFilePath (const UT_StringHolder &req_path, const UT_StringHolder &prefix_path, const UT_StringHolder &directory, NET_WebResponse &resp, UT_StringHolder &valid_path)
 

Additional Inherited Members

- Public Attributes inherited from NET_BaseUrlHandler
bool myAllowsPartial
 

Detailed Description

Definition at line 130 of file NET_UrlHandler.h.

Constructor & Destructor Documentation

NET_UrlFileHandler::NET_UrlFileHandler ( const UT_StringRef url_prefix,
const char *  directory,
bool  allows_partial = true 
)

Member Function Documentation

static bool NET_UrlFileHandler::buildValidFilePath ( const UT_StringHolder req_path,
const UT_StringHolder prefix_path,
const UT_StringHolder directory,
NET_WebResponse resp,
UT_StringHolder valid_path 
)
static

Construct a valid file path using the request information. Returns true it was able to construct a valid path.

void NET_UrlFileHandler::handle ( NET_HTTPRequest req,
NET_WebResponse resp 
)
overridevirtual

Implements NET_BaseUrlHandler.


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