Common Lisp Package: CL-STOMP

README:

FUNCTION

Public

Undocumented

MAKE-CONNECTION (HOST PORT &KEY (KEY-MAPPING-STRATEGY 'PASS-THROUGH-KEY-MAPPING-STRATEGY))

Private

DESTINATION= (ACTUAL REGISTERED)

Returns T if the REGISTERED destination matches the ACTUAL destination.

HEADER= (HEADER1 HEADER2)

Case insensitive comparison function for headers.

MAKE-FRAME-FROM-STRING (STRING CONNECTION)

Construct a frame by parsing STRING according to the STOMP protocol.

STRING-LEFT-STRIP (STRING)

Remove spaces, tabs and line enders from the beginning of a string.

STRING-SPLIT (STRING DELIM)

Splits STRING at the first occurrence of DELIM and returns the substrings before and after it. If DELIM is not found in STRING, returns STRING and NIL.

STRING-STRIP (STRING)

Remove spaces, tabs and line enders from both ends of a string.

Undocumented

LOG-DEBUG (FMT &REST ARGS)

STRING-REPLACE (SEARCH REPLACE STRING)

MACRO

Private

Undocumented

SENDING-FRAME ((CONNECTION VFRAME NAME &REST HEADERS) &BODY BODY)

GENERIC-FUNCTION

Public

ACK (CONNECTION FRAME &OPTIONAL TRANSACTION)

Send the client an ACK for frame.

BEGIN (CONNECTION TRANSACTION)

Start a transaction with the given name.

COMMIT (CONNECTION TRANSACTION)

Commit a transaction with the given name.

GET-DESTINATION (FRAME)

Return the destination header for FRAME.

GET-HEADER (FRAME KEY)

Return the value of the header named KEY, or NIL if it doesn't exist.

POST (CONNECTION MESSAGE DESTINATION &OPTIONAL HEADERS)

Post a message to a destination. HEADERS is an alist of header name and value pairs.

REGISTER (CONNECTION CALLBACK DESTINATION &KEY SELECTOR ID CLIENT-ACK?)

Register a listener for messages to a destination. CALLBACK should be a function which accepts a frame argument. SELECTOR can be used to provide an SQL 92 selector for filtering messages. An ID may be given for later use with UNREGISTER-ID to support overlapping subscriptions using selectors with the same destination. If CLIENT-ACK? is T, the client is responsible for sending ACK.

REGISTER-ERROR (CONNECTION CALLBACK)

Register a listener for STOMP error frames.

ROLLBACK (CONNECTION TRANSACTION)

Abort a transaction with the given name.

SET-DESTINATION (FRAME DESTINATION)

Set the destination header for FRAME.

SET-HEADER (FRAME KEY VALUE)

Add a header named KEY to FRAME with VALUE. If the header already exists, VALUE replaces the existing value.

START (CONNECTION &KEY USERNAME PASSCODE)

Start listening for messages from STOMP.

STOP (CONNECTION)

Stop the connection with STOMP.

SUBSCRIBE (CONNECTION DESTINATION &KEY SELECTOR ID CLIENT-ACK?)

Subscribe to a topic or queue. SELECTOR can be used to provide an SQL 92 selector for filtering messages. An ID may be given for later use with UNSUBSCRIBE-ID to support overlapping subscriptions using selectors with the same destination.

UNREGISTER-ID (CONNECTION ID)

Unregister a callback by id.

UNSUBSCRIBE (CONNECTION DESTINATION)

Unsubscribe from a topic or queue by name. Unsubscribing does not unregister any callbacks.

UNSUBSCRIBE-ID (CONNECTION ID)

Unsubscribe from a topic or queue by id. Unsubscribing does not unregister any callbacks.

Private

Undocumented

APPLY-CALLBACKS (CONN FRAME)

CONNECT (CONN &OPTIONAL USERNAME PASSCODE)

DEMANGLE-KEY (STRATEGY KEY)

DISCONNECT (CONN)

ERROR-FRAME-P (FRAME)

GET-SUBSCRIPTION (FRAME)

MANGLE-KEY (STRATEGY KEY)

PROCESS-RECEIVE-BUFFER (CONN BUFFER)

RECEIVE (CONN)

RENDER-FRAME (FRAME CONNECTION)

SEND (CONN FRAME)

SET-CLIENT-ACK (FRAME)

SET-ID (FRAME ID)

SET-SELECTOR (FRAME SELECTOR)

SLOT-ACCESSOR

Public

Undocumented

FRAME-BODY (OBJECT)

SETFFRAME-BODY (NEW-VALUE OBJECT)

FRAME-HEADERS (OBJECT)

SETFFRAME-HEADERS (NEW-VALUE OBJECT)

FRAME-NAME (OBJECT)

SETFFRAME-NAME (NEW-VALUE OBJECT)

VARIABLE

Private

Undocumented

*REPLACEMENT-PAIRS*

CLASS

Public

Undocumented

AMQ-KEY-MAPPING-STRATEGY

FRAME

PASS-THROUGH-KEY-MAPPING-STRATEGY

Private

Undocumented

CONNECTION

REGISTRATION