Class PrefixUtil
- java.lang.Object
-
- org.apache.activemq.artemis.utils.PrefixUtil
-
public class PrefixUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PrefixUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleStringgetAddress(SimpleString address, Map<SimpleString,RoutingType> prefixes)static Pair<SimpleString,EnumSet<RoutingType>>getAddressAndRoutingTypes(SimpleString address, EnumSet<RoutingType> defaultRoutingTypes, Map<SimpleString,RoutingType> prefixes)static SimpleStringgetPrefix(SimpleString address, Map<SimpleString,RoutingType> prefixes)static StringgetURIPrefix(String address)This will treat a prefix on the uri-type of queue://, topic://, temporaryTopic://, temporaryQueue.static StringremoveAddress(String string, String prefix)static SimpleStringremoveAddress(SimpleString string, SimpleString prefix)static StringremovePrefix(String string, String prefix)static SimpleStringremovePrefix(SimpleString string, SimpleString prefix)
-
-
-
Method Detail
-
getAddressAndRoutingTypes
public static Pair<SimpleString,EnumSet<RoutingType>> getAddressAndRoutingTypes(SimpleString address, EnumSet<RoutingType> defaultRoutingTypes, Map<SimpleString,RoutingType> prefixes)
-
getAddress
public static SimpleString getAddress(SimpleString address, Map<SimpleString,RoutingType> prefixes)
-
getPrefix
public static SimpleString getPrefix(SimpleString address, Map<SimpleString,RoutingType> prefixes)
-
removePrefix
public static SimpleString removePrefix(SimpleString string, SimpleString prefix)
-
removeAddress
public static SimpleString removeAddress(SimpleString string, SimpleString prefix)
-
-