Package-level declarations

Types

Link copied to clipboard

Represents possible values for the ack header.

Link copied to clipboard

Declarations annotated with this annotation are unstable and may be changed or removed at any time without a major version bump.

Link copied to clipboard

All STOMP header names constants.

Link copied to clipboard
class InvalidAckHeaderException(val invalidText: String) : Exception

An exception thrown when an unknown value of AckMode is found in an ack header.

Link copied to clipboard
class InvalidEscapeException(val invalidSequence: String, message: String = "Invalid header escape sequence '") : IllegalArgumentException
Link copied to clipboard
class InvalidServerHeaderException(message: String, val invalidText: String) : Exception

An exception thrown when an invalid value is found in a server header. Such values must be of the form name ["/" version] *(comment).

Link copied to clipboard
data class ServerInfo(val name: String, val version: String?, val comments: List<String> = emptyList())

Represents information about the STOMP server.

Link copied to clipboard

The headers of a StompFrame.Abort frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Ack frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Begin frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Commit frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Connected frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Connect frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Disconnect frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Error frame.

Link copied to clipboard

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

Link copied to clipboard
sealed interface StompHeaders

The headers of a STOMP frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Message frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Nack frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Receipt frame.

Link copied to clipboard

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

Link copied to clipboard
sealed interface StompSendHeaders : StompHeaders

The headers of a StompFrame.Send frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Subscribe frame.

Link copied to clipboard

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

Link copied to clipboard

The headers of a StompFrame.Unsubscribe frame.

Link copied to clipboard

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

Functions

Link copied to clipboard

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

Link copied to clipboard
fun StompAbortHeaders(transaction: String, configure: StompAbortHeadersBuilder.() -> Unit = {}): StompAbortHeaders

Creates an instance of StompAbortHeaders with the given transaction header. Extra headers can be configured using the configure lambda.

Link copied to clipboard

Creates an instance of StompAckHeaders with the given id header. Optional headers can be configured using the configure lambda.

fun StompAckHeaders(id: String, transaction: String? = null): StompAckHeaders
Link copied to clipboard
fun StompBeginHeaders(transaction: String, configure: StompBeginHeadersBuilder.() -> Unit = {}): StompBeginHeaders

Creates an instance of StompBeginHeaders with the given transaction header. Extra headers can be configured using the configure lambda.

Link copied to clipboard

Creates an instance of StompCommitHeaders with the given transaction header. Extra headers can be configured using the configure lambda.

Link copied to clipboard

Creates an instance of StompConnectedHeaders. All headers are optional and can be configured using the configure lambda.

fun StompConnectedHeaders(version: String = "1.2", session: String? = null, server: String? = null, heartBeat: HeartBeat? = null): StompConnectedHeaders
Link copied to clipboard

Creates an instance of StompConnectHeaders with the given host header. Optional headers can be configured using the configure lambda.

fun StompConnectHeaders(host: String?, acceptVersion: List<String> = StompVersion.preferredOrder.map { it.headerValue }, login: String? = null, passcode: String? = null, heartBeat: HeartBeat? = null, customHeaders: Map<String, String> = emptyMap()): StompConnectHeaders
Link copied to clipboard

Creates an instance of StompDisconnectHeaders. Extra headers can be configured using the configure lambda.

Link copied to clipboard

Creates an instance of StompErrorHeaders. All headers are optional and can be configured using the configure lambda.

fun StompErrorHeaders(message: String? = null, receiptId: String? = null, customHeaders: Map<String, String> = emptyMap()): StompErrorHeaders
Link copied to clipboard
fun StompMessageHeaders(destination: String, messageId: String, subscription: String, configure: StompMessageHeadersBuilder.() -> Unit = {}): StompMessageHeaders

Creates an instance of StompMessageHeaders with the given destination, messageId, and subscription. Optional headers can be configured using the configure lambda.

fun StompMessageHeaders(destination: String, messageId: String, subscription: String, ack: String? = null, customHeaders: Map<String, String> = emptyMap()): StompMessageHeaders
Link copied to clipboard

Creates an instance of StompNackHeaders with the given id header. Optional headers can be configured using the configure lambda.

fun StompNackHeaders(id: String, transaction: String? = null): StompNackHeaders
Link copied to clipboard

Creates an instance of StompReceiptHeaders with the given receiptId header. Extra headers can be configured using the configure lambda.

Link copied to clipboard
fun StompSendHeaders(destination: String, configure: StompSendHeadersBuilder.() -> Unit = {}): StompSendHeaders

Creates an instance of StompSendHeaders with the given destination. Optional headers can be configured using the configure lambda.

fun StompSendHeaders(destination: String, transaction: String? = null, receipt: String? = null, customHeaders: Map<String, String> = emptyMap()): StompSendHeaders
Link copied to clipboard

Creates an instance of StompSubscribeHeaders with the given destination header. Optional headers can be configured using the configure lambda.

fun StompSubscribeHeaders(destination: String, id: String? = null, ack: AckMode = AckMode.AUTO, receipt: String? = null, customHeaders: Map<String, String> = emptyMap()): StompSubscribeHeaders
Link copied to clipboard

Creates an instance of StompUnsubscribeHeaders with the given id header. Extra headers can be configured using the configure lambda.