public class GetResponse extends Object
Constructor and Description |
---|
GetResponse() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMapString(String result,
String key1,
String key2)
Parse the server response and get specified String values from it
|
Map<String,String> |
getMapStringFromJSON(String result,
String key1,
String key2) |
public Map<String,String> getMapString(String result, String key1, String key2) throws IOException, org.json.JSONException
result
- String value of the server responsekey1
- for parsing String value from the server responsekey2
- for parsing String value from the server responseIOException
- for incorrect parsing of the server responseorg.json.JSONException
- if the server returns not Json objectpublic Map<String,String> getMapStringFromJSON(String result, String key1, String key2) throws IOException, org.json.JSONException
IOException
org.json.JSONException
Copyright © 2016–2017. All rights reserved.