|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--ResponseAdapter
This class adapts the native ASP Response object to Troika.ASP Response object.
Defined in ResponseAdapter.js
| Constructor Summary | |
ResponseAdapter()
Constructs a new instance of ResponseAdapter class. |
|
| Method Summary | |
void
|
addHeader(<String> name, <String> value)
Adds a new HTTP header and a value to the HTTP response. |
void
|
binaryWrite(<String> data)
Writes data directly to the output without any character conversion. |
void
|
flush()
Sends buffered HTML output immediately. |
void
|
redirect(<String> path)
Redirects the user to a different URL. |
void
|
setCharset(<String> value)
Appends the name of a character-set to the content-type header in the Response object. |
void
|
setContentType(<String> value)
Sets the HTTP content type for the response object. |
void
|
setCookie(<String> name, <String> value, <String> expires, <String> domain, <String> path)
Sets a cookie value. |
void
|
setStatus(<String> value)
Specifies the value of the status line returned by the server. |
void
|
write(<String> str)
Writes a specified string to the output. |
| Constructor Detail |
ResponseAdapter()
| Method Detail |
void addHeader(<String> name, <String> value)
name - The name of the new header variable.
value - The initial value of the new header variable.
void binaryWrite(<String> data)
data - The binary information to be sent.
void flush()
void redirect(<String> path)
path - The new URL.
void setCharset(<String> value)
value - The string that specifies a character set for the page.
void setContentType(<String> value)
value - The string describing the content type.
void setCookie(<String> name, <String> value, <String> expires, <String> domain, <String> path)
name - The name of the cookie.
value - The cookie value.
expires - The date when the cookie expires. If no date is specified, the cookie will expire when the session ends.
domain - The cookie is sent only to requests to this domain.
path - If set, the cookie is sent only to requests to this path. If not set, the application path is used.
void setStatus(<String> value)
value - The three-digit number and a description of that code, like 404 Not Found.
void write(<String> str)
str - The string to write.
|
TROIKA.ASP - the MVC framework | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |