HttpResponse

public class HttpResponse

Fields

mIsOk

protected boolean mIsOk

mResponseBody

protected String mResponseBody

mResponseCode

protected int mResponseCode

mResponseMessage

protected String mResponseMessage

Constructors

HttpResponse

public HttpResponse(int responseCode)

HttpResponse

public HttpResponse(int responseCode, String responseMessage)

HttpResponse

public HttpResponse(int responseCode, String responseMessage, String responseBody)

Methods

getResponseBody

public String getResponseBody()

getResponseCode

public int getResponseCode()

getResponseMessage

public String getResponseMessage()

isOk

public boolean isOk()

setOk

public void setOk(boolean ok)

setResponseBody

public void setResponseBody(String responseBody)

setResponseCode

public void setResponseCode(int responseCode)

setResponseMessage

public void setResponseMessage(String responseMessage)