Package gov.usgs.earthquake.aws
Class HttpResponse
- java.lang.Object
-
- gov.usgs.earthquake.aws.HttpResponse
-
public class HttpResponse extends java.lang.ObjectUtility class to hold HttpURLConnection and parse JSON response data.
-
-
Field Summary
Fields Modifier and Type Field Description java.net.HttpURLConnectionconnectionVariable to hold HttpURLConnectionjava.io.IOExceptionreadExceptionVariable for holding IOExceptionsbyte[]responseVarialbe 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.JsonObjectgetJsonObject()Parse response into JsonObject.
-