| org.xins.server.CallingConvention org.xins.server.JSONRPCCallingConvention
JSONRPCCallingConvention | public class JSONRPCCallingConvention extends CallingConvention (Code) | | The JSON-RPC calling convention.
Version 1.0
and 1.1 are supported.
The service description is also returned on request when calling the
system.describe function.
The returned object is a JSON Object with a similar structure as the input
parameters when HTTP POST is used.
since: XINS 2.0. version: $Revision: 1.21 $ $Date: 2007/09/18 08:45:03 $ author: Anthony Goubard |
RESPONSE_CONTENT_TYPE | final protected static String RESPONSE_CONTENT_TYPE(Code) | | The content type of the HTTP response.
|
createResultObject | static JSONObject createResultObject(FunctionResult xinsResult) throws JSONException(Code) | | Creates the JSON object from the result returned by the function.
Parameters: xinsResult - the result returned by the function, cannot be null .the JSON object created from the result of the function, never null . throws: JSONException - if the object cannot be created for any reason. |
getParamsDescription | static JSONArray getParamsDescription(Map paramsSpecs, Map dataSectionSpecs) throws JSONException(Code) | | Returns the description of the input or output parameters.
Parameters: paramsSpecs - the specification of the input of output parameters, cannot be null . Parameters: dataSectionSpecs - the specification of the input of output data section, cannot be null .the JSON array containing the description of the input or output parameters, never null . throws: JSONException - if the JSON object cannot be created. |
getSupportedMethods | protected String[] getSupportedMethods()(Code) | | |
Methods inherited from org.xins.server.CallingConvention | static void cleanUpParameters(BasicPropertyReader parameters) throws IllegalArgumentException(Code)(Java Doc) final FunctionRequest convertRequest(HttpServletRequest httpRequest) throws IllegalStateException, IllegalArgumentException, InvalidRequestException, FunctionNotSpecifiedException(Code)(Java Doc) abstract protected FunctionRequest convertRequestImpl(HttpServletRequest httpRequest) throws InvalidRequestException, FunctionNotSpecifiedException(Code)(Java Doc) final void convertResult(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest) throws IllegalStateException, IllegalArgumentException, IOException(Code)(Java Doc) abstract protected void convertResultImpl(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest) throws IOException(Code)(Java Doc) BasicPropertyReader gatherParams(HttpServletRequest httpRequest) throws InvalidRequestException(Code)(Java Doc) final protected API getAPI()(Code)(Java Doc) final String getConventionName()(Code)(Java Doc) protected String[] getSupportedMethods()(Code)(Java Doc) protected String[] getSupportedMethods(HttpServletRequest request)(Code)(Java Doc) abstract protected boolean matches(HttpServletRequest httpRequest) throws Exception(Code)(Java Doc) final boolean matchesRequest(HttpServletRequest httpRequest)(Code)(Java Doc) protected Element parseXMLRequest(HttpServletRequest httpRequest) throws IllegalArgumentException, InvalidRequestException(Code)(Java Doc) protected Element parseXMLRequest(HttpServletRequest httpRequest, boolean checkType) throws IllegalArgumentException, InvalidRequestException(Code)(Java Doc) final void setAPI(API api)(Code)(Java Doc) final void setConventionName(String conventionName)(Code)(Java Doc)
|
|
|