public class ResponseHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResponseHelper.BoundaryMediaType |
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.Response |
blob(Blob blob) |
static javax.ws.rs.core.Response |
blob(Blob blob,
int httpStatus) |
static javax.ws.rs.core.Response |
blobs(List<Blob> blobs) |
static javax.ws.rs.core.Response |
blobs(List<Blob> blobs,
int httpStatus) |
static javax.ws.rs.core.Response |
emptyContent() |
static Object |
getResponse(Object result,
javax.servlet.http.HttpServletRequest request) |
static Object |
getResponse(Object result,
javax.servlet.http.HttpServletRequest request,
int httpStatus)
Handle custom http status.
|
static javax.ws.rs.core.Response |
notAllowed() |
static javax.ws.rs.core.Response |
notFound() |
public static javax.ws.rs.core.Response notFound()
public static javax.ws.rs.core.Response emptyContent()
public static javax.ws.rs.core.Response notAllowed()
public static javax.ws.rs.core.Response blobs(List<Blob> blobs) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
public static javax.ws.rs.core.Response blobs(List<Blob> blobs, int httpStatus) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
public static Object getResponse(Object result, javax.servlet.http.HttpServletRequest request) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
public static Object getResponse(Object result, javax.servlet.http.HttpServletRequest request, int httpStatus) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
Copyright © 2015 Nuxeo SA. All rights reserved.