|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.creamtec.ajaxswing.core.HttpResponseData
public class HttpResponseData
Contains response parameters, that are sent back to the servlet from the client agent.
Field Summary | |
---|---|
static int |
STATUS_ERROR
|
static int |
STATUS_EXIT
|
static int |
STATUS_INTERNAL_REDIRECT
|
static int |
STATUS_OK
|
Constructor Summary | |
---|---|
HttpResponseData()
|
|
HttpResponseData(int status)
|
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
Returns the error message |
java.lang.String |
getHtmlPage()
In AJAX mode (default) this method returns JSON array of page updates For full page refreshes it returns the HTML page, that needs to be sent to the browser |
byte[] |
getHtmlPageBytes()
|
java.util.HashMap |
getParams()
Stores AjaxSwing and custom parameters of the response. |
java.lang.String |
getRedirectURL()
Returns the URL of the page, that was requested to be shown next |
int |
getStatus()
Returns the status of the response |
java.lang.String |
getSubmitURL()
Returns the error message |
void |
setErrorMessage(java.lang.String message)
Sets the error message |
void |
setHtmlPage(java.lang.String htmlPage)
Sets HTMl page or JSON string with updates that should be written to the response |
void |
setHtmlPageBytes(byte[] htmlPageBytes)
|
void |
setRedirectURL(java.lang.String url)
Sets the URL of the page, that was requested to be shown next |
void |
setStatus(int status)
|
void |
setSubmitURL(java.lang.String url)
Sets the error message |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_OK
public static final int STATUS_ERROR
public static final int STATUS_EXIT
public static final int STATUS_INTERNAL_REDIRECT
Constructor Detail |
---|
public HttpResponseData()
public HttpResponseData(int status)
Method Detail |
---|
public java.lang.String getHtmlPage() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void setHtmlPage(java.lang.String htmlPage)
public int getStatus()
public java.lang.String getRedirectURL()
public void setRedirectURL(java.lang.String url)
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String message)
public java.lang.String getSubmitURL()
public void setSubmitURL(java.lang.String url)
public void setStatus(int status)
public java.util.HashMap getParams()
public byte[] getHtmlPageBytes()
public void setHtmlPageBytes(byte[] htmlPageBytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |