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

HttpBridge Class Reference

Inheritance diagram for HttpBridge:

IProviderBridge List of all members.

Public Member Functions

 this (IServer server, IProvider provider, HttpThread thread)
IServer getServer ()
IProvider getProvider ()
void cross (IConduit conduit)

Private Attributes

IServer server
IProvider provider
HttpThread thread
HttpRequest request
HttpResponse response

Detailed Description

Bridges between an IProvider and an IServer, and contains a set of data specific to each thread. There is only one instance of server and provider, but multiple live instances of HttpBridge (one per server-thread).

Any additional thread-specific data should probably be contained within this class, since it is reachable from almost everywhere.

Definition at line 64 of file HttpBridge.d.


Member Function Documentation

this IServer  server,
IProvider  provider,
HttpThread  thread
[inline]
 

Construct a bridge with the requisite attributes. We create the per-thread request/response pair here, and maintain them for the lifetime of the server.

Definition at line 81 of file HttpBridge.d.

References IProvider::createRequest(), IProvider::createResponse(), provider, response, ServerThread::server, server, and thread.

IServer getServer  )  [inline]
 

Return the server from one side of this bridge

Reimplemented from IProviderBridge.

Definition at line 97 of file HttpBridge.d.

References server.

IProvider getProvider  )  [inline]
 

Return the provider from the other side of the bridge

Reimplemented from IProviderBridge.

Definition at line 108 of file HttpBridge.d.

References provider.

void cross IConduit  conduit  )  [inline]
 

Bridge the divide between IServer and IProvider instances. Note that there is one instance of this class per thread.

Note also that this is probably the right place to implement keep-alive support if that were ever to happen, although the implementation should itself be in a subclass.

Reimplemented from IProviderBridge.

Definition at line 124 of file HttpBridge.d.

References IResource::close(), provider, HttpRequest::readHeaders(), HttpResponse::reset(), HttpRequest::reset(), response, IProvider::service(), and HttpMessage::setConduit().


Member Data Documentation

IServer server [private]
 

Definition at line 66 of file HttpBridge.d.

Referenced by getServer(), and this().

IProvider provider [private]
 

Definition at line 67 of file HttpBridge.d.

Referenced by cross(), getProvider(), and this().

HttpThread thread [private]
 

Definition at line 69 of file HttpBridge.d.

Referenced by this().

HttpRequest request [private]
 

Definition at line 70 of file HttpBridge.d.

HttpResponse response [private]
 

Definition at line 71 of file HttpBridge.d.

Referenced by cross(), and this().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:03 2004 for Mango by doxygen 1.3.6