Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

HttpServer Class Reference

List of all members.

Public Member Functions

 this (IProvider provider, InternetAddress bind, int threads, ILogger logger=null)
 this (IProvider provider, InternetAddress bind, int threads, int backlog, ILogger logger=null)
char[] getProtocol ()
char[] toString ()
ServerSocket createSocket (InternetAddress bind, int backlog)
ServerThread createThread (ServerSocket socket)
void service (ServerThread st, IConduit conduit)

Private Attributes

IProvider provider

Detailed Description

Extends the AbstractServer to glue all the Http support together. One should subclass this to provide a secure (https) server.

Definition at line 65 of file HttpServer.d.


Member Function Documentation

this IProvider  provider,
InternetAddress  bind,
int  threads,
ILogger  logger = null
[inline]
 

Construct this server with the requisite attribites. The IProvider represents a service handler, the binding addr is the local address we'll be listening on, and 'threads' represents the number of thread to initiate.

Definition at line 78 of file HttpServer.d.

References ILogger.

this IProvider  provider,
InternetAddress  bind,
int  threads,
int  backlog,
ILogger  logger = null
[inline]
 

Construct this server with the requisite attribites. The IProvider represents a service handler, the binding addr is the local address we'll be listening on, and 'threads' represents the number of thread to initiate. Backlog is the number of "simultaneous" connection requests that a socket layer will buffer on our behalf.

Definition at line 94 of file HttpServer.d.

References ILogger.

char [] getProtocol  )  [inline]
 

Return the protocol in use.

Definition at line 106 of file HttpServer.d.

Referenced by toString().

char [] toString  )  [inline]
 

Return a text string identifying this server

Definition at line 117 of file HttpServer.d.

References getProtocol(), and IProvider::toString().

ServerSocket createSocket InternetAddress  bind,
int  backlog
[inline]
 

Create a ServerSocket instance. Secure implementations would provide a SecureSocketServer, or something along those lines.

Definition at line 130 of file HttpServer.d.

References ServerSocket.

ServerThread createThread ServerSocket  socket  )  [inline]
 

Create a ServerThread instance. This can be overridden to create other thread-types, perhaps with additional thread- level data attached.

Definition at line 143 of file HttpServer.d.

References HttpThread, and ServerThread.

void service ServerThread  st,
IConduit  conduit
[inline]
 

Factory method for servicing a request. We just toss the request across our bridge, for the IProvider to handle.

Definition at line 155 of file HttpServer.d.

References IProviderBridge::cross(), HttpBridge, and thread.


Member Data Documentation

IProvider provider [private]
 

Definition at line 67 of file HttpServer.d.


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 20:11:39 2005 for Mango by doxygen 1.3.6