* @param operation
* @return
*/
private LogoffResponse doLogoff(LogoffRequest operation) {
HPISessionManager sessionManager = HPISessionManager.getInstance();
if (sessionManager.deleteSession(operation.getSessionId())) {
return new LogoffResponse("The session was removed successfully.", Response.Status.SUCCESS);
} else {
return new LogoffResponse("No session was found to remove.", Response.Status.FAIL);
}
}