com.dyuproject.web.rest
Class JSONDispatcher.SimpleResponse
java.lang.Object
com.dyuproject.web.rest.JSONDispatcher.SimpleResponse
- All Implemented Interfaces:
- org.mortbay.util.ajax.JSON.Generator
- Enclosing class:
- JSONDispatcher
public static class JSONDispatcher.SimpleResponse
- extends Object
- implements org.mortbay.util.ajax.JSON.Generator
MSG
public static final String MSG
- See Also:
- Constant Field Values
ERROR
public static final String ERROR
- See Also:
- Constant Field Values
_msg
protected final String _msg
_error
protected final boolean _error
JSONDispatcher.SimpleResponse
public JSONDispatcher.SimpleResponse(String msg)
JSONDispatcher.SimpleResponse
public JSONDispatcher.SimpleResponse(String msg,
boolean error)
getMsg
public String getMsg()
isError
public boolean isError()
addJSON
public void addJSON(StringBuffer buffer)
- Specified by:
addJSON
in interface org.mortbay.util.ajax.JSON.Generator
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2013. All Rights Reserved.