public class PermissionTopicMatcher extends Object implements TopicMatcher
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String permissionTopic,
String actualTopic)
Evaluates if a topic matches a specific topic which also can contain wildcards.
|
boolean |
matches(String permissionTopic,
String[] splitPermissionTopic,
boolean nonWildCard,
boolean endsWithWildCard,
boolean rootWildCard,
String actualTopic,
String[] splitActualTopic) |
public boolean matches(String permissionTopic, String actualTopic) throws InvalidTopicException
TopicMatchermatches in interface TopicMatcherpermissionTopic - the subscription. May contain wildcardsactualTopic - the actual topic. Must not contain wildcardstrue if a topic matches a specific subscription, false otherwiseInvalidTopicException - if the topic was invalidpublic boolean matches(String permissionTopic, String[] splitPermissionTopic, boolean nonWildCard, boolean endsWithWildCard, boolean rootWildCard, String actualTopic, String[] splitActualTopic) throws InvalidTopicException
InvalidTopicExceptionCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.