Packages:
System
System.Collections
System.Data
System.I18N
System.Util
System.Web.Services
System.Web.UI.ActiveControls
System.Web.UI.WebControls


Classes:
Response
   LTidyHttpResponseAdapter

Class LTidyHttpResponseAdapter

THttpResponseAdapter
   |
   --LTidyHttpResponseAdapter

THttpResponseAdapter class.

THttpResponseAdapter allows the base http response class to change behaviour without change the class hierachy.

Since: 3.0
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>

Constructor Summary
public
__construct Array
Constructor. Attach a response to be adapted.

Method Summary
void
createNewHtmlWriter ( string $type, ITextWriter $writer)
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
httpRedirect ( string $url)
This method is invoked when the response is to redirect to another page.

Constructor Details

__construct

public __construct Array

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$typetype of the HTML writer to be created.
ITextWriter$writerthe 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.

Output
Exception

getResponse

public THttpResponse getResponse ()

Output
THttpResponse the response object adapted.
Exception

httpRedirect

public void httpRedirect (string $url )

This method is invoked when the response is to redirect to another page.

Input
string$urlnew url to redirect to.
Output
Exception