Created
November 27, 2014 15:47
-
-
Save miguelcardo/2329350d54e51b19d852 to your computer and use it in GitHub Desktop.
Check operationId, store in map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BufferedReader inputReader = new BufferedReader(new InputStreamReader(connection.getInputStream())); | |
String inputLine; | |
StringBuffer response = new StringBuffer(); | |
while ((inputLine = inputReader.readLine()) != null) { | |
response.append(inputLine); | |
} | |
inputReader.close(); | |
JSONObject jsonResponse = (JSONObject) JSONValue.parse(response.toString()); | |
String operationId = (String) jsonResponse.get("operationId"); | |
pendingOperations.put(operationId, sessionId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment