@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface AcraHttpSender
| Modifier and Type | Required Element and Description |
|---|---|
HttpSender.Method |
httpMethod
The
HttpSender.Method to be used when posting with uri() . |
String |
uri
The Uri of your own server-side script that will receive reports.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
basicAuthLogin
you can set here and in
basicAuthPassword() the credentials for a BASIC HTTP authentication. |
String |
basicAuthPassword
you can set here and in
basicAuthLogin() the credentials for a BASIC HTTP authentication. |
String |
certificatePath
a certificate used for ssl authentication
|
String |
certificateType
type of the certificate used for ssl authentication
|
boolean |
compress
if the server request should be compressed using gzip
|
int |
connectionTimeout
timeout for server connection
|
boolean |
dropReportsOnTimeout
allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts
|
Class<? extends KeyStoreFactory> |
keyStoreFactoryClass
A custom class supplying a
KeyStore, which will be used for ssl authentication. |
int |
resCertificate
a certificate used for ssl authentication
|
int |
socketTimeout
timeout for socket connection
|
@NonNull public abstract String uri
@NonNull public abstract HttpSender.Method httpMethod
The HttpSender.Method to be used when posting with uri() .
@NonNull public abstract String basicAuthLogin
basicAuthPassword() the credentials for a BASIC HTTP authentication.@NonNull public abstract String basicAuthPassword
basicAuthLogin() the credentials for a BASIC HTTP authentication.public abstract int connectionTimeout
URLConnection.setConnectTimeout(int)public abstract int socketTimeout
URLConnection.setReadTimeout(int)public abstract boolean dropReportsOnTimeout
@NonNull public abstract Class<? extends KeyStoreFactory> keyStoreFactoryClass
KeyStore, which will be used for ssl authentication.
A base implementation is available: BaseKeyStoreFactory@NonNull public abstract String certificatePath
@RawRes public abstract int resCertificate
@NonNull public abstract String certificateType
certificatePath() or resCertificate()