HttpSenderConfigurationBuilder

class HttpSenderConfigurationBuilder(arg0: Context) : ConfigurationBuilder

Class generated based on AcraHttpSender (Jul 23, 2021 6:23:01 PM)

Constructors

HttpSenderConfigurationBuilder
Link copied to clipboard
fun HttpSenderConfigurationBuilder(arg0: Context)

Functions

build
Link copied to clipboard
open override fun build(): HttpSenderConfiguration
httpHeaders
Link copied to clipboard
@NotNull()
fun httpHeaders(): Map<String, String>
setHttpHeaders
Link copied to clipboard
fun setHttpHeaders(headers: Map<String, String>): HttpSenderConfigurationBuilder
Set custom HTTP headers to be sent by the provided org.acra.sender.HttpSender This should be used also by third party senders.
withBasicAuthLogin
Link copied to clipboard
fun withBasicAuthLogin(basicAuthLogin: String): HttpSenderConfigurationBuilder
you can set here and in {@link org.acra.annotation.AcraHttpSender#basicAuthPassword()} the credentials for a BASIC HTTP authentication.
withBasicAuthPassword
Link copied to clipboard
fun withBasicAuthPassword(basicAuthPassword: String): HttpSenderConfigurationBuilder
you can set here and in {@link org.acra.annotation.AcraHttpSender#basicAuthLogin()} the credentials for a BASIC HTTP authentication.
withCertificatePath
Link copied to clipboard
fun withCertificatePath(certificatePath: String): HttpSenderConfigurationBuilder
a certificate used for ssl authentication
withCertificateType
Link copied to clipboard
fun withCertificateType(certificateType: String): HttpSenderConfigurationBuilder
type of the certificate used for ssl authentication
withCompress
Link copied to clipboard
fun withCompress(compress: Boolean): HttpSenderConfigurationBuilder
if the server request should be compressed using gzip
withConnectionTimeout
Link copied to clipboard
fun withConnectionTimeout(connectionTimeout: Int): HttpSenderConfigurationBuilder
timeout for server connection
withDropReportsOnTimeout
Link copied to clipboard
fun withDropReportsOnTimeout(dropReportsOnTimeout: Boolean): HttpSenderConfigurationBuilder
allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts
withEnabled
Link copied to clipboard
fun withEnabled(enabled: Boolean): HttpSenderConfigurationBuilder
withHttpMethod
Link copied to clipboard
fun withHttpMethod(httpMethod: HttpSender.Method): HttpSenderConfigurationBuilder

The {@link HttpSender.Method} to be used when posting with {@link org.acra.annotation.AcraHttpSender#uri()} .

withKeyStoreFactoryClass
Link copied to clipboard
fun withKeyStoreFactoryClass(keyStoreFactoryClass: Class<out KeyStoreFactory>): HttpSenderConfigurationBuilder
A custom class supplying a {@link java.security.KeyStore}, which will be used for ssl authentication.
withResCertificate
Link copied to clipboard
fun withResCertificate(@RawRes() resCertificate: Int): HttpSenderConfigurationBuilder
a certificate used for ssl authentication
withSocketTimeout
Link copied to clipboard
fun withSocketTimeout(socketTimeout: Int): HttpSenderConfigurationBuilder
timeout for socket connection
withTlsProtocols
Link copied to clipboard
fun withTlsProtocols(vararg tlsProtocols: TLS): HttpSenderConfigurationBuilder
Note: Older Android versions do not support all tls versions.
withUri
Link copied to clipboard
fun withUri(uri: String): HttpSenderConfigurationBuilder
The Uri of your own server-side script that will receive reports.

Properties

basicAuthLogin
Link copied to clipboard
var basicAuthLogin: String
you can set here and in {@link org.acra.annotation.AcraHttpSender#basicAuthPassword()} the credentials for a BASIC HTTP authentication.
basicAuthPassword
Link copied to clipboard
var basicAuthPassword: String
you can set here and in {@link org.acra.annotation.AcraHttpSender#basicAuthLogin()} the credentials for a BASIC HTTP authentication.
certificatePath
Link copied to clipboard
var certificatePath: String
a certificate used for ssl authentication
certificateType
Link copied to clipboard
var certificateType: String
type of the certificate used for ssl authentication
compress
Link copied to clipboard
var compress: Boolean
if the server request should be compressed using gzip
connectionTimeout
Link copied to clipboard
var connectionTimeout: Int
timeout for server connection
context
Link copied to clipboard
var context: Context
delegate
Link copied to clipboard
var delegate: BaseHttpConfigurationBuilder
dropReportsOnTimeout
Link copied to clipboard
var dropReportsOnTimeout: Boolean
allows to prevent resending of timed out reports, possibly relieving server stress, but also reducing received report counts
enabled
Link copied to clipboard
var enabled: Boolean
httpMethod
Link copied to clipboard
var httpMethod: HttpSender.Method

The {@link HttpSender.Method} to be used when posting with {@link org.acra.annotation.AcraHttpSender#uri()} .

keyStoreFactoryClass
Link copied to clipboard
var keyStoreFactoryClass: Class<out KeyStoreFactory>
A custom class supplying a {@link java.security.KeyStore}, which will be used for ssl authentication.
resCertificate
Link copied to clipboard
var resCertificate: Int
a certificate used for ssl authentication
socketTimeout
Link copied to clipboard
var socketTimeout: Int
timeout for socket connection
tlsProtocols
Link copied to clipboard
var tlsProtocols: Array<out TLS>
Note: Older Android versions do not support all tls versions.
uri
Link copied to clipboard
var uri: String
The Uri of your own server-side script that will receive reports.