public interface StructuredService
A StructuredService must be registered using the
provided with a name, which also defines the URL of the service.
The generated output can be either JSON or XML, which is completely handled by the framework.
Note: Simple AJAX calls using JSON can also be realized using the controller framework. See
Routed.jsonCall() for further information.
void call(ServiceCall call, sirius.kernel.xml.StructuredOutput out) throws Exception
call- the HTTP request to process
out- the encoder used to generate the desired output
Exception- in case of an error. An appropriate result will be generated in the selected format.
Copyright © 2017. All rights reserved.