Class ResponseHelper
- java.lang.Object
-
- org.nuxeo.ecm.automation.server.jaxrs.ResponseHelper
-
public class ResponseHelper extends Object
- Author:
- Bogdan Stefanescu, Antoine Taillefer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponseHelper.BoundaryMediaType
-
Field Summary
Fields Modifier and Type Field Description static StringMULTIPART_FILENAME_UTF_8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.core.Responseblobs(List<Blob> blobs)static javax.ws.rs.core.Responseblobs(List<Blob> blobs, int httpStatus)static javax.ws.rs.core.ResponseemptyBlobs()static javax.ws.rs.core.ResponseemptyContent()static 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.ResponsenotAllowed()static javax.ws.rs.core.ResponsenotFound()
-
-
-
Field Detail
-
MULTIPART_FILENAME_UTF_8
public static final String MULTIPART_FILENAME_UTF_8
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-