public class ResponseUtils
extends java.lang.Object
Constructor and Description |
---|
ResponseUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.Response |
errorResponse(java.lang.Throwable error) |
static javax.ws.rs.core.Response |
fromDAOExpection(DAO.DAOException exception) |
static javax.ws.rs.core.Response |
notAuthReponse(java.lang.String string) |
static javax.ws.rs.core.Response |
ok(Credentials credentials) |
public static javax.ws.rs.core.Response notAuthReponse(java.lang.String string)
public static javax.ws.rs.core.Response fromDAOExpection(DAO.DAOException exception)
public static javax.ws.rs.core.Response ok(Credentials credentials)
public static javax.ws.rs.core.Response errorResponse(java.lang.Throwable error)