use of com.canoo.dp.impl.server.context.DolphinContext in project dolphin-platform by canoo.
the class InterruptServlet method doPost.
@Override
protected void doPost(final HttpServletRequest req, final HttpServletResponse response) throws ServletException, IOException {
Assert.requireNonNull(response, "response");
final DolphinContext currentContext = dolphinContextProvider.getCurrentDolphinContext();
if (currentContext == null) {
response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Missing or wrong client session id");
} else {
currentContext.interrupt();
}
}
Aggregations