Class ResponseHelper

java.lang.Object
org.nuxeo.ecm.automation.server.rest.ResponseHelper

public class ResponseHelper extends Object
Author:
Bogdan Stefanescu, Antoine Taillefer
  • 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

      public static jakarta.ws.rs.core.Response blobs(List<Blob> blobs) throws IOException
      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