|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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(Object jsonContent)
Initializes an instance of this class using the final content in JSON form. |
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type of the page, for example "test/html". |
String |
show()
Called from the Dispatcher. |
void |
writeTo(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(Object jsonContent)
jsonContent - the response content in JSON form| Method Detail |
|---|
public String getContentType()
Page
getContentType in interface Pagepublic String show()
Page
show in interface Page
public void writeTo(HttpServletResponse res)
throws IOException
res -
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||