sirius.web.services.JSONServiceCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-web Show documentation
Show all versions of sirius-web Show documentation
Provides a modern and scalable web server as SIRIUS module
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.web.services;
import sirius.kernel.xml.StructuredOutput;
import sirius.web.http.WebContext;
/**
* JSON encoder for calls to a {@link StructuredService}.
*/
class JSONServiceCall extends ServiceCall {
JSONServiceCall(WebContext ctx) {
super(ctx);
}
@Override
protected StructuredOutput createOutput() {
return ctx.respondWith().json();
}
}