Package gov.usgs.earthquake.aws
Class HttpResponse
- java.lang.Object
-
- gov.usgs.earthquake.aws.HttpResponse
-
public class HttpResponse extends java.lang.Object
Utility class to hold HttpURLConnection and parse JSON response data.
-
-
Field Summary
Fields Modifier and Type Field Description java.net.HttpURLConnection
connection
Variable to hold HttpURLConnectionjava.io.IOException
readException
Variable for holding IOExceptionsbyte[]
response
Varialbe to hold URL response
-
Constructor Summary
Constructors Constructor Description HttpResponse(java.net.HttpURLConnection connection)
Reads response from HttpUrlConnection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObject
getJsonObject()
Parse response into JsonObject.
-