Class THttpResponseAdapter
Direct Known Sub-classes:
THttpResponseAdapter class.
THttpResponseAdapter allows the base http response class to change behavior without change the class hierarchy.
Constructor Summary |
public |
Constructor. Attach a response to be adapted.
|
Method Summary |
void
|
This method is invoked when a new HtmlWriter needs to be created.
|
void
|
This method is invoked when the response flushes the content and headers.
|
THttpResponse
|
|
void
|
This method is invoked when the response is to redirect to another page.
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Constructor. Attach a response to be adapted.
|
Method Details |
createNewHtmlWriter
public void createNewHtmlWriter |
(string $type , ITextWriter $writer ) |
This method is invoked when a new HtmlWriter needs to be created.
Default implementation calls the attached response createNewHtmlWriter method.
Input |
string | $type | type of the HTML writer to be created. |
ITextWriter | $writer | the writer responsible for holding the content. |
Output |
Exception |
|
flushContent
public void flushContent |
() |
This method is invoked when the response flushes the content and headers.
Default implementation calls the attached response flushContent method.
|
getResponse
|
httpRedirect
public void httpRedirect |
(string $url ) |
This method is invoked when the response is to redirect to another page.
Input |
string | $url | new url to redirect to. |
Output |
Exception |
|
|