From 19a6fcfbdcc9507d03160cb88a7b6d05edb5381b Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Tue, 27 Jun 2017 15:43:05 +0530 Subject: [PATCH 01/11] Notifications added --- README.md | 2 + .../FilteredNotificationList.java | 118 ++++++++++ .../java/sdk/Notifications/Notification.java | 217 ++++++++++++++++++ .../sdk/Notifications/NotificationList.java | 79 +++++++ .../restcomm/connect/java/sdk/Utilities.java | 6 + .../connect/java/sdk/http/Request.java | 12 +- .../restcomm/connect/java/sdk/BasicTest.java | 4 +- .../connect/java/sdk/Clients/ClientTest.java | 20 ++ .../sdk/Notifications/NotificationTest.java | 85 +++++++ .../TextFiles/getNotification.txt | 16 ++ .../TextFiles/getNotificationList.txt | 31 +++ .../FilteredNotificationList.class | Bin 0 -> 2764 bytes .../java/sdk/Notifications/Notification.class | Bin 0 -> 4319 bytes .../sdk/Notifications/NotificationList.class | Bin 0 -> 2711 bytes .../restcomm/connect/java/sdk/Utilities.class | Bin 1406 -> 1660 bytes .../connect/java/sdk/http/Request.class | Bin 2091 -> 2142 bytes .../target/maven-archiver/pom.properties | 2 +- .../compile/default-compile/createdFiles.lst | 5 +- .../compile/default-compile/inputFiles.lst | 3 + .../default-testCompile/createdFiles.lst | 3 +- .../default-testCompile/inputFiles.lst | 1 + ...stcomm-connect.java.sdk-0.0.1-SNAPSHOT.jar | Bin 34148 -> 38456 bytes ....connect.java.sdk.Accounts.AccountTest.xml | 8 +- ...nnect.java.sdk.Accounts.SubAccountTest.xml | 12 +- ....java.sdk.Applications.ApplicationTest.xml | 14 +- ...stcomm.connect.java.sdk.Calls.CallTest.xml | 10 +- ...mm.connect.java.sdk.Clients.ClientTest.xml | 12 +- ...ava.sdk.Notifications.NotificationTest.xml | 65 ++++++ ....connect.java.sdk.Accounts.AccountTest.txt | 2 +- ...nnect.java.sdk.Accounts.SubAccountTest.txt | 2 +- ....java.sdk.Applications.ApplicationTest.txt | 2 +- ...stcomm.connect.java.sdk.Calls.CallTest.txt | 2 +- ...mm.connect.java.sdk.Clients.ClientTest.txt | 2 +- ...ava.sdk.Notifications.NotificationTest.txt | 4 + .../restcomm/connect/java/sdk/BasicTest.class | Bin 1555 -> 1555 bytes .../connect/java/sdk/Clients/ClientTest.class | Bin 6111 -> 6111 bytes .../sdk/Notifications/NotificationTest.class | Bin 0 -> 5017 bytes 37 files changed, 701 insertions(+), 38 deletions(-) create mode 100644 restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java create mode 100644 restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/Notification.java create mode 100644 restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/NotificationList.java create mode 100644 restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/NotificationTest.java create mode 100644 restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotification.txt create mode 100644 restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotificationList.txt create mode 100644 restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.class create mode 100644 restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/Notification.class create mode 100644 restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/NotificationList.class create mode 100644 restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Notifications.NotificationTest.xml create mode 100644 restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Notifications.NotificationTest.txt create mode 100644 restcomm-connect.java.sdk/target/test-classes/org/restcomm/connect/java/sdk/Notifications/NotificationTest.class diff --git a/README.md b/README.md index 43f36ef..7b82ec9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # restcomm-sdk-java The Java SDK for RestComm REST API + + diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java new file mode 100644 index 0000000..2fd1bda --- /dev/null +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java @@ -0,0 +1,118 @@ +/* + * TeleStax, Open Source Cloud Communications + * Copyright 2011-2016, Telestax Inc and individual contributors + * by the @authors tag. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.restcomm.connect.java.sdk.Notifications; + +import java.io.IOException; +import org.restcomm.connect.java.sdk.http.*; + +import org.restcomm.connect.java.sdk.Restcomm; +import org.apache.http.ProtocolException; +import org.restcomm.connect.java.sdk.Exceptions.*; +import org.apache.http.ParseException; +import java.lang.reflect.Type; +import com.google.gson.reflect.TypeToken; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; + +import java.util.ArrayList; +import java.util.List; +import org.restcomm.connect.java.sdk.ListUtil; + +import org.apache.http.ParseException; +import com.google.gson.annotations.SerializedName; +import java.net.MalformedURLException; + +public class FilteredNotificationList extends NotificationList { + + private static String BASE_URL; + private static Request request; + + public FilteredNotificationList(final String BASE_URL) + { + this.BASE_URL = BASE_URL; + request = new Request(HttpMethod.GET,BASE_URL); + } + public FilteredNotificationList Page(String value) throws MalformedURLException + { + request.addGetParameters("Page", value); + return this; + } + public FilteredNotificationList NumPages(String value) + { + request.addGetParameters("NumPages", value); + return this; + } + public FilteredNotificationList PageSize(String value) + { + request.addGetParameters("PageSize", value); + return this; + } + public FilteredNotificationList Total(String value) + { + request.addGetParameters("Total", value); + return this; + } + public FilteredNotificationList Start(String value) + { + request.addGetParameters("Start", value); + return this; + } + public FilteredNotificationList End(String value) + { + request.addGetParameters("End", value); + return this; + } + public FilteredNotificationList MessageText(String value) + { + request.addGetParameters("MessageText", value); + return this; + } + public FilteredNotificationList RequestUrl(String value) + { + request.addGetParameters("RequestUrl", value); + return this; + } + public FilteredNotificationList ErrorCode(String value) + { + request.addGetParameters("ErrorCode", value); + return this; + } + public FilteredNotificationList EndTime(String value) + { + request.addGetParameters("EndTime", value); + return this; + } + public FilteredNotificationList StartTime(String value) + { + request.addGetParameters("StartTime", value); + return this; + } + + public NotificationList Filter() + { + System.out.println(request.getUrl()); + Restcomm.sendRequest(request); + Gson gson = new Gson(); + return gson.fromJson(Restcomm.getJSONResponse(),NotificationList.class); + } + + +} diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/Notification.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/Notification.java new file mode 100644 index 0000000..7ef04fd --- /dev/null +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/Notification.java @@ -0,0 +1,217 @@ +/* + * TeleStax, Open Source Cloud Communications + * Copyright 2011-2016, Telestax Inc and individual contributors + * by the @authors tag. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.restcomm.connect.java.sdk.Notifications; + +import org.apache.http.ParseException; +import org.apache.http.ProtocolException; +import org.restcomm.connect.java.sdk.Restcomm; +import org.restcomm.connect.java.sdk.Utilities; +import org.restcomm.connect.java.sdk.http.*; + +import org.restcomm.connect.java.sdk.Exceptions.*; + +public class Notification{ + + static String BASE_URL = Restcomm.COMMON_URL+"Accounts/"+Restcomm.getAuthID()+"/Notifications.json/"; + + static public void SubAccountAccess(String sid) + { + BASE_URL = Restcomm.COMMON_URL+"Accounts/"+sid+"/Notifications.json/"; + } + public static Notification getNotification(String sid) + { + Restcomm.sendRequest((new Request(HttpMethod.GET,BASE_URL+sid))); + return Utilities.NotificationObject(Restcomm.getJSONResponse()); + } + /*public static NotificationList getNotificationList() + { + return new NotificationList(BASE_URL); + }*/ + + private String request_variables; + + private String sid; + + private String message_date; + + private String message_text; + + private String error_code; + + private String date_created; + + private String uri; + + private String api_version; + + private String log; + + private String request_url; + + private String account_sid; + + private String request_method; + + private String date_updated; + + private String more_info; + + public String getRequest_variables () + { + return request_variables; + } + + private void setRequest_variables (String request_variables) + { + this.request_variables = request_variables; + } + + public String getSid () + { + return sid; + } + + private void setSid (String sid) + { + this.sid = sid; + } + + public String getMessage_date () + { + return message_date; + } + + private void setMessage_date (String message_date) + { + this.message_date = message_date; + } + + public String getMessage_text () + { + return message_text; + } + + private void setMessage_text (String message_text) + { + this.message_text = message_text; + } + + public String getError_code () + { + return error_code; + } + + private void setError_code (String error_code) + { + this.error_code = error_code; + } + + public String getDate_created () + { + return date_created; + } + + private void setDate_created (String date_created) + { + this.date_created = date_created; + } + + public String getUri () + { + return uri; + } + + private void setUri (String uri) + { + this.uri = uri; + } + + public String getApi_version () + { + return api_version; + } + + private void setApi_version (String api_version) + { + this.api_version = api_version; + } + + public String getLog () + { + return log; + } + + private void setLog (String log) + { + this.log = log; + } + + public String getRequest_url () + { + return request_url; + } + + private void setRequest_url (String request_url) + { + this.request_url = request_url; + } + + public String getAccount_sid () + { + return account_sid; + } + + private void setAccount_sid (String account_sid) + { + this.account_sid = account_sid; + } + + public String getRequest_method () + { + return request_method; + } + + private void setRequest_method (String request_method) + { + this.request_method = request_method; + } + + public String getDate_updated () + { + return date_updated; + } + + private void setDate_updated (String date_updated) + { + this.date_updated = date_updated; + } + + public String getMore_info () + { + return more_info; + } + + private void setMore_info (String more_info) + { + this.more_info = more_info; + } + +} diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/NotificationList.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/NotificationList.java new file mode 100644 index 0000000..773bb32 --- /dev/null +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/NotificationList.java @@ -0,0 +1,79 @@ +/* + * TeleStax, Open Source Cloud Communications + * Copyright 2011-2016, Telestax Inc and individual contributors + * by the @authors tag. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.restcomm.connect.java.sdk.Notifications; + +import java.io.IOException; +import org.restcomm.connect.java.sdk.http.*; + +import org.restcomm.connect.java.sdk.Restcomm; +import org.apache.http.ProtocolException; +import org.restcomm.connect.java.sdk.Exceptions.*; +import org.apache.http.ParseException; +import java.lang.reflect.Type; +import com.google.gson.reflect.TypeToken; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; + +import java.util.ArrayList; +import java.util.List; +import org.restcomm.connect.java.sdk.ListUtil; +import org.apache.http.ParseException; +import com.google.gson.annotations.SerializedName; + +public class NotificationList extends ListUtil { + + private static String BASE_URL = Restcomm.COMMON_URL+"Accounts/"+Restcomm.getAuthID()+"/Notifications.json"; + private static Request request; + + static public void SubAccountAccess(String sid) //To access the Applications connected to SubAccounts + { + BASE_URL = Restcomm.COMMON_URL+"Accounts/"+sid+"/Notifications.json"; + } + private List notifications; + + public Notification get(int index) + { + return notifications.get(index); + } + public int size() + { + return notifications.size(); + } + private void setList (List Notifications) + { + this.notifications = Notifications; + } + public static NotificationList getList() + { + request = new Request(HttpMethod.GET,BASE_URL); + Restcomm.sendRequest(request); + Gson gson = new Gson(); + + request = new Request(HttpMethod.GET,BASE_URL); + return gson.fromJson(Restcomm.getJSONResponse(),NotificationList.class); + } + public static FilteredNotificationList getFilteredList() + { + + return new FilteredNotificationList(BASE_URL); + } + +} diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Utilities.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Utilities.java index 5c60414..b9dc39c 100644 --- a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Utilities.java +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Utilities.java @@ -28,6 +28,7 @@ import org.restcomm.connect.java.sdk.Accounts.Account; import org.restcomm.connect.java.sdk.Clients.Client; +import org.restcomm.connect.java.sdk.Notifications.Notification; public class Utilities { @@ -51,4 +52,9 @@ public static Client ClientObject(String jsonResponse) { Gson gson = new Gson(); return gson.fromJson(jsonResponse,Client.class); } + public static Notification NotificationObject(String jsonResponse) { + + Gson gson = new Gson(); + return gson.fromJson(jsonResponse,Notification.class); + } } diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/http/Request.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/http/Request.java index 097db1d..9c02001 100644 --- a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/http/Request.java +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/http/Request.java @@ -60,13 +60,23 @@ public HttpMethod getMethod() { return method; } - public void addGetParameters(String a,String b) throws MalformedURLException, URISyntaxException + public void addGetParameters(String a,String b) { + try{ URIBuilder urib = new URIBuilder(Url); urib.addParameter(a,b); urib.build(); Url = new URL(urib.toString()).toString(); + } + catch (MalformedURLException e) + { + e.printStackTrace(); + } + catch (URISyntaxException e) + { + e.printStackTrace(); + } } public void addPostParameters(String a,String b) { diff --git a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/BasicTest.java b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/BasicTest.java index 38aa5ac..97149f0 100644 --- a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/BasicTest.java +++ b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/BasicTest.java @@ -36,7 +36,7 @@ public class BasicTest { public static void runOnceBeforeClass() { Restcomm.setCommonUrl("http://localhost:8080/"); - Restcomm.init("AC13b4372c92ed5c07d951cf842e2664ff", "cb0936cfee986d3e3ec6d1d77cc57888"); + Restcomm.init("AC13b4372c92ed5c07d951cf842e2664ff", "7bec2769d3b48e9132e596b60a558d65"); //System.out.println("@BeforeClass - runOnceBeforeClass"); } @AfterClass @@ -63,3 +63,5 @@ protected String readFile(String fileName) throws IOException { } } } +/*curl GET -X AC13b4372c92ed5c07d951cf842e2664ff:7bec2769d3b48e9132e596b60a558d65@cloud.restcomm.com/restcomm/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications.json +*/ \ No newline at end of file diff --git a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Clients/ClientTest.java b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Clients/ClientTest.java index 235cc89..ac19aab 100644 --- a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Clients/ClientTest.java +++ b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Clients/ClientTest.java @@ -1,3 +1,23 @@ +/* + * TeleStax, Open Source Cloud Communications + * Copyright 2011-2016, Telestax Inc and individual contributors + * by the @authors tag. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.restcomm.connect.java.sdk.Clients; import org.restcomm.connect.java.sdk.BasicTest; diff --git a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/NotificationTest.java b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/NotificationTest.java new file mode 100644 index 0000000..168a96e --- /dev/null +++ b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/NotificationTest.java @@ -0,0 +1,85 @@ +/* + * TeleStax, Open Source Cloud Communications + * Copyright 2011-2016, Telestax Inc and individual contributors + * by the @authors tag. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.restcomm.connect.java.sdk.Notifications; +import org.restcomm.connect.java.sdk.BasicTest; + +import static org.junit.Assert.*; +import org.apache.http.ProtocolException; + +import java.io.File; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; + +import org.restcomm.connect.java.sdk.Notifications.*; +import com.github.tomakehurst.wiremock.client.WireMock; +import com.github.tomakehurst.wiremock.junit.WireMockRule; +import org.restcomm.connect.java.sdk.Exceptions.*; +import org.restcomm.connect.java.sdk.Restcomm; + +import org.junit.rules.ExpectedException; +import java.io.IOException; + +public class NotificationTest extends BasicTest{ + + private String path = "src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/"; + private String NotificationSid = "NO70eddcd2f3424aea94c5d7a638298a6a"; + @Rule + public WireMockRule wireMockRule = new WireMockRule(8080); + + @Test + public void testGetNotification() throws Exception{ + WireMock.stubFor(WireMock.get(WireMock.urlPathMatching("/Accounts/"+Restcomm.getAuthID()+"/Notifications.json/"+NotificationSid)) + .withBasicAuth(Restcomm.getAuthID(),Restcomm.getPassword()) + .willReturn(WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "Notification/json") + .withBody(readFile(path+"getNotification.txt")))); + + Notification a = Notification.getNotification(NotificationSid); + + WireMock.verify(WireMock.getRequestedFor(WireMock.urlEqualTo("/Accounts/"+Restcomm.getAuthID()+"/Notifications.json/"+NotificationSid))); + assertEquals(200, Restcomm.getStatusCode()); + assertEquals(NotificationSid,a.getSid()); + } + + @Test + public void testNotificationList() throws Exception{ + WireMock.stubFor(WireMock.get(WireMock.urlPathMatching("/Accounts/"+Restcomm.getAuthID()+"/Notifications.json")) + .withBasicAuth(Restcomm.getAuthID(),Restcomm.getPassword()) + .withQueryParam("PageSize", WireMock.equalTo("1")) + .willReturn(WireMock.aResponse() + .withStatus(200) + .withHeader("Content-Type", "Notification/json") + .withBody(readFile(path+"getNotificationList.txt")))); + + NotificationList a = NotificationList.getFilteredList().PageSize("1").Filter(); + + Notification b = a.get(0); + + WireMock.verify(WireMock.getRequestedFor(WireMock.urlEqualTo("/Accounts/"+Restcomm.getAuthID()+"/Notifications.json?PageSize=1"))); + assertEquals(200,Restcomm.getStatusCode()); + assertNotNull(a); + assertEquals("NOa6b821987c1e47b4b91d26783abc205b",b.getSid()); + + } +} \ No newline at end of file diff --git a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotification.txt b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotification.txt new file mode 100644 index 0000000..5f2281c --- /dev/null +++ b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotification.txt @@ -0,0 +1,16 @@ +{ + "sid": "NO70eddcd2f3424aea94c5d7a638298a6a", + "date_created": "Wed, 21 Jun 2017 10:30:27 +0000", + "date_updated": "Wed, 21 Jun 2017 10:30:27 +0000", + "account_sid": "AC13b4372c92ed5c07d951cf842e2664ff", + "api_version": "2012-04-24", + "log": 0, + "error_code": 11008, + "more_info": "/restcomm/errors/11008.html", + "message_text": "The SIP Client client:client_name is not registered or does not exist", + "message_date": "2017-06-21T10:30:27.000Z", + "request_url": "", + "request_method": "", + "request_variables": "", + "uri": "/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications/NO70eddcd2f3424aea94c5d7a638298a6a.json" +} diff --git a/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotificationList.txt b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotificationList.txt new file mode 100644 index 0000000..55def49 --- /dev/null +++ b/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/TextFiles/getNotificationList.txt @@ -0,0 +1,31 @@ +{ + "page": 0, + "num_pages": 19, + "page_size": 1, + "total": 19, + "start": "0", + "end": "0", + "uri": "/restcomm/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications.json", + "first_page_uri": "/restcomm/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications.json?Page\u003d0\u0026PageSize\u003d1", + "previous_page_uri": "null", + "next_page_uri": "/restcomm/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications.json?Page\u003d1\u0026PageSize\u003d1\u0026AfterSid\u003dNOa6b821987c1e47b4b91d26783abc205b", + "last_page_uri": "/restcomm/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications.json?Page\u003d19\u0026PageSize\u003d1", + "notifications": [ + { + "sid": "NOa6b821987c1e47b4b91d26783abc205b", + "date_created": "Wed, 17 May 2017 11:09:40 +0000", + "date_updated": "Wed, 17 May 2017 11:09:40 +0000", + "account_sid": "AC13b4372c92ed5c07d951cf842e2664ff", + "api_version": "2012-04-24", + "log": 0, + "error_code": 11001, + "more_info": "/restcomm/errors/11001.html", + "message_text": "Cannot Connect to Client: bob : Make sure the Client exist or is registered with Restcomm", + "message_date": "2017-05-17T11:09:40.000Z", + "request_url": "", + "request_method": "", + "request_variables": "", + "uri": "/2012-04-24/Accounts/AC13b4372c92ed5c07d951cf842e2664ff/Notifications/NOa6b821987c1e47b4b91d26783abc205b.json" + } + ] +} \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.class b/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.class new file mode 100644 index 0000000000000000000000000000000000000000..924f48b790636ef91536b59bf2edc276ac92886c GIT binary patch literal 2764 zcmb`I?NiiN6vm&xLb4%>U0zhGw$)Y_5F((`7O?WNU~zeoU9f1;hTY2&yPMD?>)8HP zEzW>bXFC1dKdRH`W>;O?3oA4IkmTN*bAIRElk=SX_4n_802slJi9SpvaRGO9e3Qgo zOq*!Mj9i&Dkd~7<149Oe4cG>57#J}yYGBO3O#`xLTUn`~m)kK7%%;6$$Ph4#E#jzl1ejjLHVjJUnT zs#9XDN2<;JUoqOAJLM{an3)#^u@`Si#{=e^$CcrE9z#BJ?k}`z%lna2<}(*L0rTCO z@roKcmP8oRCNExa&8+8lJ)mJS69j%x%c4%>yjvkA8N1iU?X?7GxSQ@j(V~orKDF==-|5)2@Cc7Be2*<1Pb@seWgS0QaImeRTeV*c1#D@UJU)117DBsmCX2{I z5j^VLNf<|^MZ=|7N1ll6C8xaO2NhAIDBl(i%ONdAGjx2kScCT{#3d2!`YfN;g-l+9 z-Q?r{%Z*=iE`355wZ_jl#o~g9R-M492uhI^e@&sdBb*!B(a&KdDm;!~r3!j#_O5TQ zvP(tmRl=#rmQxZ@tc-4!dxP_vUe*<_z3;{jwP=^qU$K)LUCga4leot|#VRs(0>82tD{TDu1kIM6Fq~*S-^%tgHsT4Y;sSpjKnqN% zEsjhn5t0orO{hY~nS;8+vj z4K>hG0>=sbvI%fR4Lqd;P7*lP1URY&o>l^<37lyH98&{3mB4ud7n%TXs)1*e!21Md zn*eXAfgdS>s{}r10=%sTrj)>S0ymlf$5{t8rR>&4nBGShb$Ed81N3n43cas!cJmPD xvV*U1z6*T^`1nusy;EpS`i~)ht0`=;vpi{tnyxFg52x`JzGgHH6S2A{{{a?;Ml1jT literal 0 HcmV?d00001 diff --git a/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/Notification.class b/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Notifications/Notification.class new file mode 100644 index 0000000000000000000000000000000000000000..e669181bfa24dc238fbd8b873faaf977a7aeb740 GIT binary patch literal 4319 zcmbuB%Xbt-6vl5SWL`803E>R_5n&R9@hy@B4J5qG12ai9ij0#^GwCohJ#_a3R8a8& zDteAC+~~rMF5LJ4g(ycCy6_y2F5KvUZr%fz17uKw|-Uq-CO<3U*G*e zMEBCW3EEDlqV#Nnn&?!VPE!W0=VFwN(F~eKoVL+yl*~AtpR$v4#t6TVLX^J%mU1LmCTX0x6dc=XH*o<<4N zacn1J*t2+tAsNFl+40QgvSVqqGF!4T3#Q{*c9Hw?c8>e1t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java/sdk/Utilities.class b/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/Utilities.class index 8d015f597d442d2c2dd29ac3a28275daad49ddf0..61c404980668e2f7eb70e6b139ee7684a844f438 100644 GIT binary patch delta 573 zcmaiw%}&BV6ot>U)SO_6K6_QHBk^<IVQkB1~gAm=Tl`=HTNAXqJ@I#p$MpAhSp{xz$`54bj+bBVR4@;2`^V@ zO1*q0;2@7$%-C^X#5`=;&y&XjN<`^cM0rR%DbgiPJ%e1r^61_ce}nb~{z~Ra;3R-g rHv1ViE2xZY#Hp5!e@JvQgI>kjh;Hd|2>pMEW3o9JYs2VgW$^VsLMcWt delta 426 zcmaivJ5mBc5Qe`Qc6Zp7^?``^T0mKl)qgre*j z)WSq2=)e1){<>#om3cCl&fngF5oZYrEkip&J3V%KV(1uhL)XwVoK8knZJ%^jTBBm8 z`Y!5ID6Z{TXZEJ_sCqt&f`|K9rnwWMkYAC`30NaBaZ+8 diff --git a/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/http/Request.class b/restcomm-connect.java.sdk/target/classes/org/restcomm/connect/java/sdk/http/Request.class index 6131d5ab38b6b727e6a4a4ad5a5921c80d3bb34f..60b7e860d04c3aec5d80564f0965ee076443576a 100644 GIT binary patch delta 448 zcmXw#%PxaK6vuz_&8JhJ(jpBa5ph?SgsNNJDOI#?rR;RW!paMDBla>6U}<3`5(^6t zU}I_L0XzbUI74jC`Oo?P&dfP;7kiIYUcR56ff0@aT9~e;nY0TthS>oBuQKN<^M(b( zVn8)ZE-VMEkO>I8W0;I#H6Y5GAsbN7nq$^o5GNN9XT#mMY1lI46}otFuDGvcJ^Sh< zL+V7K%C=VTtAZ`-)4J^lJM0?vBJ49^-*me!Qm~)8Qy*|>+x@Xni6ceg`liz^c;?~K zKl7rBZrSEl9`Yrp?N=yKxh0k#dZgi&u*@kM0mC%>aXvol4S*`c-41 nJkcq8Ws+5UGEUJxo2K|b(ZD}3EU(V!*Mey-5ygvnL|9J delta 424 zcmXv~NlpSm6n)jzP*5R2OK^xWnh+&6E>v*Dkx39lRB&9OF^0qlK~3DT@B~-~Fs@w@ zSGw>39KsuD;suPqK{xOJ|Ek{m!-x0T+i3s1y#tuSiNpY+PV{5Rf@Ogf3BAj#TFjcj zx1|5N6R=tX_EkjjSeTzQ-zpe*e e9m56Nry3%?{sr@oNa&I7#7G;!{RS%KRGA> diff --git a/restcomm-connect.java.sdk/target/maven-archiver/pom.properties b/restcomm-connect.java.sdk/target/maven-archiver/pom.properties index f72e5c4..c8b5fe9 100644 --- a/restcomm-connect.java.sdk/target/maven-archiver/pom.properties +++ b/restcomm-connect.java.sdk/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Thu Jun 22 17:43:11 GMT+05:30 2017 +#Tue Jun 27 15:29:50 GMT+05:30 2017 version=0.0.1-SNAPSHOT groupId=org.restcomm artifactId=restcomm-connect.java.sdk diff --git a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index 3c7186b..b4f3b10 100644 --- a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -21,9 +21,12 @@ org/restcomm/connect/java/sdk/Accounts/SubAccountList$1.class org/restcomm/connect/java/sdk/Utilities.class org/restcomm/connect/java/sdk/http/Request.class org/restcomm/connect/java/sdk/Accounts/SubAccountUpdater.class +org/restcomm/connect/java/sdk/Notifications/NotificationList.class org/restcomm/connect/java/sdk/Clients/ClientList.class +org/restcomm/connect/java/sdk/Notifications/Notification.class org/restcomm/connect/java/sdk/Clients/ClientUpdater.class -org/restcomm/connect/java/sdk/Calls/CallsList.class org/restcomm/connect/java/sdk/ListUtil.class +org/restcomm/connect/java/sdk/Calls/CallsList.class +org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.class org/restcomm/connect/java/sdk/Clients/Client.class org/restcomm/connect/java/sdk/Accounts/Account.class diff --git a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 1f72faf..5db7b71 100644 --- a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,3 +1,4 @@ +/home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/NotificationList.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Applications/ApplicationCreator.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Accounts/AccountUpdater.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Clients/ClientCreator.java @@ -6,8 +7,10 @@ /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Clients/ClientList.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Applications/ApplicationList.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Restcomm.java +/home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Accounts/SubAccountCreator.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Applications/ApplicationUpdater.java +/home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/Notification.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Calls/Call.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Accounts/SubAccountList.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/ExceptionHandler.java diff --git a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst index 6557110..0ca10c8 100644 --- a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +++ b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -1,6 +1,7 @@ +org/restcomm/connect/java/sdk/Notifications/NotificationTest.class +org/restcomm/connect/java/sdk/Clients/ClientTest.class org/restcomm/connect/java/sdk/Accounts/SubAccountTest.class org/restcomm/connect/java/sdk/BasicTest.class org/restcomm/connect/java/sdk/Applications/ApplicationTest.class org/restcomm/connect/java/sdk/Accounts/AccountTest.class -org/restcomm/connect/java/sdk/Clients/ClientTest.class org/restcomm/connect/java/sdk/Calls/CallTest.class diff --git a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index a590cfb..fc5841c 100644 --- a/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/restcomm-connect.java.sdk/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -4,3 +4,4 @@ /home/mithilesh/workspace/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Accounts/AccountTest.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Clients/ClientTest.java /home/mithilesh/workspace/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Applications/ApplicationTest.java +/home/mithilesh/workspace/restcomm-connect.java.sdk/src/test/java/org/restcomm/connect/java/sdk/Notifications/NotificationTest.java diff --git a/restcomm-connect.java.sdk/target/restcomm-connect.java.sdk-0.0.1-SNAPSHOT.jar b/restcomm-connect.java.sdk/target/restcomm-connect.java.sdk-0.0.1-SNAPSHOT.jar index 84dc16d95ed5d186a126431c3194406f36706e19..2712625a35377b07c266b261e44edfae737a8756 100644 GIT binary patch delta 7621 zcmaJ`1zeO}v)>>VSY&CIrMtU(=|&|brMo-Vr4dA6aS4%7UKIq920^5hQc^%b5fCr{ zK}t}8yDV?<-S6J#_uHMbbLKyDVs_4)d6ut(TB<iP70uT~U--A@}lm)DPO6%Rh3qX8BpHL5sZ(t!2XAMedIRT#2 z0t+U@H$>>3o^`Fkv1g4$=6N7~RQgXa36cZ=Kpt+g>ZhYZogdY|e;IlPhln`)I0gq- zTX>t!Y11fsXSkAmhY(<}SUTMbaf&@=YbHi0fnmm-Sv3QP3L!F^UaYO&aKn+&QC1d> zZo!x3V3gT|a96nM1NL&U`nK6;H-kr>g-@eSc0M@(R5Z1E<(5#ODa`{Ig(EW}CR8@{ zHCxkx1f@E|TujS!3Rf6G`9Tp~fNEk*7Nz(#A=Pz^$@dlN9yy~vu?}kWRrD7WO7ZU_?%!kmTDkQ3zM~{`vdWVA85eJ;C0FhwS@M#Z z@D28vFsA6VX0!S|Y|RR-1as<_}yii@B;p&AC}L-Ma@&4aja^!Zfk zdpgvH9B=skymQw$)$%d4E8U;Z=5=*t-4Gd05N}+b zEY6pHgssdLLj}srinR6n8nmSSV0by3&S5`k5c!&F>s}&pgiW`}#fOgVUUjbej)LVc zIIkP2U#LuMZs~5zr^(8D0txB}G1umfNxTWao97=3Orav>+wKn`p^nh$reu+@-NcfU za6g3BP7kysO7Oj3JJA8je~l#JA(r0xK-7A`BHd{~D2bXUq3yMfa_7BMY1a(=(3;=aP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b8?%o`ADM>Cko?%IJoXXTpSL9IP0D*ji1+gvD!tkeQ|o z^5m07g}>GnQgnk|;Q@R1eyIU)SF_@F?)+eZIpMITalM$6H(JHlKoJ%Z61a0jIuJQaGf>w z(HPCokOzDF(qBT5zF1s{JxJ|T1{KUJEug}+j(}24l0=;aDu52fXiukQx=f$~Y?u2D zEM-PwwzY1{Vq&JKyuQn%!c(4rb_taI*MlQUnu@oNc^9@V53E$}#JqI8u;;-X?adU` z^dGll%7U=$+F_GgiwU>;V8Sh6W$y$h!d_!;CI9E9z8$!ojQCRF5XXDX57S`-^l$Z0G+|6 zB1dEYGDjV9bl@Q2&{^%DGaA7xlCeMgWh>!Pv1>0TvP2bgaLx@1e1V0HCe*qn+ BYq0 - + @@ -25,7 +25,7 @@ "/> - + @@ -60,6 +60,6 @@ - - + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Accounts.SubAccountTest.xml b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Accounts.SubAccountTest.xml index e58b0d8..e68342d 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Accounts.SubAccountTest.xml +++ b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Accounts.SubAccountTest.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,7 @@ "/> - + @@ -60,8 +60,8 @@ - - - - + + + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Applications.ApplicationTest.xml b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Applications.ApplicationTest.xml index 7af564c..a6f0339 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Applications.ApplicationTest.xml +++ b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Applications.ApplicationTest.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,7 @@ "/> - + @@ -60,9 +60,9 @@ - - - - - + + + + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Calls.CallTest.xml b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Calls.CallTest.xml index c6c6fff..af9879b 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Calls.CallTest.xml +++ b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Calls.CallTest.xml @@ -25,7 +25,7 @@ "/> - + @@ -60,8 +60,8 @@ - - - - + + + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Clients.ClientTest.xml b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Clients.ClientTest.xml index 49e9ffd..ed9a805 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Clients.ClientTest.xml +++ b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Clients.ClientTest.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,7 @@ "/> - + @@ -60,8 +60,8 @@ - - - - + + + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Notifications.NotificationTest.xml b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Notifications.NotificationTest.xml new file mode 100644 index 0000000..58c05fa --- /dev/null +++ b/restcomm-connect.java.sdk/target/surefire-reports/TEST-org.restcomm.connect.java.sdk.Notifications.NotificationTest.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.AccountTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.AccountTest.txt index ba53dc4..ac891c1 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.AccountTest.txt +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.AccountTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: org.restcomm.connect.java.sdk.Accounts.AccountTest ------------------------------------------------------------------------------- -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.177 sec +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.SubAccountTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.SubAccountTest.txt index 203cd98..b1e9df4 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.SubAccountTest.txt +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Accounts.SubAccountTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: org.restcomm.connect.java.sdk.Accounts.SubAccountTest ------------------------------------------------------------------------------- -Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.678 sec +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.829 sec diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Applications.ApplicationTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Applications.ApplicationTest.txt index d222e24..2948c78 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Applications.ApplicationTest.txt +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Applications.ApplicationTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: org.restcomm.connect.java.sdk.Applications.ApplicationTest ------------------------------------------------------------------------------- -Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec +Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.367 sec diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Calls.CallTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Calls.CallTest.txt index 9da2d8a..e5459a2 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Calls.CallTest.txt +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Calls.CallTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: org.restcomm.connect.java.sdk.Calls.CallTest ------------------------------------------------------------------------------- -Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.306 sec +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 sec diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Clients.ClientTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Clients.ClientTest.txt index a1b9a90..e22c8fb 100644 --- a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Clients.ClientTest.txt +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Clients.ClientTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: org.restcomm.connect.java.sdk.Clients.ClientTest ------------------------------------------------------------------------------- -Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.291 sec +Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.343 sec diff --git a/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Notifications.NotificationTest.txt b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Notifications.NotificationTest.txt new file mode 100644 index 0000000..a614a63 --- /dev/null +++ b/restcomm-connect.java.sdk/target/surefire-reports/org.restcomm.connect.java.sdk.Notifications.NotificationTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: org.restcomm.connect.java.sdk.Notifications.NotificationTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.236 sec diff --git a/restcomm-connect.java.sdk/target/test-classes/org/restcomm/connect/java/sdk/BasicTest.class b/restcomm-connect.java.sdk/target/test-classes/org/restcomm/connect/java/sdk/BasicTest.class index 546376e1cc2933b139f60a36062df0a668b00b0b..25a2dc04416ab6e00ac79fe41c8785b24b88e9da 100644 GIT binary patch delta 45 zcmbQtGnr>Y43mO+Qfji1xtV2(agvEes->Z^QL3q>S(2GSqN%Axika!=8m8&Y04HS( AtpET3 delta 45 zcmbQtGnr>Y43k1~l7XeMS#nxxs-=ZligBuOYO-01VT!qVa|Nks?5v5EyL9_)E@ Iuusw2AEi1bivR!s delta 160 zcmcbwe_ww?v=FZt0}F!$0~doNg8+lnpjz88jJIGiWhvW6<85 zEiBC_s?SivV8PJKV9l_B!G>WMgDt~h2K&vkMP@T9IsBiv|@;2bY_Uz94;ozs2b0Z!H~v~10;(WG8rluvKeLrc}p2`8CEjnF>C@FvYVlB Ia=&;00MPp*&j0`b diff --git a/restcomm-connect.java.sdk/target/test-classes/org/restcomm/connect/java/sdk/Notifications/NotificationTest.class b/restcomm-connect.java.sdk/target/test-classes/org/restcomm/connect/java/sdk/Notifications/NotificationTest.class new file mode 100644 index 0000000000000000000000000000000000000000..dcf00e8fc213a7a91dd380402f5eca2a0131cef5 GIT binary patch literal 5017 zcmb_g`(G5-75`oq*<~H0t|n=cHYWB{MO0QE@(5}~@PPqDK&(mAc6N4v!DR;LA(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q$NAj1)!--!XzS9MGJ KP7%KfgZ~HU2_u65 literal 0 HcmV?d00001 From 094117532a42d19f53d764bb8a13fb84c8698e12 Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Tue, 27 Jun 2017 16:11:25 +0530 Subject: [PATCH 02/11] second --- restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc new file mode 100644 index 0000000..e69de29 From b2d28dea7c90a570480d9b87bdeadc5402a000da Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Tue, 27 Jun 2017 16:21:25 +0530 Subject: [PATCH 03/11] second --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 7b82ec9..fc35abc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,20 @@ # restcomm-sdk-java The Java SDK for RestComm REST API +- To build the Project, after downloading the zip and extracting it from GitHub, navigate to the folder containing the pom.xml +file and buiild the project using the following command in the terminal + +```sh +$ mvn package +``` +- Now when this command is executed, the compilation,validation and testing will be done and after the successful completion of them, a jar file will be generated in the target folder. + +- Include the jar file in your build path to get Started. + +Java version: 1.8.0_131 + +This is an SDK for RestComm REST API, +To know more about Restcomm, please refer to http://documentation.telestax.com/ + +Regarding issues, please refer to https://github.com/RestComm/restcomm-sdk-java/issues From 6f0540ae115c331fea5c5d11c53a855be46eb232 Mon Sep 17 00:00:00 2001 From: Mithilesh Reddy Date: Tue, 27 Jun 2017 18:07:31 +0530 Subject: [PATCH 04/11] ASCII doc added ASCII doc for the Notifications Module is added --- .../src/main/asciidoc/Notifications.adoc | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc index e69de29..8bb8130 100644 --- a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc +++ b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc @@ -0,0 +1,140 @@ += Restcomm JAVA Sdk - Notifications + +[[Notifications]] +== Notifications + +A *Notification* resource represents a single log entry made by RestComm while handling your calls or your use of the Restful APIs. It is very useful for debugging purposes. The Notifications list resource represents the set of notifications generated for an account. + + +From here onwards, by a Notification, we refer to a Notification Resource Object + +=== Fetching a Notification + +A Notification with a given Sid can be fetched by the following code snippet +.... + String Sid; + . + . + . + Notification CallNotification = Notification.getNotification(Sid); +.... + +=== Accessing the Fetched Notification + +A Field of a Notification Object can be accessed by using the corresponding getMethod for that Field +.... + String Message; + Message = CallNotification.getMessage_text(). +.... + +==== List of Fields +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Property |Method +|Sid | getSid(). +|DateCreated |getDate_created(). +|DateUpdated |getDate_updated(). +|AccountSid |getAccount_sid(). +|CallSid |getCall_sid(). +|ApiVersion |getApi_version(). +|Log |getLog(). +|ErrorCode |getErrorCode(). +|MoreInfo |getMore_info(). +|MessageText |getMessage_text(). +|MessageDate |getMessage_date(). +|RequestUrl |getRequest_url(). +|RequestMethod |getRequest_method(). +|RequestVariables |getRequest_variables(). +|ResponseHeaders |getResponse_headers(). +|ResponseBody |getResponse_body(). +|Uri |getUri(). +|=============================================================================================================================================================================================================================== + +== Fetching List of Notifications + +=== Fetching the Default List + +The Default Notifications List can be fetched by using the following code + +.... + NotificationList List = NotificationList.getList(); +.... + +=== Fetching a Filtered List + +A Filtered Notifications List can be fetched by using the getFilteredList() method of the class NotificationList + +.... + NotificationList List = NotificationList.getFilteredList().ErrorCode("1").MessageText("Hello World").Filter(); +.... + +The above mentioned code snippet fetches the Notifications with ErrorCode = 1 and MessageText = Hello World + +==== List of FilterParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Parameter |Method +|StartTime |StartTime(). +|EndTime |EndTime(). +|ErrorCode |ErrorCode(). +|MessageText |MessageText(). +|RequestUrl |RequestUrl(). +|=============================================================================================================================================================================================================================== + +In addition to these, the regular Paging paramters can also be used similar to the FilterParameters +.... + NotificationList List = NotificationList.getFilteredList().PageSize("1").Filter(). +.... + +==== List of PagingParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Paramter |Method +|Page |Page(). +|NumPages |NumPages(). +|PageSize |PageSize(). +|Total |Total(). +|Start |Start(). +|End |End(). +|=============================================================================================================================================================================================================================== + +== Accessing the Fetched NotificationList + +The size of the Fetched List can be known by +.... + int size = CallNotification.size(); +.... + +The a Notification from the fetched NotificationList Object can be obtained by +.... + Notification a = CallNotification.get(1); +.... + +== Additional Paging Information +We can also access the Additional Paging Information by using the Methods of NotificationList +.... + String Uri; + Uri = CallNotification.getpreviouspageuri(); +.... + +The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: + +=== Request Parameters + +[cols=",",options="header",] +|============================================================ +|Parameter |Method +|Uri |geturi(). +|Firstpageuri |getfirstpageuri(). +|Nextpageuri |getnextpageuri(). +|Previouspageuri |getpreviouspageuri(). +|Lastpageuri |getlastpageuri(). +|============================================================ + +NOTE: The Default Account from which we fetch the Notifications is the Main Account. + +If we want to change the Default Account to any specific SubAccount , use the following method before Fetching the Notification(s) +.... + NotifactionList.SubAccountAccess(SubAccountSid); + NotificationList List = NotificationList.getList(); +.... From 9eaca5b6d7fdc04f6abfc1307d58a69586163ec1 Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Tue, 27 Jun 2017 18:19:38 +0530 Subject: [PATCH 05/11] Final patch for Notification API, this closes #4 --- .../src/main/asciidoc/Notifications.adoc | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc index e69de29..21fb453 100644 --- a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc +++ b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc @@ -0,0 +1,140 @@ += Restcomm JAVA Sdk - Notifications + +[[Notifications]] +== Notifications + +A *Notification* resource represents a single log entry made by RestComm while handling your calls or your use of the Restful APIs. It is very useful for debugging purposes. The Notifications list resource represents the set of notifications generated for an account. + + +From here onwards, by a Notification, we refer to a Notification Resource Object + +=== Fetching a Notification + +A Notification with a given Sid can be fetched by the following code snippet +.... + String Sid; + . + . + . + Notification CallNotification = Notification.getNotification(Sid); +.... + +=== Accessing the Fetched Notification + +A Field of a Notification Object can be accessed by using the corresponding getMethod for that Field +.... + String Message; + Message = CallNotification.getMessage_text(). +.... + +==== List of Fields +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Property |Method +|Sid | getSid(). +|DateCreated |getDate_created(). +|DateUpdated |getDate_updated(). +|AccountSid |getAccount_sid(). +|CallSid |getCall_sid(). +|ApiVersion |getApi_version(). +|Log |getLog(). +|ErrorCode |getErrorCode(). +|MoreInfo |getMore_info(). +|MessageText |getMessage_text(). +|MessageDate |getMessage_date(). +|RequestUrl |getRequest_url(). +|RequestMethod |getRequest_method(). +|RequestVariables |getRequest_variables(). +|ResponseHeaders |getResponse_headers(). +|ResponseBody |getResponse_body(). +|Uri |getUri(). +|=============================================================================================================================================================================================================================== + +== Fetching List of Notifications + +=== Fetching the Default List + +The Default Notifications List can be fetched by using the following code + +.... + NotificationList List = NotificationList.getList(); +.... + +=== Fetching a Filtered List + +A Filtered Notifications List can be fetched by using the getFilteredList() method of the class NotificationList + +.... + NotificationList List = NotificationList.getFilteredList().ErrorCode("1").MessageText("Hello World").Filter(); +.... + +The above mentioned code snippet fetches the Notifications with ErrorCode = 1 and MessageText = Hello World + +==== List of FilterParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Parameter |Method +|StartTime |StartTime(). +|EndTime |EndTime(). +|ErrorCode |ErrorCode(). +|MessageText |MessageText(). +|RequestUrl |RequestUrl(). +|=============================================================================================================================================================================================================================== + +In addition to these, the regular Paging paramters can also be used similar to the FilterParameters +.... + NotificationList List = NotificationList.getFilteredList().PageSize("1").Filter(). +.... + +==== List of PagingParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Paramter |Method +|Page |Page(). +|NumPages |NumPages(). +|PageSize |PageSize(). +|Total |Total(). +|Start |Start(). +|End |End(). +|=============================================================================================================================================================================================================================== + +== Accessing the Fetched NotificationList + +The size of the Fetched List can be known by +.... + int size = CallNotification.size(); +.... + +The a Notification from the fetched NotificationList Object can be obtained by +.... + Notification a = CallNotification.get(1); +.... + +== Additional Paging Information +We can also access the Additional Paging Information by using the Methods of NotificationList +.... + String Uri; + Uri = CallNotification.getpreviouspageuri(); +.... + +The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: + +=== Request Parameters + +[cols=",",options="header",] +|============================================================ +|Parameter |Method +|Uri |geturi(). +|Firstpageuri |getfirstpageuri(). +|Nextpageuri |getnextpageuri(). +|Previouspageuri |getpreviouspageuri(). +|Lastpageuri |getlastpageuri(). +|============================================================ + +NOTE: The Default Account from which we fetch the Notifications is the Main Account. + +If we want to change the Default Account to any specific SubAccount , use the following method before Fetching the Notification(s) +.... + NotifactionList.SubAccountAccess(SubAccountSid); + NotificationList List = NotificationList.getList(); +.... From 9257dd1e7f3e4d03af26a81557e072d6cdd2ecf0 Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Tue, 27 Jun 2017 18:24:07 +0530 Subject: [PATCH 06/11] Final patch for Notification API, this closes #4 --- .../src/main/asciidoc/Notifications.adoc | 283 ++++++++++++++++++ 1 file changed, 283 insertions(+) diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc index e69de29..b7877d0 100644 --- a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc +++ b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc @@ -0,0 +1,283 @@ +<<<<<<< HEAD += Restcomm JAVA Sdk - Notifications + +[[Notifications]] +== Notifications + +A *Notification* resource represents a single log entry made by RestComm while handling your calls or your use of the Restful APIs. It is very useful for debugging purposes. The Notifications list resource represents the set of notifications generated for an account. + + +From here onwards, by a Notification, we refer to a Notification Resource Object + +=== Fetching a Notification + +A Notification with a given Sid can be fetched by the following code snippet +.... + String Sid; + . + . + . + Notification CallNotification = Notification.getNotification(Sid); +.... + +=== Accessing the Fetched Notification + +A Field of a Notification Object can be accessed by using the corresponding getMethod for that Field +.... + String Message; + Message = CallNotification.getMessage_text(). +.... + +==== List of Fields +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Property |Method +|Sid | getSid(). +|DateCreated |getDate_created(). +|DateUpdated |getDate_updated(). +|AccountSid |getAccount_sid(). +|CallSid |getCall_sid(). +|ApiVersion |getApi_version(). +|Log |getLog(). +|ErrorCode |getErrorCode(). +|MoreInfo |getMore_info(). +|MessageText |getMessage_text(). +|MessageDate |getMessage_date(). +|RequestUrl |getRequest_url(). +|RequestMethod |getRequest_method(). +|RequestVariables |getRequest_variables(). +|ResponseHeaders |getResponse_headers(). +|ResponseBody |getResponse_body(). +|Uri |getUri(). +|=============================================================================================================================================================================================================================== + +== Fetching List of Notifications + +=== Fetching the Default List + +The Default Notifications List can be fetched by using the following code + +.... + NotificationList List = NotificationList.getList(); +.... + +=== Fetching a Filtered List + +A Filtered Notifications List can be fetched by using the getFilteredList() method of the class NotificationList + +.... + NotificationList List = NotificationList.getFilteredList().ErrorCode("1").MessageText("Hello World").Filter(); +.... + +The above mentioned code snippet fetches the Notifications with ErrorCode = 1 and MessageText = Hello World + +==== List of FilterParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Parameter |Method +|StartTime |StartTime(). +|EndTime |EndTime(). +|ErrorCode |ErrorCode(). +|MessageText |MessageText(). +|RequestUrl |RequestUrl(). +|=============================================================================================================================================================================================================================== + +In addition to these, the regular Paging paramters can also be used similar to the FilterParameters +.... + NotificationList List = NotificationList.getFilteredList().PageSize("1").Filter(). +.... + +==== List of PagingParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Paramter |Method +|Page |Page(). +|NumPages |NumPages(). +|PageSize |PageSize(). +|Total |Total(). +|Start |Start(). +|End |End(). +|=============================================================================================================================================================================================================================== + +== Accessing the Fetched NotificationList + +The size of the Fetched List can be known by +.... + int size = CallNotification.size(); +.... + +The a Notification from the fetched NotificationList Object can be obtained by +.... + Notification a = CallNotification.get(1); +.... + +== Additional Paging Information +We can also access the Additional Paging Information by using the Methods of NotificationList +.... + String Uri; + Uri = CallNotification.getpreviouspageuri(); +.... + +The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: + +=== Request Parameters + +[cols=",",options="header",] +|============================================================ +|Parameter |Method +|Uri |geturi(). +|Firstpageuri |getfirstpageuri(). +|Nextpageuri |getnextpageuri(). +|Previouspageuri |getpreviouspageuri(). +|Lastpageuri |getlastpageuri(). +|============================================================ + +NOTE: The Default Account from which we fetch the Notifications is the Main Account. + +If we want to change the Default Account to any specific SubAccount , use the following method before Fetching the Notification(s) +.... + NotifactionList.SubAccountAccess(SubAccountSid); + NotificationList List = NotificationList.getList(); +.... +======= += Restcomm JAVA Sdk - Notifications + +[[Notifications]] +== Notifications + +A *Notification* resource represents a single log entry made by RestComm while handling your calls or your use of the Restful APIs. It is very useful for debugging purposes. The Notifications list resource represents the set of notifications generated for an account. + + +From here onwards, by a Notification, we refer to a Notification Resource Object + +=== Fetching a Notification + +A Notification with a given Sid can be fetched by the following code snippet +.... + String Sid; + . + . + . + Notification CallNotification = Notification.getNotification(Sid); +.... + +=== Accessing the Fetched Notification + +A Field of a Notification Object can be accessed by using the corresponding getMethod for that Field +.... + String Message; + Message = CallNotification.getMessage_text(). +.... + +==== List of Fields +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Property |Method +|Sid | getSid(). +|DateCreated |getDate_created(). +|DateUpdated |getDate_updated(). +|AccountSid |getAccount_sid(). +|CallSid |getCall_sid(). +|ApiVersion |getApi_version(). +|Log |getLog(). +|ErrorCode |getErrorCode(). +|MoreInfo |getMore_info(). +|MessageText |getMessage_text(). +|MessageDate |getMessage_date(). +|RequestUrl |getRequest_url(). +|RequestMethod |getRequest_method(). +|RequestVariables |getRequest_variables(). +|ResponseHeaders |getResponse_headers(). +|ResponseBody |getResponse_body(). +|Uri |getUri(). +|=============================================================================================================================================================================================================================== + +== Fetching List of Notifications + +=== Fetching the Default List + +The Default Notifications List can be fetched by using the following code + +.... + NotificationList List = NotificationList.getList(); +.... + +=== Fetching a Filtered List + +A Filtered Notifications List can be fetched by using the getFilteredList() method of the class NotificationList + +.... + NotificationList List = NotificationList.getFilteredList().ErrorCode("1").MessageText("Hello World").Filter(); +.... + +The above mentioned code snippet fetches the Notifications with ErrorCode = 1 and MessageText = Hello World + +==== List of FilterParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Parameter |Method +|StartTime |StartTime(). +|EndTime |EndTime(). +|ErrorCode |ErrorCode(). +|MessageText |MessageText(). +|RequestUrl |RequestUrl(). +|=============================================================================================================================================================================================================================== + +In addition to these, the regular Paging paramters can also be used similar to the FilterParameters +.... + NotificationList List = NotificationList.getFilteredList().PageSize("1").Filter(). +.... + +==== List of PagingParameters +[cols=",",options="header",] +|=============================================================================================================================================================================================================================== +|Paramter |Method +|Page |Page(). +|NumPages |NumPages(). +|PageSize |PageSize(). +|Total |Total(). +|Start |Start(). +|End |End(). +|=============================================================================================================================================================================================================================== + +== Accessing the Fetched NotificationList + +The size of the Fetched List can be known by +.... + int size = CallNotification.size(); +.... + +The a Notification from the fetched NotificationList Object can be obtained by +.... + Notification a = CallNotification.get(1); +.... + +== Additional Paging Information +We can also access the Additional Paging Information by using the Methods of NotificationList +.... + String Uri; + Uri = CallNotification.getpreviouspageuri(); +.... + +The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: + +=== Request Parameters + +[cols=",",options="header",] +|============================================================ +|Parameter |Method +|Uri |geturi(). +|Firstpageuri |getfirstpageuri(). +|Nextpageuri |getnextpageuri(). +|Previouspageuri |getpreviouspageuri(). +|Lastpageuri |getlastpageuri(). +|============================================================ + +NOTE: The Default Account from which we fetch the Notifications is the Main Account. + +If we want to change the Default Account to any specific SubAccount , use the following method before Fetching the Notification(s) +.... + NotifactionList.SubAccountAccess(SubAccountSid); + NotificationList List = NotificationList.getList(); +.... +>>>>>>> 6f0540ae115c331fea5c5d11c53a855be46eb232 From 9734e5428038f94f3140135054d8744d74ddf4ef Mon Sep 17 00:00:00 2001 From: Mithilesh Reddy Date: Wed, 28 Jun 2017 12:07:17 +0530 Subject: [PATCH 07/11] Final patch for Notification API, this closes #4 --- .../java/sdk/Notifications/FilteredNotificationList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java index 2fd1bda..d25d714 100644 --- a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java @@ -108,7 +108,7 @@ public FilteredNotificationList StartTime(String value) public NotificationList Filter() { - System.out.println(request.getUrl()); + Restcomm.sendRequest(request); Gson gson = new Gson(); return gson.fromJson(Restcomm.getJSONResponse(),NotificationList.class); From 834b125391989f265f2202dd93344c8449c5b247 Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Wed, 28 Jun 2017 13:19:21 +0530 Subject: [PATCH 08/11] Final Patch for Notification API, this closes #4 --- .../connect/java/sdk/Notifications/FilteredNotificationList.java | 1 - 1 file changed, 1 deletion(-) diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java index 2fd1bda..baf6580 100644 --- a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java @@ -108,7 +108,6 @@ public FilteredNotificationList StartTime(String value) public NotificationList Filter() { - System.out.println(request.getUrl()); Restcomm.sendRequest(request); Gson gson = new Gson(); return gson.fromJson(Restcomm.getJSONResponse(),NotificationList.class); From 47bce0be850eb9249b13fd910885fc82260f5a71 Mon Sep 17 00:00:00 2001 From: mithileshkarnati Date: Wed, 28 Jun 2017 13:25:26 +0530 Subject: [PATCH 09/11] Final patch for Notification API,this closes #4 --- .../java/sdk/Notifications/FilteredNotificationList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java index d25d714..5da2e9d 100644 --- a/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java +++ b/restcomm-connect.java.sdk/src/main/java/org/restcomm/connect/java/sdk/Notifications/FilteredNotificationList.java @@ -108,7 +108,7 @@ public FilteredNotificationList StartTime(String value) public NotificationList Filter() { - + Restcomm.sendRequest(request); Gson gson = new Gson(); return gson.fromJson(Restcomm.getJSONResponse(),NotificationList.class); From 6d34bb143ed7e6b139ebae287f662173f82fabfc Mon Sep 17 00:00:00 2001 From: Mithilesh Reddy Date: Thu, 29 Jun 2017 17:19:43 +0530 Subject: [PATCH 10/11] Final patch for Notification API, this closes #4 --- .../src/main/asciidoc/Notifications.adoc | 142 ------------------ 1 file changed, 142 deletions(-) diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc index b7877d0..24ad209 100644 --- a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc +++ b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc @@ -139,145 +139,3 @@ If we want to change the Default Account to any specific SubAccount , use the fo NotifactionList.SubAccountAccess(SubAccountSid); NotificationList List = NotificationList.getList(); .... -======= -= Restcomm JAVA Sdk - Notifications - -[[Notifications]] -== Notifications - -A *Notification* resource represents a single log entry made by RestComm while handling your calls or your use of the Restful APIs. It is very useful for debugging purposes. The Notifications list resource represents the set of notifications generated for an account. - - -From here onwards, by a Notification, we refer to a Notification Resource Object - -=== Fetching a Notification - -A Notification with a given Sid can be fetched by the following code snippet -.... - String Sid; - . - . - . - Notification CallNotification = Notification.getNotification(Sid); -.... - -=== Accessing the Fetched Notification - -A Field of a Notification Object can be accessed by using the corresponding getMethod for that Field -.... - String Message; - Message = CallNotification.getMessage_text(). -.... - -==== List of Fields -[cols=",",options="header",] -|=============================================================================================================================================================================================================================== -|Property |Method -|Sid | getSid(). -|DateCreated |getDate_created(). -|DateUpdated |getDate_updated(). -|AccountSid |getAccount_sid(). -|CallSid |getCall_sid(). -|ApiVersion |getApi_version(). -|Log |getLog(). -|ErrorCode |getErrorCode(). -|MoreInfo |getMore_info(). -|MessageText |getMessage_text(). -|MessageDate |getMessage_date(). -|RequestUrl |getRequest_url(). -|RequestMethod |getRequest_method(). -|RequestVariables |getRequest_variables(). -|ResponseHeaders |getResponse_headers(). -|ResponseBody |getResponse_body(). -|Uri |getUri(). -|=============================================================================================================================================================================================================================== - -== Fetching List of Notifications - -=== Fetching the Default List - -The Default Notifications List can be fetched by using the following code - -.... - NotificationList List = NotificationList.getList(); -.... - -=== Fetching a Filtered List - -A Filtered Notifications List can be fetched by using the getFilteredList() method of the class NotificationList - -.... - NotificationList List = NotificationList.getFilteredList().ErrorCode("1").MessageText("Hello World").Filter(); -.... - -The above mentioned code snippet fetches the Notifications with ErrorCode = 1 and MessageText = Hello World - -==== List of FilterParameters -[cols=",",options="header",] -|=============================================================================================================================================================================================================================== -|Parameter |Method -|StartTime |StartTime(). -|EndTime |EndTime(). -|ErrorCode |ErrorCode(). -|MessageText |MessageText(). -|RequestUrl |RequestUrl(). -|=============================================================================================================================================================================================================================== - -In addition to these, the regular Paging paramters can also be used similar to the FilterParameters -.... - NotificationList List = NotificationList.getFilteredList().PageSize("1").Filter(). -.... - -==== List of PagingParameters -[cols=",",options="header",] -|=============================================================================================================================================================================================================================== -|Paramter |Method -|Page |Page(). -|NumPages |NumPages(). -|PageSize |PageSize(). -|Total |Total(). -|Start |Start(). -|End |End(). -|=============================================================================================================================================================================================================================== - -== Accessing the Fetched NotificationList - -The size of the Fetched List can be known by -.... - int size = CallNotification.size(); -.... - -The a Notification from the fetched NotificationList Object can be obtained by -.... - Notification a = CallNotification.get(1); -.... - -== Additional Paging Information -We can also access the Additional Paging Information by using the Methods of NotificationList -.... - String Uri; - Uri = CallNotification.getpreviouspageuri(); -.... - -The API returns URIs to the next, previous, first and last pages of the returned list as shown in the table below: - -=== Request Parameters - -[cols=",",options="header",] -|============================================================ -|Parameter |Method -|Uri |geturi(). -|Firstpageuri |getfirstpageuri(). -|Nextpageuri |getnextpageuri(). -|Previouspageuri |getpreviouspageuri(). -|Lastpageuri |getlastpageuri(). -|============================================================ - -NOTE: The Default Account from which we fetch the Notifications is the Main Account. - -If we want to change the Default Account to any specific SubAccount , use the following method before Fetching the Notification(s) -.... - NotifactionList.SubAccountAccess(SubAccountSid); - NotificationList List = NotificationList.getList(); -.... ->>>>>>> 6f0540ae115c331fea5c5d11c53a855be46eb232 From 7a53c5ded546649933bf7de8cb79bf27ea5d5d1c Mon Sep 17 00:00:00 2001 From: Mithilesh Reddy Date: Thu, 29 Jun 2017 17:20:19 +0530 Subject: [PATCH 11/11] Final patch for Notification API, this fixes #4 --- restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc index 24ad209..fc03367 100644 --- a/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc +++ b/restcomm-connect.java.sdk/src/main/asciidoc/Notifications.adoc @@ -1,4 +1,4 @@ -<<<<<<< HEAD + = Restcomm JAVA Sdk - Notifications [[Notifications]]