Skip to content

Commit 0d84969

Browse files
committed
Updating to latest
1 parent e236f1d commit 0d84969

13 files changed

+460
-344
lines changed

NotificationHubs/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.windowsazure</groupId>
55
<artifactId>Notification-Hubs-java-sdk</artifactId>
6-
<version>0.5.0</version>
6+
<version>1.0.0</version>
77
<name>Windows Azure Notification Hubs Java SDK</name>
88
<url>https://github.com/Azure/azure-notificationhubs-java-backend</url>
99
<description>Azure Notification Hubs Java SDK for interacting with the data and management plane operations.</description>
@@ -136,7 +136,7 @@
136136
<artifactId>maven-javadoc-plugin</artifactId>
137137
<version>3.3.0</version>
138138
<configuration>
139-
<show>private</show>
139+
<show>protected</show>
140140
<nohelp>true</nohelp>
141141
</configuration>
142142
</plugin>

NotificationHubs/src/com/windowsazure/messaging/AdmInstallation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class AdmInstallation extends Installation {
1111
* @param installationId The ID for the installation.
1212
*/
1313
public AdmInstallation(String installationId) {
14-
super(installationId, NotificationPlatform.Adm, null, null);
14+
super(installationId, NotificationPlatform.Adm, null, (String[])null);
1515
}
1616

1717
/**
@@ -28,6 +28,7 @@ public AdmInstallation(String installationId, String... tags) {
2828
* Creates a new instance of the AdmInstallation class.
2929
*
3030
* @param installationId The ID for the installation.
31+
* @param pushChannel The push channel for the installation.
3132
*/
3233
public AdmInstallation(String installationId, String pushChannel) {
3334
super(installationId, NotificationPlatform.Adm, pushChannel, (String[]) null);

NotificationHubs/src/com/windowsazure/messaging/AppleInstallation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class AppleInstallation extends Installation {
1111
* @param installationId The ID for the installation.
1212
*/
1313
public AppleInstallation(String installationId) {
14-
super(installationId, NotificationPlatform.Apns, null, null);
14+
super(installationId, NotificationPlatform.Apns, null, (String[])null);
1515
}
1616

1717
/**
@@ -28,6 +28,7 @@ public AppleInstallation(String installationId, String... tags) {
2828
* Creates a new instance of the AppleInstallation class.
2929
*
3030
* @param installationId The ID for the installation.
31+
* @param pushChannel The push channel for the installation.
3132
*/
3233
public AppleInstallation(String installationId, String pushChannel) {
3334
super(installationId, NotificationPlatform.Apns, pushChannel, (String[]) null);

NotificationHubs/src/com/windowsazure/messaging/BaiduInstallation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class BaiduInstallation extends Installation {
1111
* @param installationId The ID for the installation.
1212
*/
1313
public BaiduInstallation(String installationId) {
14-
super(installationId, NotificationPlatform.Baidu, null, null);
14+
super(installationId, NotificationPlatform.Baidu, null, (String[])null);
1515
}
1616

1717
/**
@@ -28,6 +28,7 @@ public BaiduInstallation(String installationId, String... tags) {
2828
* Creates a new instance of the BaiduInstallation class.
2929
*
3030
* @param installationId The ID for the installation.
31+
* @param pushChannel The push channel for the Baidu installation.
3132
*/
3233
public BaiduInstallation(String installationId, String pushChannel) {
3334
super(installationId, NotificationPlatform.Baidu, pushChannel, (String[]) null);

NotificationHubs/src/com/windowsazure/messaging/NamespaceManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void completed(final HttpResponse response) {
7272
try {
7373
int httpStatusCode = response.getStatusLine().getStatusCode();
7474
if (httpStatusCode != 200) {
75-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
75+
callback.failed(NotificationHubsException.create(response,
7676
httpStatusCode));
7777
return;
7878
}
@@ -132,7 +132,7 @@ public void completed(final HttpResponse response) {
132132
try {
133133
int httpStatusCode = response.getStatusLine().getStatusCode();
134134
if (httpStatusCode != 200) {
135-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
135+
callback.failed(NotificationHubsException.create(response,
136136
httpStatusCode));
137137
return;
138138
}
@@ -245,7 +245,7 @@ public void completed(final HttpResponse response) {
245245
try {
246246
int httpStatusCode = response.getStatusLine().getStatusCode();
247247
if (httpStatusCode != (isUpdate ? 200 : 201)) {
248-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
248+
callback.failed(NotificationHubsException.create(response,
249249
httpStatusCode));
250250
return;
251251
}
@@ -291,7 +291,7 @@ public void completed(final HttpResponse response) {
291291
try {
292292
int httpStatusCode = response.getStatusLine().getStatusCode();
293293
if (httpStatusCode != 200 && httpStatusCode != 404) {
294-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
294+
callback.failed(NotificationHubsException.create(response,
295295
httpStatusCode));
296296
return;
297297
}

NotificationHubs/src/com/windowsazure/messaging/NotificationHub.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void completed(final HttpResponse response) {
9999
try {
100100
int httpStatusCode = response.getStatusLine().getStatusCode();
101101
if (httpStatusCode != 200) {
102-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
102+
callback.failed(NotificationHubsException.create(response,
103103
httpStatusCode));
104104
return;
105105
}
@@ -164,7 +164,7 @@ public void completed(final HttpResponse response) {
164164
try {
165165
int httpStatusCode = response.getStatusLine().getStatusCode();
166166
if (httpStatusCode != 201) {
167-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
167+
callback.failed(NotificationHubsException.create(response,
168168
httpStatusCode));
169169
return;
170170
}
@@ -242,7 +242,7 @@ public void completed(final HttpResponse response) {
242242
try {
243243
int httpStatusCode = response.getStatusLine().getStatusCode();
244244
if (httpStatusCode != 200) {
245-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
245+
callback.failed(NotificationHubsException.create(response,
246246
httpStatusCode));
247247
return;
248248
}
@@ -314,7 +314,7 @@ public void completed(final HttpResponse response) {
314314
try {
315315
int httpStatusCode = response.getStatusLine().getStatusCode();
316316
if (httpStatusCode != 200) {
317-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
317+
callback.failed(NotificationHubsException.create(response,
318318
httpStatusCode));
319319
return;
320320
}
@@ -409,7 +409,7 @@ public void completed(final HttpResponse response) {
409409
try {
410410
int httpStatusCode = response.getStatusLine().getStatusCode();
411411
if (httpStatusCode != 200 && httpStatusCode != 404) {
412-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
412+
callback.failed(NotificationHubsException.create(response,
413413
httpStatusCode));
414414
return;
415415
}
@@ -471,7 +471,7 @@ public void completed(final HttpResponse response) {
471471
try {
472472
int httpStatusCode = response.getStatusLine().getStatusCode();
473473
if (httpStatusCode != 200) {
474-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
474+
callback.failed(NotificationHubsException.create(response,
475475
httpStatusCode));
476476
return;
477477
}
@@ -730,7 +730,7 @@ public void completed(final HttpResponse response) {
730730
try {
731731
int httpStatusCode = response.getStatusLine().getStatusCode();
732732
if (httpStatusCode != 200) {
733-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
733+
callback.failed(NotificationHubsException.create(response,
734734
httpStatusCode));
735735
return;
736736
}
@@ -972,7 +972,7 @@ public void completed(final HttpResponse response) {
972972
msg = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);
973973
}
974974
msg = "Error: " + response.getStatusLine() + " body: " + msg;
975-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response, httpStatusCode, msg));
975+
callback.failed(NotificationHubsException.create(response, httpStatusCode, msg));
976976
return;
977977
}
978978

@@ -1056,7 +1056,7 @@ public void completed(final HttpResponse response) {
10561056
try {
10571057
int httpStatusCode = response.getStatusLine().getStatusCode();
10581058
if (httpStatusCode != 200 && httpStatusCode != 404) {
1059-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1059+
callback.failed(NotificationHubsException.create(response,
10601060
httpStatusCode));
10611061
return;
10621062
}
@@ -1153,7 +1153,7 @@ public void completed(final HttpResponse response) {
11531153
msg = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);
11541154
}
11551155
msg = "Error: " + response.getStatusLine() + " body: " + msg;
1156-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response, httpStatusCode, msg));
1156+
callback.failed(NotificationHubsException.create(response, httpStatusCode, msg));
11571157
return;
11581158
}
11591159

@@ -1240,7 +1240,7 @@ public void completed(final HttpResponse response) {
12401240
msg = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);
12411241
}
12421242
msg = "Error: " + response.getStatusLine() + " body: " + msg;
1243-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response, httpStatusCode, msg));
1243+
callback.failed(NotificationHubsException.create(response, httpStatusCode, msg));
12441244
return;
12451245
}
12461246

@@ -1310,7 +1310,7 @@ public void completed(final HttpResponse response) {
13101310
try {
13111311
int httpStatusCode = response.getStatusLine().getStatusCode();
13121312
if (httpStatusCode != 200) {
1313-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1313+
callback.failed(NotificationHubsException.create(response,
13141314
httpStatusCode));
13151315
return;
13161316
}
@@ -1361,7 +1361,7 @@ public void completed(final HttpResponse response) {
13611361
try {
13621362
int httpStatusCode = response.getStatusLine().getStatusCode();
13631363
if (httpStatusCode != 200) {
1364-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1364+
callback.failed(NotificationHubsException.create(response,
13651365
httpStatusCode));
13661366
return;
13671367
}
@@ -1470,7 +1470,7 @@ public void completed(final HttpResponse response) {
14701470
try {
14711471
int httpStatusCode = response.getStatusLine().getStatusCode();
14721472
if (httpStatusCode != 200) {
1473-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1473+
callback.failed(NotificationHubsException.create(response,
14741474
httpStatusCode));
14751475
return;
14761476
}
@@ -1517,7 +1517,7 @@ public void completed(final HttpResponse response) {
15171517
try {
15181518
int httpStatusCode = response.getStatusLine().getStatusCode();
15191519
if (httpStatusCode != 204) {
1520-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1520+
callback.failed(NotificationHubsException.create(response,
15211521
httpStatusCode));
15221522
return;
15231523
}
@@ -1579,7 +1579,7 @@ public void completed(final HttpResponse response) {
15791579
try {
15801580
int httpStatusCode = response.getStatusLine().getStatusCode();
15811581
if (httpStatusCode != 200) {
1582-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1582+
callback.failed(NotificationHubsException.create(response,
15831583
httpStatusCode));
15841584
return;
15851585
}
@@ -1646,7 +1646,7 @@ public void completed(final HttpResponse response) {
16461646
try {
16471647
int httpStatusCode = response.getStatusLine().getStatusCode();
16481648
if (httpStatusCode != 201) {
1649-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1649+
callback.failed(NotificationHubsException.create(response,
16501650
httpStatusCode));
16511651
return;
16521652
}
@@ -1708,7 +1708,7 @@ public void completed(final HttpResponse response) {
17081708
try {
17091709
int httpStatusCode = response.getStatusLine().getStatusCode();
17101710
if (httpStatusCode != 200) {
1711-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1711+
callback.failed(NotificationHubsException.create(response,
17121712
httpStatusCode));
17131713
return;
17141714
}
@@ -1769,7 +1769,7 @@ public void completed(final HttpResponse response) {
17691769
try {
17701770
int httpStatusCode = response.getStatusLine().getStatusCode();
17711771
if (httpStatusCode != 200) {
1772-
callback.failed(NotificationHubsExceptionFactory.createNotificationHubException(response,
1772+
callback.failed(NotificationHubsException.create(response,
17731773
httpStatusCode));
17741774
return;
17751775
}

0 commit comments

Comments
 (0)