Class ResponseHelper
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.ResponseHelper
- Author:
- Bogdan Stefanescu, Antoine Taillefer
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.core.Response
static javax.ws.rs.core.Response
static javax.ws.rs.core.Response
static javax.ws.rs.core.Response
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
static javax.ws.rs.core.Response
notFound()
-
Field Details
-
MULTIPART_FILENAME_UTF_8
- See Also:
-
-
Method Details
-
notFound
public static javax.ws.rs.core.Response notFound() -
emptyContent
public static javax.ws.rs.core.Response emptyContent() -
emptyBlobs
public static javax.ws.rs.core.Response emptyBlobs() -
notAllowed
public static javax.ws.rs.core.Response notAllowed() -
blobs
public static javax.ws.rs.core.Response blobs(List<Blob> blobs) throws javax.mail.MessagingException, IOException - Throws:
javax.mail.MessagingException
IOException
-
blobs
public static javax.ws.rs.core.Response blobs(List<Blob> blobs, int httpStatus) throws javax.mail.MessagingException, IOException - Throws:
javax.mail.MessagingException
IOException
-
getResponse
public static Object getResponse(Object result, javax.servlet.http.HttpServletRequest request) throws javax.mail.MessagingException, IOException - Throws:
javax.mail.MessagingException
IOException
- Since:
- 5.7.2
-
getResponse
public static Object getResponse(Object result, javax.servlet.http.HttpServletRequest request, int httpStatus) throws IOException, javax.mail.MessagingException Handle custom http status.- Throws:
IOException
javax.mail.MessagingException
- Since:
- 7.1
-