|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jasp.buildin.Response
You can use the Response object to send output to the client.
Constructor Summary | |
Response()
|
Method Summary | |
static void |
_page_end()
End this page |
static void |
_PrintErrorMessage(java.lang.Exception ex)
Output the exception message to the browser. |
static void |
AddHeader(java.lang.String name,
java.lang.String val)
Sets the HTML header name to value. |
static void |
AppendToLog(java.lang.String info)
Adds a string to the end of the Web server log entry for this request. |
static void |
BinaryWrite(byte[] data)
Writes the specified information to the current HTTP output without any character conversion |
static void |
BinaryWrite(char[] data)
Writes the specified information to the current HTTP output without any character conversion |
static void |
BinaryWrite(variant data)
Writes the specified information to the current HTTP output without any character conversion |
static void |
BinaryWrite(vbarray data)
Writes the specified information to the current HTTP output without any character conversion |
static void |
Charset(java.lang.String s)
A string that specifies a character set for the page. |
static void |
Clear()
Erases any buffered HTML output. |
static IWriteCookie |
Cookies(java.lang.String key)
|
static void |
End()
Causes the Web server to stop processing the script and return the current result. |
static void |
Flush()
Sends buffered output immediately. |
static boolean |
getBuffer()
Gets if the page output is buffered. |
static java.lang.String |
getCacheControl()
Determines whether proxy servers are able to cache the output generated by ASP. |
static java.lang.String |
getCharset()
Gets the charset string. |
static java.lang.String |
getContentType()
Returns the content type. |
static int |
getExpires()
Returns the length of time before a page cached on a browser expires. |
static int |
getExpiresAbsolute()
Returns the date and time on which a page cached on a browser expires |
static jasp.buildin.IWriter |
getOut()
Gets the ASPResponse output stream. |
static java.lang.String |
getStatus()
Gets the value of the status line returned by the server. |
static boolean |
IsClientConnected()
Indicates whether the client has disconnected from the server. |
static void |
Pics(java.lang.String p)
Adds a value to the pics-label response header |
static void |
Redirect(java.lang.String url)
Causes the browser to attempt to connect to a different URL. |
static jasp.buildin.ASPResponse |
response()
Returns a Resposne instance. |
static void |
setBuffer(boolean b)
Sets whether page output is buffered. |
static void |
setCacheControl(java.lang.String b)
Sets CacheControl value |
static void |
setCharset(java.lang.String s)
Appends the name of the character set to the content-type header. |
static void |
setContentType(java.lang.String c)
Sets the HTTP content type for the response. |
static void |
setCookies(java.lang.String key,
double value)
Sets the value of a cookie. |
static void |
setCookies(java.lang.String key,
int value)
Sets the value of a cookie. |
static void |
setCookies(java.lang.String key,
java.lang.String value)
Sets the value of a cookie. |
static void |
setCookies(java.lang.String key,
variant value)
Sets the value of a cookie. |
static void |
setCookies(java.lang.String key,
vbdate value)
Sets the value of a cookie. |
static void |
setExpires(int val)
Sets the length of time before a page cached on a browser expires |
static void |
setExpiresAbsolute(int expire)
Sets the date and time on which a page cached on a browser expires |
static void |
setStatus(java.lang.String s)
Sets the value of the status line returned by the server. |
static void |
Write(boolean var)
Writes a specified data to the current HTTP output. |
static void |
Write(char var)
Writes a specified data to the current HTTP output. |
static void |
Write(java.util.Date var)
Writes a specified data to the current HTTP output. |
static void |
Write(double var)
Writes a specified data to the current HTTP output. |
static void |
Write(int var)
Writes a specified data to the current HTTP output. |
static void |
Write(long var)
Writes a specified data to the current HTTP output. |
static void |
Write(java.lang.Object var)
Writes a specified data to the current HTTP output. |
static void |
Write(java.lang.String var)
Writes a specified data to the current HTTP output. |
static void |
Write(variant var)
Writes a specified data to the current HTTP output. |
static void |
Write(vbcurrency var)
Writes a specified data to the current HTTP output. |
static void |
Write(vbdate var)
Writes a specified data to the current HTTP output. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Response()
Method Detail |
public static jasp.buildin.ASPResponse response()
public static void setBuffer(boolean b)
b
- a boolean value.public static boolean getBuffer()
public static java.lang.String getCacheControl()
public static void setCacheControl(java.lang.String b)
b
- the new cachecontrol value.public static java.lang.String getCharset()
public static void setCharset(java.lang.String s)
the
- charset string.public static void Charset(java.lang.String s)
s
- a charset string.public static void setContentType(java.lang.String c)
c
- the content type.public static java.lang.String getContentType()
public static jasp.buildin.IWriter getOut()
public static void setExpiresAbsolute(int expire)
expire
- an integer value of the date and time.public static int getExpiresAbsolute()
public static boolean IsClientConnected()
public static void Pics(java.lang.String p)
p
- a String valuepublic static void setStatus(java.lang.String s)
the
- status value.public static java.lang.String getStatus()
public static int getExpires()
public static void setExpires(int val)
val
- the length of time.public static void End() throws java.lang.Exception
throw
- an exception which number is 9998 to stop the current
thread.public static void AddHeader(java.lang.String name, java.lang.String val)
public static void AppendToLog(java.lang.String info) throws java.lang.Exception
info
- the logs infomation.public static void Clear() throws java.lang.Exception
public static void BinaryWrite(vbarray data)
data
- the specified infomation.public static void BinaryWrite(variant data)
data
- the specified infomation.public static void BinaryWrite(char[] data)
data
- the specified infomation.public static void BinaryWrite(byte[] data)
data
- the specified infomation.public static void Flush()
public static void Redirect(java.lang.String url) throws java.lang.Exception
url
- The Uniform Resource Locator that the browser is redirected to.public static void Write(variant var)
var
- The data to write.public static void Write(java.lang.Object var)
var
- The data to write.public static void Write(java.lang.String var)
var
- The data to write.public static void Write(vbdate var)
var
- The data to write.public static void Write(vbcurrency var)
var
- The data to write.public static void Write(java.util.Date var)
var
- The data to write.public static void Write(int var)
var
- The data to write.public static void Write(long var)
var
- The data to write.public static void Write(char var)
var
- The data to write.public static void Write(boolean var)
var
- The data to write.public static void Write(double var)
var
- The data to write.public static IWriteCookie Cookies(java.lang.String key)
public static void setCookies(java.lang.String key, double value)
key
- the name of the cookie.value
- the value of the cookie.public static void setCookies(java.lang.String key, int value)
key
- the name of the cookie.value
- the value of the cookie.public static void setCookies(java.lang.String key, variant value)
key
- the name of the cookie.value
- the value of the cookie.public static void setCookies(java.lang.String key, vbdate value)
key
- the name of the cookie.value
- the value of the cookie.public static void setCookies(java.lang.String key, java.lang.String value)
key
- the name of the cookie.value
- the value of the cookie.public static void _PrintErrorMessage(java.lang.Exception ex) throws java.lang.Exception
ex
- an exception .public static void _page_end()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |