Naanou.ResourceExchange
Class NaanouContext
Constructor Summary |
NaanouContext(string mount, string docRoot, ClintHeyer.Httpd.Context parent, ClintHeyer.Httpd.Lock padlock)
Constructor. Defines a mount point, document root, parent context and a lock
|
Method Summary |
void |
DBListing(ClintHeyer.Httpd.HttpRequest request, string extraPath) |
void |
Handle(ClintHeyer.Httpd.HttpRequest request, string extraPath)
Handle a request
|
bool |
IsValidRequest(ClintHeyer.Httpd.HttpRequest request)
Checks if a request is valid, returns false if its not
|
Methods inherited from class ClintHeyer.Httpd.Context |
AddContext, AddResponseHandler, GetContexts, GetMimeType, GetResponseHandler, IConfigurable.Get, IConfigurable.GetBool, IConfigurable.GetFloat, IConfigurable.GetInt, IConfigurable.GetString, LoadConfig, OnReplyCompleted, OnReplyCompletedEvent, OnReplyStarted, OnReplyStartedEvent, OnThrottleChangeEvent, RemoveContext, SaveConfig |
description
protected string description
-
lister
private Naanou.ResourceExchange.DBLister lister
-
NaanouContext
public NaanouContext(string mount,
string docRoot,
ClintHeyer.Httpd.Context parent,
ClintHeyer.Httpd.Lock padlock)
-
Constructor. Defines a mount point, document root, parent context and a lock
Parameters:
-
mount
- Mount point
-
docRoot
- Document root
-
parent
- Parent context
-
padlock
- Lock (or null)
Description
public string Description
-
Lister
public Naanou.ResourceExchange.DBLister Lister
-
DBListing
private void DBListing(ClintHeyer.Httpd.HttpRequest request,
string extraPath)
-
Handle
public void Handle(ClintHeyer.Httpd.HttpRequest request,
string extraPath)
-
Handle a request
Parameters:
-
request
- Request
-
extraPath
- Extra path
Throws:
-
ClintHeyer.Httpd.ResourceLockedException
- Locked
IsValidRequest
protected bool IsValidRequest(ClintHeyer.Httpd.HttpRequest request)
-
Checks if a request is valid, returns false if its not
Parameters:
-
request
- Request
Returns:
- Returns true if request is valid and should be processed