-
- All Implemented Interfaces:
-
org.acra.sender.ReportSender
public final class HttpSender implements ReportSenderCreate a new HttpSender instance with its destination taken from the supplied config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHttpSender.MethodAvailable HTTP methods to send data. Only POST and PUT are currently supported.
-
Constructor Summary
Constructors Constructor Description HttpSender(CoreConfiguration config, HttpSender.Method method, StringFormat type, String formUri)HttpSender(CoreConfiguration config, HttpSender.Method method, StringFormat type)
-
Method Summary
-
-
Constructor Detail
-
HttpSender
HttpSender(CoreConfiguration config, HttpSender.Method method, StringFormat type, String formUri)
- Parameters:
config- AcraConfig declaring themethod- HTTP Method to be used to send data.type- StringFormat of encoding used to send the report body.
-
HttpSender
HttpSender(CoreConfiguration config, HttpSender.Method method, StringFormat type)
- Parameters:
config- AcraConfig declaring themethod- HTTP Method to be used to send data.type- StringFormat of encoding used to send the report body.
-
-
Method Detail
-
setBasicAuth
final Unit setBasicAuth(String username, String password)
Set credentials for this HttpSender that override (if present) the ones set globally.
- Parameters:
username- The username to set for HTTP Basic Auth.password- The password to set for HTTP Basic Auth.
-
-
-
-