Class HttpRespContent


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

      • ofError

        public static HttpRespContent ofError​(int statusCode,
                                              String contentType,
                                              byte[] content)
      • ofError

        public static HttpRespContent ofError​(int statusCode,
                                              String contentType,
                                              boolean base64,
                                              byte[] content)
      • isOK

        public boolean isOK()
      • getStatusCode

        public int getStatusCode()
      • getContentType

        public String getContentType()
      • isBase64

        public boolean isBase64()
      • getContent

        public byte[] getContent()