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