Skip to content

Commit 6ea0d37

Browse files
Merge pull request #97 from bugsnag/delivery-visibility
Make constructors public for SyncHttpDelivery
2 parents 0b97a64 + b7edde5 commit 6ea0d37

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* Add null check when disconnecting HttpUrlConnection
66
[#92](https://github.com/bugsnag/bugsnag-java/pull/92)
77

8+
* Make constructors public for SyncHttpDelivery
9+
[#97](https://github.com/bugsnag/bugsnag-java/pull/97)
10+
811
## 3.2.0 (2018-07-03)
912

1013
This release introduces automatic tracking of sessions, which by

src/main/java/com/bugsnag/delivery/SyncHttpDelivery.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,21 @@ public class SyncHttpDelivery implements HttpDelivery {
2222
public static final String DEFAULT_SESSION_ENDPOINT = "https://sessions.bugsnag.com";
2323
protected static final int DEFAULT_TIMEOUT = 5000;
2424

25-
protected String endpoint = DEFAULT_NOTIFY_ENDPOINT;
25+
protected String endpoint;
2626
protected int timeout = DEFAULT_TIMEOUT;
2727
protected Proxy proxy;
2828

29-
SyncHttpDelivery(String endpoint) {
29+
/**
30+
* Creates a new instance, which defaults to the https://notify.bugsnag.com endpoint
31+
*/
32+
public SyncHttpDelivery() {
33+
this(SyncHttpDelivery.DEFAULT_NOTIFY_ENDPOINT);
34+
}
35+
36+
/**
37+
* Creates a new instance, which uses a custom endpoint
38+
*/
39+
public SyncHttpDelivery(String endpoint) {
3040
this.endpoint = endpoint;
3141
}
3242

0 commit comments

Comments
 (0)