| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_API_ENDPOINT
If you don't set the url this is the URL that gets used.
|
| Constructor and Description |
|---|
PayloadSender()
Default constructor, sends to the public api endpoint.
|
PayloadSender(String url)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
RollbarResponse |
send(Payload payload)
Sends the json (rollbar payload) to the endpoint configured in the constructor.
|
void |
send(Payload payload,
RollbarResponseHandler handler)
Send the json payload, handle the response with an object
|
public static final String DEFAULT_API_ENDPOINT
public PayloadSender()
ArgumentNullException - if url is nullpublic PayloadSender(String url) throws ArgumentNullException, MalformedURLException
url - The Rollbar endpoint to POST items to.ArgumentNullException - if url is nullMalformedURLException - if url is not a valid URLpublic RollbarResponse send(Payload payload)
send in interface Senderpayload - the serialized JSON payloadRollbarResponsepublic void send(Payload payload, RollbarResponseHandler handler)
SenderCopyright © 2016. All rights reserved.