Configuration
class Configuration
CallId feature’s configuration
Constructors
Configuration() CallId feature’s configuration |
Functions
fun generate(block: CallIdProvider): Unit block function will be applied when there is no call id retrieved. It should generate a string to be used
as call id or |
|
Setup retrieve/reply cycle via HTTP request and response headers headerName. Identical to retrieveFromHeader and replyToHeader invocations with the same headerName |
|
fun reply( Replies with retrieved or generated callId. Usually replyToHeader could be used instead. |
|
Replies retrieved or generated callId using HTTP response header headerName |
|
fun retrieve(block: CallIdProvider): Unit block will be used to retrieve call id from a call. It should return |
|
Fetch call id from a request header named headerName that is treated as optional |
|
fun verify(predicate: CallIdVerifier): Unit Verify retrieved or generated call ids using the specified predicate. Should return Verify retrieved or generated call ids against the specified dictionary.
Rejects an ApplicationCall if reject is |
Extension Functions
fun Configuration.generate( Generates fixed length call ids using the specified dictionary. Please note that this function generates pseudo-random identifiers via regular java.util.Random and should not be considered as cryptographically secure. Also note that you should use the same dictionary for CallIdVerifier otherwise a generated call id could be discarded or may lead to complete call rejection. |