ClintHeyer.Httpd
Class ServerManager

ServerManager

Field Summary
System.Collections.Hashtable mimeMappings
bool RevealExceptions
ClintHeyer.Httpd.TicketIssuer ticketIssuer
string url

Fields inherited from class ClintHeyer.Httpd.Context
configuration, contexts, padlock, parent, requiresSession, sessionManager, throttleRate

Constructor Summary
ServerManager()
         Constructor

Property Summary
string Address
         Gets the address of this server
int Connections
int Port
         Gets the port the server is bound to
ClintHeyer.Httpd.TicketIssuer TicketIssuer
         Gets the ticket issuer for entire manager
string Url
         Gets the url to refer to the root of the server

Properties inherited from class ClintHeyer.Httpd.Context
Lock, Parent, RequiresSession, ServerManager, SessionManager, ThrottleRate

Method Summary
void Close()
void ConnectionClosed(ClintHeyer.Httpd.Connection c)
void Finalize()
void GCConnections()
string GetMimeType(string extension)
         Locates a mime type, given the extension
void HandleRequest(ClintHeyer.Httpd.Connection connection, byte[] data)
         Called from a connection when it has recieved a full request
void LoadApacheMimeTypes(string filename)
         Reads Apache-standard mime type files.
void LoadConfig()
void LoadDefaultMimeTypes()
void LoadMimeTypes()
void SaveConfig()

Methods inherited from class ClintHeyer.Httpd.Context
AddContext, AddResponseHandler, CanHandleRequest, GetContexts, GetResponseHandler, Handle, IConfigurable.Get, IConfigurable.GetBool, IConfigurable.GetFloat, IConfigurable.GetInt, IConfigurable.GetString, OnReplyCompleted, OnReplyCompletedEvent, OnReplyStarted, OnReplyStartedEvent, OnThrottleChange, OnThrottleChangeEvent, RemoveContext

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

Events inherited from class ClintHeyer.Httpd.Context
ReplyCompleted, ReplyStarted, ThrottleChange


Field Detail

mimeMappings

private System.Collections.Hashtable mimeMappings


RevealExceptions

public bool RevealExceptions


ticketIssuer

private ClintHeyer.Httpd.TicketIssuer ticketIssuer


url

protected string url

Constructor Detail

ServerManager

public ServerManager()

Constructor

Property Detail

Address

public string Address

Gets the address of this server


Connections

public int Connections


Port

public int Port

Gets the port the server is bound to


TicketIssuer

public ClintHeyer.Httpd.TicketIssuer TicketIssuer

Gets the ticket issuer for entire manager


Url

public string Url

Gets the url to refer to the root of the server

Method Detail

Close

public void Close()


ConnectionClosed

public void ConnectionClosed(ClintHeyer.Httpd.Connection c)


Finalize

protected void Finalize()


GCConnections

public void GCConnections()


GetMimeType

public string GetMimeType(string extension)

Locates a mime type, given the extension

Parameters:
extension -
Returns:

HandleRequest

public void HandleRequest(ClintHeyer.Httpd.Connection connection,
                          byte[] data)

Called from a connection when it has recieved a full request

Parameters:
data - Data
connection - Connection

LoadApacheMimeTypes

private void LoadApacheMimeTypes(string filename)

Reads Apache-standard mime type files.

Parameters:
filename - Absolute filename

LoadConfig

public void LoadConfig()


LoadDefaultMimeTypes

private void LoadDefaultMimeTypes()


LoadMimeTypes

private void LoadMimeTypes()


SaveConfig

public void SaveConfig()