Class ResponseHelper

    • 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