|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWebData
This object wraps HTMLPages and binary data for output to the browser. There will be methods for setting HTTP Headers for the browser. This interface is intended for use in IDisplayPages.
Method Summary | |
---|---|
void |
AddCookie(XPCookie c)
Call this method to add a cookie to the response. |
void |
FlushData()
This optional method flushes all current data in the HTMLPage to the browser. |
boolean |
RequireNonEmptyBody(boolean bRequireNonEmptyBody)
This method determines if WebData object will throw an exception in case of sending an empty body of not. |
void |
SendRedirect(java.lang.String _strLocation)
Sends a true 302 redirect immediatly. |
void |
SetContentLanguage(java.lang.String _sLocale)
JF- Sets the value of the content language. |
void |
SetData(byte[] arrBodyBinary)
This method sets array of bytes as the data to be sent to the browser. |
void |
SetData(HTMLElement element)
This method sets the HTMLElement as the data to be sent to the browser. |
void |
SetData(java.lang.String strData)
This method sets string as the data to be sent to the browser. |
void |
SetDateHeader(java.lang.String strHeaderName,
XPDateTime xpDate)
Sets a response date header with the given name and date-value. |
void |
SetHeader(java.lang.String strHeaderName,
java.lang.String strHeaderValue)
This method sets a specified header on the response. |
void |
SetIsHTMLText(boolean _bIsHTMLText)
This method specifies whether the text data for this WebData object is HTML or not. |
void |
SetStatus(int iStatus)
This method sets a status of the response., |
Method Detail |
---|
void AddCookie(XPCookie c)
XPCookie
- Pass an XPCookievoid FlushData()
void SendRedirect(java.lang.String _strLocation)
_strLocation
- Where to govoid SetData(HTMLElement element)
HTMLElement
- to output to the browservoid SetData(byte[] arrBodyBinary)
byte[]
- binary data to output to the browservoid SetData(java.lang.String strData)
String
- string to output to the browservoid SetIsHTMLText(boolean _bIsHTMLText)
boolean
- whether or not the text data is HTMLvoid SetContentLanguage(java.lang.String _sLocale)
_sLocale
- (e.g.: en-US)void SetHeader(java.lang.String strHeaderName, java.lang.String strHeaderValue)
String
- that specifies the name of the HTTP header to setString
- that specifies the value of the HTTP headervoid SetDateHeader(java.lang.String strHeaderName, XPDateTime xpDate)
String
- strHeaderName - a String containing the name of the Date headerXPDateTime
- xpDate - an XPDateTime containing the date.void SetStatus(int iStatus)
iStatus
- an integer corresponding to the HTTP status codeboolean RequireNonEmptyBody(boolean bRequireNonEmptyBody)
bRequireNonEmptyBody
- - TRUE if you want WebData object to throw an exception
in case of sending an emptry body, FALSE otherwise.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |