public class DxlUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DxlUtils.WildcardCallback
Callback that is invoked for each wildcard pattern found
|
Modifier and Type | Method and Description |
---|---|
static void |
iterateWildcards(DxlUtils.WildcardCallback cb,
java.lang.String topic)
Iterates the wildcards for the specified topic.
|
static void |
throwWrappedException(java.lang.String message,
java.lang.Exception ex)
Wraps the specified exception as a
DxlException with the specified message. |
public static void throwWrappedException(java.lang.String message, java.lang.Exception ex) throws DxlException
DxlException
with the specified message. If the incoming exception is
already a DxlException
, it is simply rethrown (no wrapping occurs).message
- The message for the exceptionex
- The exception to wrapDxlException
- If a DXL exception occurspublic static void iterateWildcards(DxlUtils.WildcardCallback cb, java.lang.String topic)
NOTE: This only supports "#" wildcards (not "+").
cb
- The callback to invoke for each wildcardtopic
- The topic