Class MessageReference
java.lang.Object
io.github.springwolf.asyncapi.v3.model.channel.message.MessageReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractRefName(String ref) getRef()Required.static MessageReferencetoChannelMessage(String channelId, MessageObject message) static MessageReferencetoChannelMessage(String channelId, String messageId) static MessageReferencetoComponentMessage(MessageObject message) Convenient Builder to create a Message reference to an existing Messagestatic MessageReferencetoComponentMessage(String messageId) static MessageReference
-
Constructor Details
-
MessageReference
public MessageReference()
-
-
Method Details
-
getRef
Description copied from interface:ReferenceRequired. The reference string. -
toComponentMessage
Convenient Builder to create a Message reference to an existing Message- Parameters:
message- Message to create the reference to. This Message MUST have a 'messageId' field- Returns:
- a Message with the 'ref' field pointing to "#/components/messages/{messageId}"
-
toComponentMessage
-
toChannelMessage
-
toChannelMessage
-
toSchema
-
extractRefName
-