-
- All Implemented Interfaces:
-
java.io.Serializable,org.acra.config.Configuration
public final class HttpSenderConfiguration implements ConfigurationHttp sender configuration
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanenabledprivate final Stringuriprivate final StringbasicAuthLoginprivate final StringbasicAuthPasswordprivate final HttpSender.MethodhttpMethodprivate final IntegerconnectionTimeoutprivate final IntegersocketTimeoutprivate final BooleandropReportsOnTimeoutprivate final Class<out KeyStoreFactory>keyStoreFactoryClassprivate final StringcertificatePathprivate final IntegerresCertificateprivate final StringcertificateTypeprivate final Booleancompressprivate final List<TLS>tlsProtocolsprivate final Map<String, String>httpHeaders
-
Constructor Summary
Constructors Constructor Description HttpSenderConfiguration(Boolean enabled, String uri, String basicAuthLogin, String basicAuthPassword, HttpSender.Method httpMethod, Integer connectionTimeout, Integer socketTimeout, Boolean dropReportsOnTimeout, Class<out KeyStoreFactory> keyStoreFactoryClass, String certificatePath, Integer resCertificate, String certificateType, Boolean compress, List<TLS> tlsProtocols, Map<String, String> httpHeaders)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()enables this plugin final StringgetUri()The Uri of your own server-side script that will receive reports. final StringgetBasicAuthLogin()you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication. final StringgetBasicAuthPassword()you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication. final HttpSender.MethodgetHttpMethod()The HttpSender.Method to be used when posting with uri. final IntegergetConnectionTimeout()timeout for server connection in milliseconds final IntegergetSocketTimeout()timeout for socket connection in milliseconds final BooleangetDropReportsOnTimeout()allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts final Class<out KeyStoreFactory>getKeyStoreFactoryClass()A custom class supplying a java.security.KeyStore, which will be used for ssl authentication. final StringgetCertificatePath()a certificate used for ssl authenticationMust start with "asset://" if the file is in the assets folder final IntegergetResCertificate()a certificate used for ssl authentication final StringgetCertificateType()type of the certificate used for ssl authentication, set in either certificatePath or resCertificate final BooleangetCompress()if the server request should be compressed using gzip final List<TLS>getTlsProtocols()TLS versions supported by the server. final Map<String, String>getHttpHeaders()custom HTTP headers to be sent by the provided org.acra.sender.HttpSender This should be used also by third party senders. Booleanenabled()-
-
Constructor Detail
-
HttpSenderConfiguration
HttpSenderConfiguration(Boolean enabled, String uri, String basicAuthLogin, String basicAuthPassword, HttpSender.Method httpMethod, Integer connectionTimeout, Integer socketTimeout, Boolean dropReportsOnTimeout, Class<out KeyStoreFactory> keyStoreFactoryClass, String certificatePath, Integer resCertificate, String certificateType, Boolean compress, List<TLS> tlsProtocols, Map<String, String> httpHeaders)
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
enables this plugin
-
getBasicAuthLogin
final String getBasicAuthLogin()
you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication.
-
getBasicAuthPassword
final String getBasicAuthPassword()
you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication.
-
getHttpMethod
final HttpSender.Method getHttpMethod()
The HttpSender.Method to be used when posting with uri.
-
getConnectionTimeout
final Integer getConnectionTimeout()
timeout for server connection in milliseconds
-
getSocketTimeout
final Integer getSocketTimeout()
timeout for socket connection in milliseconds
-
getDropReportsOnTimeout
final Boolean getDropReportsOnTimeout()
allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts
-
getKeyStoreFactoryClass
final Class<out KeyStoreFactory> getKeyStoreFactoryClass()
A custom class supplying a java.security.KeyStore, which will be used for ssl authentication. A base implementation is available: org.acra.security.BaseKeyStoreFactory
-
getCertificatePath
final String getCertificatePath()
a certificate used for ssl authentication
Must start with "asset://" if the file is in the assets folder
-
getResCertificate
final Integer getResCertificate()
a certificate used for ssl authentication
-
getCertificateType
final String getCertificateType()
type of the certificate used for ssl authentication, set in either certificatePath or resCertificate
-
getCompress
final Boolean getCompress()
if the server request should be compressed using gzip
-
getTlsProtocols
final List<TLS> getTlsProtocols()
TLS versions supported by the server.
This array has to contain at least one option supported on all android versions this runs on! ACRA will automatically remove unsupported versions on older devices.
Note: Older Android versions do not support all tls versions.
-
getHttpHeaders
final Map<String, String> getHttpHeaders()
custom HTTP headers to be sent by the provided org.acra.sender.HttpSender This should be used also by third party senders.
-
-
-
-