Class ResponseHelper
java.lang.Object
org.nuxeo.ecm.automation.server.rest.ResponseHelper
- Author:
- Bogdan Stefanescu, Antoine Taillefer
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.ResponsegetResponse(Object result, jakarta.servlet.http.HttpServletRequest request) static jakarta.ws.rs.core.ResponsegetResponse(Object result, jakarta.servlet.http.HttpServletRequest request, int httpStatus) Handle custom http status.static jakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.ResponsenotFound()
-
Method Details
-
notFound
public static jakarta.ws.rs.core.Response notFound() -
emptyContent
public static jakarta.ws.rs.core.Response emptyContent() -
emptyBlobs
public static jakarta.ws.rs.core.Response emptyBlobs() -
notAllowed
public static jakarta.ws.rs.core.Response notAllowed() -
blobs
- Throws:
IOException
-
blobs
public static jakarta.ws.rs.core.Response blobs(List<Blob> blobs, int httpStatus) throws IOException - Throws:
IOException
-
getResponse
public static jakarta.ws.rs.core.Response getResponse(Object result, jakarta.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException- Since:
- 5.7.2
-
getResponse
public static jakarta.ws.rs.core.Response getResponse(Object result, jakarta.servlet.http.HttpServletRequest request, int httpStatus) throws IOException Handle custom http status.- Throws:
IOException- Since:
- 7.1
-