Naanou.ResourceExchange
Class DBLister

Field Summary
string baseDir
string baseDirHash
string baseUrl
string blockBaseUrl
string contactHtml
ClintHeyer.Httpd.Context context
string name
bool onlyContext
string parentUrl

Constructor Summary
DBLister(string baseUrl, string baseDir, string baseDirHash, string blockBaseUrl, ClintHeyer.Httpd.Context context, bool onlyContext)

Method Summary
void AddAudio(Naanou.ResourceExchange.Entry e, System.Text.StringBuilder sb, string path, string name, string realPath, long size)
void AddDir(System.Text.StringBuilder sb, string path, string name)
void AddFile(System.Text.StringBuilder sb, string path, string name, string realPath, long size)
void AddFooter(System.Text.StringBuilder sb, string sharer)
void AddMount(System.Text.StringBuilder sb, string path, string name, string descr)
System.Text.StringBuilder GetHeader(string path, string sharer)
void Handle(ClintHeyer.Httpd.HttpRequest request, ClintHeyer.Httpd.HttpReply reply)
         Handles request
void SendContextList(ClintHeyer.Httpd.HttpReply reply)
         Generates a HTML-formatted listing of all contexts
void SendListing(string path, ClintHeyer.Httpd.HttpReply reply)
         Generates a HTML-formatted directory listing for a path
void SendListing(System.IO.DirectoryInfo di, ClintHeyer.Httpd.HttpReply reply)
string WindowsToNetPath(string winPath)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

baseDir

private string baseDir


baseDirHash

private string baseDirHash


baseUrl

private string baseUrl


blockBaseUrl

private string blockBaseUrl


contactHtml

private string contactHtml


context

private ClintHeyer.Httpd.Context context


name

private string name


onlyContext

private bool onlyContext


parentUrl

private string parentUrl

Constructor Detail

DBLister

public DBLister(string baseUrl,
                string baseDir,
                string baseDirHash,
                string blockBaseUrl,
                ClintHeyer.Httpd.Context context,
                bool onlyContext)

Method Detail

AddAudio

private void AddAudio(Naanou.ResourceExchange.Entry e,
                      System.Text.StringBuilder sb,
                      string path,
                      string name,
                      string realPath,
                      long size)


AddDir

private void AddDir(System.Text.StringBuilder sb,
                    string path,
                    string name)


AddFile

private void AddFile(System.Text.StringBuilder sb,
                     string path,
                     string name,
                     string realPath,
                     long size)


AddFooter

private void AddFooter(System.Text.StringBuilder sb,
                       string sharer)


AddMount

private void AddMount(System.Text.StringBuilder sb,
                      string path,
                      string name,
                      string descr)


GetHeader

private System.Text.StringBuilder GetHeader(string path,
                                            string sharer)


Handle

public void Handle(ClintHeyer.Httpd.HttpRequest request,
                   ClintHeyer.Httpd.HttpReply reply)

Handles request

Parameters:
request -
reply -

SendContextList

private void SendContextList(ClintHeyer.Httpd.HttpReply reply)

Generates a HTML-formatted listing of all contexts

Parameters:
reply -

SendListing

private void SendListing(string path,
                         ClintHeyer.Httpd.HttpReply reply)

Generates a HTML-formatted directory listing for a path

Parameters:
path -

SendListing

private void SendListing(System.IO.DirectoryInfo di,
                         ClintHeyer.Httpd.HttpReply reply)


WindowsToNetPath

private string WindowsToNetPath(string winPath)