Classic ASP Framework
org.classicasp.server.ResponseEx

[STATIC] The ResponseEx object is used to send output to the user from the server.

Summary

Adds a new HTTP header and a value to the HTTP response.
Adds a string to the end of the server log entry.
Writes data directly to the output without any character conversion.
Clears any buffered HTML output.
Sends buffered output immediately.
Redirects the user to a different URL.
Executes a resource using corresponding http method, runs Authenticate, Authorize, and RateLimit.
Serializes data and writes it to the client in requested format, supports : XML, JSON, BENCODE, CSV, and TEXT.
Stops processing a script, and returns the current result.
Writes a specified value as a string to the output.
Writes a specified value as BENCODE to the output.
Writes a specified value as JSON to the output.
Writes a specified value as XML to the output.

AddHeader

Public Sub AddHeader(
ByRef vInputName,
ByRef vInputValue)
Adds a new HTTP header and a value to the HTTP response.

Returns

N/A

AppendToLog

Public Sub AppendToLog(ByRef vInputValue)
Adds a string to the end of the server log entry.

Returns

N/A

BinaryWrite

Public Sub BinaryWrite(ByRef vInputValue)
Writes data directly to the output without any character conversion.

Returns

N/A

Clear

Public Sub Clear()
Clears any buffered HTML output.

Returns

N/A

Flush

Public Sub Flush()
Sends buffered output immediately.

Returns

N/A

Redirect

Public Sub Redirect(ByRef vInputValue)
Redirects the user to a different URL.

Returns

N/A

Resource

Public Sub Resource(
ByRef vInputResource,
ByRef sAuthorizationRoles)
Executes a resource using corresponding http method, runs Authenticate, Authorize, and RateLimit.

Returns

N/A

Return

Public Sub Return(ByRef vInputData)
Serializes data and writes it to the client in requested format, supports : XML, JSON, BENCODE, CSV, and TEXT.

Returns

N/A

Terminate

Public Sub Terminate()
Stops processing a script, and returns the current result.

Returns

N/A

Write

Public Sub Write(ByRef vInputValue)
Writes a specified value as a string to the output.

Returns

N/A

WriteBENCODE

Public Sub WriteBENCODE(ByRef vInputValue)
Writes a specified value as BENCODE to the output.

Returns

N/A

WriteJSON

Public Sub WriteJSON(ByRef vInputValue)
Writes a specified value as JSON to the output.

Returns

N/A

WriteXML

Public Sub WriteXML(ByRef vInputValue)
Writes a specified value as XML to the output.

Returns

N/A

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .