public class SyncHttpDelivery extends java.lang.Object implements HttpDelivery
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_NOTIFY_ENDPOINT |
static java.lang.String |
DEFAULT_SESSION_ENDPOINT |
protected static int |
DEFAULT_TIMEOUT |
protected java.lang.String |
endpoint |
protected java.net.Proxy |
proxy |
protected int |
timeout |
| Constructor and Description |
|---|
SyncHttpDelivery()
Creates a new instance, which defaults to the https://notify.bugsnag.com endpoint
|
SyncHttpDelivery(java.lang.String endpoint)
Creates a new instance, which uses a custom endpoint
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any open connections to Bugsnag.
|
void |
deliver(Serializer serializer,
java.lang.Object object,
java.util.Map<java.lang.String,java.lang.String> headers)
Deliver the object using the serializer.
|
void |
setEndpoint(java.lang.String endpoint)
Set the HTTP endpoint to deliver to.
|
void |
setProxy(java.net.Proxy proxy)
The proxy to use.
|
void |
setTimeout(int timeout)
The timeout to use.
|
public static final java.lang.String DEFAULT_NOTIFY_ENDPOINT
public static final java.lang.String DEFAULT_SESSION_ENDPOINT
protected static final int DEFAULT_TIMEOUT
protected java.lang.String endpoint
protected int timeout
protected java.net.Proxy proxy
public SyncHttpDelivery()
public SyncHttpDelivery(java.lang.String endpoint)
public void setEndpoint(java.lang.String endpoint)
HttpDeliverysetEndpoint in interface HttpDeliveryendpoint - the endpoint, for example https://notify.bugsnag.compublic void setProxy(java.net.Proxy proxy)
HttpDeliverysetProxy in interface HttpDeliveryproxy - the proxy for the delivery attempt.public void setTimeout(int timeout)
HttpDeliverysetTimeout in interface HttpDeliverytimeout - the timeout for a delivery attempt.public void deliver(Serializer serializer, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> headers)
Delivery