Package velo.ladaalpha.fields.internet
Class HttpResponse
java.lang.Object
velo.ladaalpha.fields.internet.HttpResponse
The Class HttpResponse.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the header.getBody()Gets the body.Gets the headers.org.json.simple.JSONObjectGets the json body.intGets the response code.voidSets the body.voidsetResponseCode(int responseCode) Sets the response code.toString()To string. 
- 
Constructor Details
- 
HttpResponse
public HttpResponse() 
 - 
 - 
Method Details
- 
getJsonBody
public org.json.simple.JSONObject getJsonBody()Gets the json body.- Returns:
 - the json body
 
 - 
addHeader
Adds the header.- Parameters:
 name- the nameval- the val
 - 
getHeaders
Gets the headers.- Returns:
 - the headers
 
 - 
getBody
Gets the body.- Returns:
 - the body
 
 - 
setBody
Sets the body.- Parameters:
 body- the new body
 - 
getResponseCode
public int getResponseCode()Gets the response code.- Returns:
 - the response code
 
 - 
setResponseCode
public void setResponseCode(int responseCode) Sets the response code.- Parameters:
 responseCode- the new response code
 - 
toString
To string. 
 -