com.dyuproject.web.rest
Class JSONDispatcher.SimpleResponse

java.lang.Object
  extended by 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


Field Summary
protected  boolean _error
           
protected  String _msg
           
static String ERROR
           
static String MSG
           
 
Constructor Summary
JSONDispatcher.SimpleResponse(String msg)
           
JSONDispatcher.SimpleResponse(String msg, boolean error)
           
 
Method Summary
 void addJSON(StringBuffer buffer)
           
 String getMsg()
           
 boolean isError()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

JSONDispatcher.SimpleResponse

public JSONDispatcher.SimpleResponse(String msg)

JSONDispatcher.SimpleResponse

public JSONDispatcher.SimpleResponse(String msg,
                                     boolean error)
Method Detail

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.