
org.directwebremoting.jsonrpc.JsonRpcConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwr Show documentation
Show all versions of dwr Show documentation
DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript.
It gets rid of almost all the boilerplate code between the web browser and your Java code.
This version 4.0.2 works with Jakarta Servlet 4.0.2.
The newest version!
package org.directwebremoting.jsonrpc;
/**
* Various constants from the JSON-RPC spec:
* http://groups.google.com/group/json-rpc/web/json-rpc-1-2-proposal
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public interface JsonRpcConstants
{
/**
* Parse error
* Invalid JSON. An error occurred on the server while parsing the JSON text
*/
public static int ERROR_CODE_PARSE = -32700;
/**
* Invalid Request: The received JSON not a valid JSON-RPC Request
*/
public static int ERROR_CODE_INVALID = -32600;
/**
* Method not found.
* The requested remote-procedure does not exist / is not available.
*/
public static int ERROR_CODE_NO_METHOD = -32601;
/**
* Invalid method parameters.
*/
public static int ERROR_CODE_BAD_PARAMS = -32602;
/**
* Internal JSON-RPC error.
*/
public static int ERROR_CODE_INTERNAL = -32603;
/**
* Reserved for implementation-defined server-errors.
*/
public static int ERROR_CODE_SERVER = -32000;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy