|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.JSONPage
public class JSONPage
Implementation of the Page
, that is used to send a JSON (JavaScript
Object Notation) content back to the browser. Used for Ajax based requests.
Constructor Summary | |
---|---|
JSONPage(java.lang.Object jsonContent)
Initializes an instance of this class using the final content in JSON form. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns the content type of the page, for example "test/html". |
java.lang.String |
show()
Called from the Dispatcher. |
void |
writeTo(javax.servlet.http.HttpServletResponse res)
Write page in response, and add specific to json headers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONPage(java.lang.Object jsonContent)
jsonContent
- the response content in JSON formMethod Detail |
---|
public java.lang.String getContentType()
Page
getContentType
in interface Page
public java.lang.String show()
Page
show
in interface Page
public void writeTo(javax.servlet.http.HttpServletResponse res) throws java.io.IOException
res
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |