StompConnectHeadersBuilder

A temporary mutable representation of StompConnectHeaders to ease their construction (or copy with modification).

Properties

Link copied to clipboard
abstract override var acceptVersion: List<String>

A list of versions of the protocol supported by this client. By default, Krossbow sets what it supports, but this can be made more strict if desired.

Link copied to clipboard
abstract var contentLength: Int?

This header is an octet count for the length of the message body.

Link copied to clipboard
abstract var contentType: String?

If this header is set, its value MUST be a MIME type that describes the format of the body. Otherwise, the receiver SHOULD consider the body to be a binary blob.

Link copied to clipboard
abstract override var heartBeat: HeartBeat?

The heart-beating settings desired by the client.

Link copied to clipboard
abstract override var host: String?

The name of the host server to connect to.

Link copied to clipboard
abstract override var login: String?

An optional login to connect to the server.

Link copied to clipboard
abstract override var passcode: String?

An optional passcode to connect to the server.

Link copied to clipboard
abstract var receipt: String?

Any client frame other than CONNECT MAY specify a receipt header with an arbitrary value. This will cause the server to acknowledge the processing of the client frame with a RECEIPT frame.

Functions

Link copied to clipboard
abstract fun asMap(): Map<String, String>

Returns a Map view of these headers.

Link copied to clipboard

Creates a copy of these headers with the given transform applied.

Link copied to clipboard
abstract operator fun get(headerName: String): String?

Gets the header with the given headerName, or null if it's not present. Usually, headers should be accessed via type-safe properties, but this is useful to access custom headers.

Link copied to clipboard
abstract operator fun set(headerName: String, headerValue: String?)

Sets the header named headerName to the given headerValue.

Link copied to clipboard
abstract fun setAll(headers: Map<String, String>)

Sets all the given headers.