HttpSenderConfiguration

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

Http sender configuration

Author

F43nd1r

Since

01.06.2017

Constructors

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

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

Properties

Link copied to clipboard
val basicAuthLogin: String? = null

you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication.

Link copied to clipboard
val basicAuthPassword: String? = null

you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication.

Link copied to clipboard
val certificatePath: String? = null

a certificate used for ssl authentication

Link copied to clipboard
val certificateType: String

type of the certificate used for ssl authentication, set in either certificatePath or resCertificate

Link copied to clipboard
val compress: Boolean = false

if the server request should be compressed using gzip

Link copied to clipboard
val connectionTimeout: Int = 5000

timeout for server connection in milliseconds

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

Link copied to clipboard
val enabled: Boolean = true

enables this plugin

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.

Link copied to clipboard
val httpMethod: HttpSender.Method

The HttpSender.Method to be used when posting with uri.

Link copied to clipboard
val keyStoreFactoryClass: Class<out KeyStoreFactory>

A custom class supplying a java.security.KeyStore, which will be used for ssl authentication. A base implementation is available: org.acra.security.BaseKeyStoreFactory

Link copied to clipboard
val resCertificate: Int? = null

a certificate used for ssl authentication

Link copied to clipboard
val socketTimeout: Int = 20000

timeout for socket connection in milliseconds

Link copied to clipboard
val tlsProtocols: List<TLS>

TLS versions supported by the server.

Link copied to clipboard
val uri: String

The Uri of your own server-side script that will receive reports.