com.bastengao.struts2.freeroute
类 JsonResult

java.lang.Object
  继承者 com.bastengao.struts2.freeroute.Result
      继承者 com.bastengao.struts2.freeroute.JsonResult

public class JsonResult
extends Result

json result of JSON plugin. 参考 http://struts.apache.org/2.3.8/docs/json-plugin.html

从以下版本开始:
1.0
作者:
bastengao

字段摘要
 
从类 com.bastengao.struts2.freeroute.Result 继承的字段
params, resultType
 
构造方法摘要
protected JsonResult()
           
 
方法摘要
private  JsonResult _param(String name, String value)
           
 JsonResult callbackParameter(String value)
           
 JsonResult contentType(String value)
           
 JsonResult enableGZIP(boolean value)
           
 JsonResult encoding(String value)
           
 JsonResult enumAsBean(boolean value)
           
 JsonResult errorCode(String value)
           
 JsonResult excludeNullProperties(boolean value)
           
 JsonResult excludeProperties(String properties)
           
 JsonResult ignoreHierarchy(boolean value)
           
 JsonResult includeProperties(String properties)
           
 JsonResult noCache(boolean value)
           
 JsonResult prefix(String value)
           
 JsonResult root(String root)
           
 JsonResult statusCode(String value)
           
 JsonResult wrapPrefix(String value)
           
 JsonResult wrapSuffix(String value)
           
 
从类 com.bastengao.struts2.freeroute.Result 继承的方法
create, create, done, location, param
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

JsonResult

protected JsonResult()
方法详细信息

root

public JsonResult root(String root)

includeProperties

public JsonResult includeProperties(String properties)

excludeProperties

public JsonResult excludeProperties(String properties)

wrapPrefix

public JsonResult wrapPrefix(String value)

wrapSuffix

public JsonResult wrapSuffix(String value)

prefix

public JsonResult prefix(String value)

ignoreHierarchy

public JsonResult ignoreHierarchy(boolean value)

enumAsBean

public JsonResult enumAsBean(boolean value)

enableGZIP

public JsonResult enableGZIP(boolean value)

noCache

public JsonResult noCache(boolean value)

excludeNullProperties

public JsonResult excludeNullProperties(boolean value)

statusCode

public JsonResult statusCode(String value)

errorCode

public JsonResult errorCode(String value)

callbackParameter

public JsonResult callbackParameter(String value)

contentType

public JsonResult contentType(String value)

encoding

public JsonResult encoding(String value)

_param

private JsonResult _param(String name,
                          String value)


Copyright © 2013 bastengao. All Rights Reserved.