com.ziqni.admin.sdk.streaming.stomp.StompCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* Copyright (c) 2024. ZIQNI LTD registered in England and Wales, company registration number-09693684
*/
package com.ziqni.admin.sdk.streaming.stomp;
public enum StompCommand {
CONNECT,
CONNECTED,
SEND,
SUBSCRIBE,
UNSUBSCRIBE,
ACK,
NACK,
BEGIN,
COMMIT,
ABORT,
DISCONNECT,
MESSAGE,
RECEIPT,
ERROR,
NOT_A_VALID_STOMP_COMMAND; // This is a special command used to indicate that the command is not a valid STOMP command
public static StompCommand fromString(String command) {
try {
return StompCommand.valueOf(command.trim().toUpperCase());
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Unknown STOMP command: " + command);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy