|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.au.AuWriters
public class AuWriters
Utilities to instantiate an implmentation of AuWriter.
| Field Summary | |
|---|---|
static java.lang.String |
CONTENT_TYPE
The content type of the output. |
| Constructor Summary | |
|---|---|
AuWriters()
|
|
| Method Summary | |
|---|---|
static java.lang.Class |
getImplementationClass()
Returns the implementation class of AuWriter that
will be used to generate the output to the client. |
static JSONObject |
getJSONOutput(JSONArray rs)
Returns a JSON object representing the output that will be sent to the client. |
static AuWriter |
newInstance()
Creates an instance of AuWriter. |
static void |
setImplementationClass(java.lang.Class cls)
Sets the implementation class of AuWriter that
will be used to generate the output to the client. |
static JSONArray |
toJSON(AuResponse response)
Converts a response to a JSON object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTENT_TYPE
| Constructor Detail |
|---|
public AuWriters()
| Method Detail |
|---|
public static java.lang.Class getImplementationClass()
AuWriter that
will be used to generate the output to the client.
Default: HttpAuWriter.
public static void setImplementationClass(java.lang.Class cls)
AuWriter that
will be used to generate the output to the client.
public static AuWriter newInstance()
throws UiException
AuWriter.
UiExceptionpublic static JSONObject getJSONOutput(JSONArray rs)
You could add the responses to the given array by invoking
toJSON(org.zkoss.zk.au.AuResponse).
rs - the array to hold the responses.
To output a response, invoke toJSON(org.zkoss.zk.au.AuResponse) as follows:
rs.add(AuWriters.toJSON(response)).public static JSONArray toJSON(AuResponse response)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||