StompUnsubscribeHeadersBuilder

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

Properties

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 id: String

The ID of the subscription to unsubscribe from.

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.