public abstract class AbstractWebResult<CODE_TYPE extends Serializable> extends Object implements IWebResult<CODE_TYPE>, Serializable
IWebResult.IDataFilter
Constructor and Description |
---|
AbstractWebResult() |
AbstractWebResult(CODE_TYPE code) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSuccess
public AbstractWebResult()
public AbstractWebResult(CODE_TYPE code)
public CODE_TYPE code()
code
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> code(CODE_TYPE code)
code
in interface IWebResult<CODE_TYPE extends Serializable>
public String msg()
msg
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> msg(String msg)
msg
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> data(Object data)
data
in interface IWebResult<CODE_TYPE extends Serializable>
public <T> T data()
data
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> attrs(Map<String,Object> attrs)
attrs
in interface IWebResult<CODE_TYPE extends Serializable>
public Map<String,Object> attrs()
attrs
in interface IWebResult<CODE_TYPE extends Serializable>
public <T> T dataAttr(String dataKey)
dataAttr
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> dataAttr(String dataKey, Object dataValue)
dataAttr
in interface IWebResult<CODE_TYPE extends Serializable>
public <T> T attr(String attrKey)
attr
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> attr(String attrKey, Object attrValue)
attr
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> withContentType()
withContentType
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> keepNullValue()
keepNullValue
in interface IWebResult<CODE_TYPE extends Serializable>
public IWebResult<CODE_TYPE> snakeCase()
snakeCase
in interface IWebResult<CODE_TYPE extends Serializable>
protected Map<String,Object> doFilter(IWebResult.IDataFilter dataFilter, boolean attr, Map<String,Object> targetMap)
public IWebResult<CODE_TYPE> dataFilter(IWebResult.IDataFilter dataFilter)
dataFilter
in interface IWebResult<CODE_TYPE extends Serializable>
public IJsonObjectWrapper toJsonObject()
toJsonObject
in interface IWebResult<CODE_TYPE extends Serializable>
public JsonView toJsonView()
toJsonView
in interface IWebResult<CODE_TYPE extends Serializable>
public JsonView toJsonView(String callback)
toJsonView
in interface IWebResult<CODE_TYPE extends Serializable>
public String toXml(boolean cdata)
toXml
in interface IWebResult<CODE_TYPE extends Serializable>
public TextView toXmlView()
toXmlView
in interface IWebResult<CODE_TYPE extends Serializable>
public TextView toXmlView(boolean cdata)
toXmlView
in interface IWebResult<CODE_TYPE extends Serializable>
protected void doContentAppend(StringBuilder content, boolean cdata, String key, Object value)
Copyright © 2022. All rights reserved.