|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Summary description for IXPResponse.
Method Summary | |
void |
AddCookie(XPCookie cookie)
Adds the specified cookie to the response. |
void |
AddHeader(java.lang.String name,
java.lang.String _value)
Adds a response header with the given name and value. |
void |
Clear()
Clears any data that exists in the buffer as well as the status code and headers. |
void |
ClearUnderlyingObject()
This method clears all the instance variables to avoid memory leak. |
java.lang.String |
EncodeRedirectURL(java.lang.String url)
Deprecated. This method is deprecated because Redirect() method already encodes url |
void |
Flush()
This method writes all data to the client. |
java.lang.String |
GetCharacterEncoding()
Returns the name of the charset used for the MIME body sent in this response If no charset has been assigned, it is implicitly set to ISO-8859-1 (Latin-1). |
XPOutputStream |
GetOutputStream()
This method returns an output stream for writing binary data to the client. |
void |
Redirect(java.lang.String url)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
SetContentType(java.lang.String type)
Sets the content type of the response being sent to the client. |
void |
SetDateHeader(java.lang.String name,
long date)
Sets a response header with the given name and date-value. |
void |
SetStatus(int sc)
Sets the status code for this response. |
void |
SetStatus(int sc,
java.lang.String msg)
Sets the status code and message for this response. |
void |
Write(char c)
This method writes a character to the client. |
void |
Write(char[] s)
This method writes an array of characters to the client. |
void |
Write(java.lang.Object o)
This method writes an object to the client. |
void |
Write(java.lang.String s)
This method writes a string to the client. |
void |
WriteLine(char c)
This method writes a character followed by an end of line to the client. |
void |
WriteLine(char[] s)
This method writes an array of characters followed by an end of line to the client. |
void |
WriteLine(java.lang.Object o)
This method writes an object followed by an end of line to the client. |
void |
WriteLine(java.lang.String s)
This method writes a string followed by an end of line to the client. |
Method Detail |
public void Flush()
public XPOutputStream GetOutputStream()
public java.lang.String GetCharacterEncoding()
public void Clear()
public void SetContentType(java.lang.String type)
type
- - content type to be sent.public void SetDateHeader(java.lang.String name, long date)
name
- - a String containing name of the Date headerdate
- - a long containing date in milliseconds since EPOCH. Use XPDateTime.GetTimeInMilliseconds() to produce a commensurate value.public void AddCookie(XPCookie cookie)
cookie
- the XPCookie object to add to the response.public java.lang.String EncodeRedirectURL(java.lang.String url)
url
- url string to be encoded
public void AddHeader(java.lang.String name, java.lang.String _value)
name
- - name of the header to be set_value
- - value of the header to be setpublic void Redirect(java.lang.String url)
url
- - the redirect location urlpublic void SetStatus(int sc)
sc
- - the status code.public void SetStatus(int sc, java.lang.String msg)
sc
- - the status codemsg
- - the status msg.public void Write(char c)
c
- - the character to be written.public void Write(java.lang.Object o)
o
- - the object to be written.public void Write(java.lang.String s)
s
- - the String to be written.public void Write(char[] s)
s
- - the arry of characters to be written.public void WriteLine(char c)
c
- - the character to be written.public void WriteLine(java.lang.Object o)
o
- - the object to be written.public void WriteLine(java.lang.String s)
s
- - the String to be written.public void WriteLine(char[] s)
s
- - the arry of characters to be written.public void ClearUnderlyingObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |