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 class
ResponseHelper.BoundaryMediaType
-
Field Summary
Fields Modifier and Type Field Description static String
MULTIPART_FILENAME_UTF_8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
emptyBlobs()
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()
-
-
-
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.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
-
-