Package org.xipki.util.http
Class HttpRespContent
- java.lang.Object
-
- org.xipki.util.http.HttpRespContent
-
public class HttpRespContent extends Object
HTTP response.- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContent()StringgetContentType()intgetStatusCode()booleanisBase64()booleanisOK()static HttpRespContentofError(int statusCode, String contentType, boolean base64, byte[] content)static HttpRespContentofError(int statusCode, String contentType, byte[] content)static HttpRespContentofOk(String contentType, boolean base64, byte[] content)static HttpRespContentofOk(String contentType, byte[] content)
-
-
-
Method Detail
-
ofOk
public static HttpRespContent ofOk(String contentType, byte[] content)
-
ofOk
public static HttpRespContent ofOk(String contentType, boolean base64, byte[] content)
-
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()
-
-