public class AuWriters
extends java.lang.Object
AuWriter
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE
The content type of the output.
|
Constructor and Description |
---|
AuWriters() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String CONTENT_TYPE
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
.UiException
public 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)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.