@Service
public class ResponseService
extends java.lang.Object
| コンストラクタと説明 | 
|---|
ResponseService()  | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
void | 
response(java.lang.String data)
JSONをHTTPレスポンスに返します. 
 | 
void | 
responseJson(java.lang.Integer count,
            java.lang.Long total,
            java.lang.Integer limit,
            java.lang.Integer offset,
            net.sf.json.JSONArray records)
JSONをHTTPレスポンスに返します. 
 | 
void | 
responseJson(net.sf.json.JSONObject json)
JSON形式の文字列をレスポンスへ出力する。 
 | 
void | 
responseJsonText(net.sf.json.JSONObject json)
JSON形式の文字列をレスポンスへ出力する。 
 | 
void | 
setDefaultNullProcessor(net.sf.json.JsonConfig config)  | 
net.sf.json.JSONObject | 
toJSONObject(java.lang.Object object)  | 
public net.sf.json.JSONObject toJSONObject(java.lang.Object object)
public void setDefaultNullProcessor(net.sf.json.JsonConfig config)
public void responseJson(java.lang.Integer count,
                         java.lang.Long total,
                         java.lang.Integer limit,
                         java.lang.Integer offset,
                         net.sf.json.JSONArray records)
count - 取得数total - 総件数limit - 最大取得数offset - 取得開始位置records - 検索レコードpublic void response(java.lang.String data)
json - public void responseJson(net.sf.json.JSONObject json)
                  throws java.lang.Exception
json - JSONオブジェクトjava.lang.Exceptionpublic void responseJsonText(net.sf.json.JSONObject json)
                      throws java.lang.Exception
json - JSONオブジェクトjava.lang.Exception