Package proxy :: Module responseContext :: Class ResponseContext
[hide private]
[frames] | no frames]

Class ResponseContext

source code

This class provides a response context for use by the proxy broker and redirect components. This context provides a stackable set of response, header, and connection sets which can be used to easily maintain the proxy's response state in the event of redirects.

Instance Methods [hide private]
 
__init__(self) source code
 
getHeaders(self)
Get the current response headers.
source code
 
setHeaders(self, responseHeaders)
Set the current response headers.
source code
 
getBodyFd(self)
Get the current response body file descriptor.
source code
 
setBodyFd(self, responseBodyFd)
Set the current response body file descriptor.
source code
 
getConnection(self)
Get the current connection object.
source code
 
setConnection(self, connection)
Set the current connection object.
source code
 
add(self)
Add a new context to the stack.
source code
 
remove(self)
Remove the current context.
source code
 
close(self)
Close the current context.
source code
 
clear(self)
Close and remove all contexts.
source code
 
__str__(self)
String representation.
source code
 
_isEmpty(self) source code
 
_getCurrentContext(self) source code
Static Methods [hide private]
 
_closeContext(context) source code
 
_createContext(responseHeaders=None, responseBodyFd=None, connection=None) source code
Method Details [hide private]

add(self)

source code 

Add a new context to the stack. The new context becomes the current one.