public abstract class CommandServlet extends MessageServlet<io.spine.core.Command,io.spine.core.Ack>
HttpServlet
representing a command endpoint.
Handles POST
requests with commands in their bodies.
Modifier | Constructor and Description |
---|---|
protected |
CommandServlet(io.spine.server.CommandService commandService) |
Modifier and Type | Method and Description |
---|---|
protected io.spine.core.Ack |
handle(io.spine.core.Command request)
Handles the servlet request and produces the response message.
|
doPost
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected CommandServlet(io.spine.server.CommandService commandService)
protected io.spine.core.Ack handle(io.spine.core.Command request)
MessageServlet
handle
in class MessageServlet<io.spine.core.Command,io.spine.core.Ack>
request
- the request message