Class HttpResponseEntity
- java.lang.Object
-
- io.github.handsomecoder.utils.http.HttpResponseEntity
-
public class HttpResponseEntity extends Object
The type Http response entity.
-
-
Constructor Summary
Constructors Constructor Description HttpResponseEntity(Integer statusCode, String body)Instantiates a new Http response entity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()Gets body.static HttpResponseEntitygetEmptyResponse()Gets empty response.IntegergetStatusCode()Gets status code.booleanisEmpty()Is empty boolean.
-
-
-
Method Detail
-
getEmptyResponse
public static HttpResponseEntity getEmptyResponse()
Gets empty response.- Returns:
- the empty response
-
getStatusCode
public Integer getStatusCode()
Gets status code.- Returns:
- the status code
-
getBody
public String getBody()
Gets body.- Returns:
- the body
-
isEmpty
public boolean isEmpty()
Is empty boolean.- Returns:
- the boolean
-
-