HttpSenderConfiguration

class HttpSenderConfiguration(enabled: Boolean, uri: String, basicAuthLogin: String?, basicAuthPassword: String?, httpMethod: HttpSender.Method, connectionTimeout: Int, socketTimeout: Int, dropReportsOnTimeout: Boolean, keyStoreFactoryClass: Class<out KeyStoreFactory>, certificatePath: String?, @RawRes() resCertificate: Int?, certificateType: String, compress: Boolean, tlsProtocols: List<TLS>, httpHeaders: Map<String, String>) : Configuration

Http sender configuration

Author

F43nd1r

Since

01.06.2017

Constructors

HttpSenderConfiguration
Link copied to clipboard
fun HttpSenderConfiguration(enabled: Boolean = true, uri: String, basicAuthLogin: String? = null, basicAuthPassword: String? = null, httpMethod: HttpSender.Method = HttpSender.Method.POST, connectionTimeout: Int = 5000, socketTimeout: Int = 20000, dropReportsOnTimeout: Boolean = false, keyStoreFactoryClass: Class<out KeyStoreFactory> = NoKeyStoreFactory::class.java, certificatePath: String? = null, @RawRes() resCertificate: Int? = null, certificateType: String = "X.509", compress: Boolean = false, tlsProtocols: List<TLS> = listOf(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1), httpHeaders: Map<String, String> = emptyMap())

Functions

enabled
Link copied to clipboard
open override fun enabled(): Boolean

Properties

basicAuthLogin
Link copied to clipboard
val basicAuthLogin: String? = null
you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication.
basicAuthPassword
Link copied to clipboard
val basicAuthPassword: String? = null
you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication.
certificatePath
Link copied to clipboard
val certificatePath: String? = null
a certificate used for ssl authenticationMust start with "asset://" if the file is in the assets folder
certificateType
Link copied to clipboard
val certificateType: String
type of the certificate used for ssl authentication, set in either certificatePath or resCertificate
compress
Link copied to clipboard
val compress: Boolean = false
if the server request should be compressed using gzip
connectionTimeout
Link copied to clipboard
val connectionTimeout: Int = 5000
timeout for server connection in milliseconds
dropReportsOnTimeout
Link copied to clipboard
val dropReportsOnTimeout: Boolean = false
allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts
enabled
Link copied to clipboard
val enabled: Boolean = true
enables this plugin
httpHeaders
Link copied to clipboard
val httpHeaders: Map<String, String>
custom HTTP headers to be sent by the provided org.acra.sender.HttpSender This should be used also by third party senders.
httpMethod
Link copied to clipboard
val httpMethod: HttpSender.Method
The HttpSender.Method to be used when posting with uri.
keyStoreFactoryClass
Link copied to clipboard
val keyStoreFactoryClass: Class<out KeyStoreFactory>
A custom class supplying a java.security.KeyStore, which will be used for ssl authentication.
resCertificate
Link copied to clipboard
val resCertificate: Int? = null
a certificate used for ssl authentication
socketTimeout
Link copied to clipboard
val socketTimeout: Int = 20000
timeout for socket connection in milliseconds
tlsProtocols
Link copied to clipboard
val tlsProtocols: List<TLS>
TLS versions supported by the server.
uri
Link copied to clipboard
val uri: String
The Uri of your own server-side script that will receive reports.