File tree Expand file tree Collapse file tree
src/main/java/com/bugsnag/delivery Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1013This release introduces automatic tracking of sessions, which by
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments