Creates a new FrontendCallingConvention instance.
Parameters: api - the API, needed for the SOAP messages, cannot be null. throws: IllegalArgumentException - if api == null.
Converts an HTTP request to a XINS request (implementation method). This
method should only be called from class
CustomCallingConvention .
Only then it is guaranteed that the httpRequest argument is
not null.
Parameters: httpRequest - the HTTP request, will not be null.the XINS request object, never null. throws: InvalidRequestException - if the request is considerd to be invalid. throws: FunctionNotSpecifiedException - if the request does not indicate the name of the function to execute.
Converts a XINS result to an HTTP response (implementation method).
Parameters: xinsResult - the XINS result object that should be converted to an HTTP response,will not be null. Parameters: httpResponse - the HTTP response object to configure, will not be null. Parameters: httpRequest - the HTTP request sent by the client, will not be null. throws: IOException - if calling any of the methods in httpResponse causes anI/O error.