85868788899091929394
this.appId = appId; this.password = password; try { this.serverUri = new URI(serverUri); } catch (URISyntaxException e) { throw new MchoiceUssdException(e); } httpClient = new HttpClient(); addAuthentication(httpClient); }
120121122123124125126127
try { httpClient.executeMethod(postMethod); return gson.fromJson(postMethod.getResponseBodyAsString(), MchoiceUssdResponse.class); } catch (IOException e) { throw new MchoiceUssdException(e); } }