Package com.brightcove.player.network
Class HttpResponse
- java.lang.Object
-
- com.brightcove.player.network.HttpResponse
-
public class HttpResponse extends java.lang.Object
Wrapper class to contain the HTTP code and body response
-
-
Constructor Summary
Constructors Constructor Description HttpResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResponseBody()
org.json.JSONObject
getResponseBodyJSON()
int
getResponseCode()
void
setResponseBody(java.lang.String responseBody)
void
setResponseBodyJSON(org.json.JSONObject responseBodyJSON)
void
setResponseCode(int responseCode)
java.lang.String
toString()
-
-
-
Method Detail
-
getResponseCode
public int getResponseCode()
-
setResponseCode
public void setResponseCode(int responseCode)
-
getResponseBody
public java.lang.String getResponseBody()
-
setResponseBody
public void setResponseBody(java.lang.String responseBody)
-
getResponseBodyJSON
public org.json.JSONObject getResponseBodyJSON()
-
setResponseBodyJSON
public void setResponseBodyJSON(org.json.JSONObject responseBodyJSON)
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-