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