mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-21 01:15:50 +00:00
Don't hardcode supported STOMP versions but loop through StompVersions
This commit is contained in:
parent
5d95b8193e
commit
6199d4ee11
@ -379,7 +379,12 @@ class StompProtocolManager implements ProtocolManager<StompFrameInterceptor>, No
|
||||
|
||||
public String getSupportedVersionsAsString()
|
||||
{
|
||||
return "v" + StompVersions.V1_0 + " v" + StompVersions.V1_1 + " v" + StompVersions.V1_2;
|
||||
String versions = "";
|
||||
for (StompVersions version : StompVersions.values())
|
||||
{
|
||||
versions += " v" + version;
|
||||
}
|
||||
return versions.substring(1);
|
||||
}
|
||||
|
||||
public String getVirtualHostName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user