| org.xins.server.CallingConvention org.xins.server.JSONCallingConvention
JSONCallingConvention | public class JSONCallingConvention extends CallingConvention (Code) | | The JSON calling convention.
This version support Yahoo style JSON calls.
For the definition of the calling convention, look at
http://developer.yahoo.com/common/json.html
This calling convention could be used for example with Google Web Toolkit.
For an example, look at
http://code.google.com/webtoolkit/documentation/examples/jsonrpc/
since: XINS 2.0. version: $Revision: 1.6 $ $Date: 2007/09/18 08:45:06 $ author: Anthony Goubard |
RESPONSE_CONTENT_TYPE | final protected static String RESPONSE_CONTENT_TYPE(Code) | | The content type of the HTTP response.
|
RESPONSE_ENCODING | final protected static String RESPONSE_ENCODING(Code) | | The response encoding format.
|
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)
|
|
|