|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXPResponse
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 |
---|
void Flush()
XPOutputStream GetOutputStream()
java.lang.String GetCharacterEncoding()
void Clear()
void SetContentType(java.lang.String type)
type
- - content type to be sent.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.void AddCookie(XPCookie cookie)
cookie
- the XPCookie object to add to the response.java.lang.String EncodeRedirectURL(java.lang.String url)
url
- url string to be encoded
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 setvoid Redirect(java.lang.String url)
url
- - the redirect location urlvoid SetStatus(int sc)
sc
- - the status code.void SetStatus(int sc, java.lang.String msg)
sc
- - the status codemsg
- - the status msg.void Write(char c)
c
- - the character to be written.void Write(java.lang.Object o)
o
- - the object to be written.void Write(java.lang.String s)
s
- - the String to be written.void Write(char[] s)
s
- - the arry of characters to be written.void WriteLine(char c)
c
- - the character to be written.void WriteLine(java.lang.Object o)
o
- - the object to be written.void WriteLine(java.lang.String s)
s
- - the String to be written.void WriteLine(char[] s)
s
- - the arry of characters to be written.void ClearUnderlyingObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |