Class HttpRespContent


  • public class HttpRespContent
    extends java.lang.Object
    HTTP response.
    Author:
    Lijun Liao (xipki)
    • Method Detail

      • ofOk

        public static HttpRespContent ofOk​(java.lang.String contentType,
                                           byte[] content)
      • ofOk

        public static HttpRespContent ofOk​(java.lang.String contentType,
                                           boolean base64,
                                           byte[] content)
      • ofError

        @Deprecated
        public static HttpRespContent ofError​(int statusCode,
                                              java.lang.String contentType,
                                              byte[] content)
        Deprecated.
      • ofError

        @Deprecated
        public static HttpRespContent ofError​(int statusCode,
                                              java.lang.String contentType,
                                              boolean base64,
                                              byte[] content)
        Deprecated.
      • of

        public static HttpRespContent of​(int statusCode,
                                         java.lang.String contentType,
                                         byte[] content)
      • of

        public static HttpRespContent of​(int statusCode,
                                         java.lang.String contentType,
                                         boolean base64,
                                         byte[] content)
      • isOK

        public boolean isOK()
      • getStatusCode

        public int getStatusCode()
      • getContentType

        public java.lang.String getContentType()
      • isBase64

        public boolean isBase64()
      • getContent

        public byte[] getContent()