Class DestinationHelper
- java.lang.Object
-
- com.adaptris.core.util.DestinationHelper
-
public class DestinationHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DestinationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
consumeDestination(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.static java.lang.String
filterExpression(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.static void
logConsumeDestinationWarning(boolean alreadyLogged, LoggingHelper.WarningLoggedCallback callback, java.lang.String text, java.lang.Object... args)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.static void
logWarningIfNotNull(boolean alreadyLogged, LoggingHelper.WarningLoggedCallback callback, java.lang.Object d, java.lang.String text, java.lang.Object... args)
Deprecated.static void
mustHaveEither(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.static java.lang.String
resolveProduceDestination(java.lang.String configured, AdaptrisMessage msg)
Deprecated.just ms msg.resolve() instead.static java.lang.String
threadName(AdaptrisMessageListener listener)
Get the thread name.static java.lang.String
threadName(AdaptrisMessageListener listener, java.lang.String defaultName)
Get the thread name.
-
-
-
Method Detail
-
mustHaveEither
@Deprecated public static void mustHaveEither(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.
-
consumeDestination
@Deprecated public static java.lang.String consumeDestination(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.Get the configured consume destinationHelper method so that consume destinations can still be supported in-situ with string based configurations.
No longer accepts a legacy destination (as they no longer exists), but does perform any validity checks on
configured
.- Returns:
configured
.
-
filterExpression
@Deprecated public static java.lang.String filterExpression(java.lang.String configured)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.Get the configured consume destinationHelper method so that consume destinations can still be supported in-situ with string based configurations.
No longer accepts a legacy destination (as they no longer exists), but does perform any validity checks on
configured
.- Returns:
configured
.
-
threadName
public static java.lang.String threadName(AdaptrisMessageListener listener)
Get the thread name.Helper method so that consume destinations can still be supported in-situ with string based configurations.
No longer accepts a legacy destination (as they no longer exists), but does perform any validity checks on
listener
.- Returns:
listener#friendlyName()
.
-
threadName
public static java.lang.String threadName(AdaptrisMessageListener listener, java.lang.String defaultName)
Get the thread name.Helper method so that consume destinations can still be supported in-situ with string based configurations.
No longer accepts a legacy destination (as they no longer exists), but does perform any validity checks on
listener
.- Returns:
listener#friendlyName()
.
-
resolveProduceDestination
@Deprecated public static java.lang.String resolveProduceDestination(java.lang.String configured, AdaptrisMessage msg)
Deprecated.just ms msg.resolve() instead.Get the correct produce destination.Helper method so that produce destinations can still be supported in-situ with string based configurations.
- Returns:
legacy.getDestination(msg)
if legacy is non-null;msg.resolve(configured)
otherwise.
-
logConsumeDestinationWarning
@Deprecated public static void logConsumeDestinationWarning(boolean alreadyLogged, LoggingHelper.WarningLoggedCallback callback, java.lang.String text, java.lang.Object... args)
Deprecated.will be removed w/o warning since it has no meaning sincedestination
was removed.Log a warning if consume destination is not null.
-
logWarningIfNotNull
@Deprecated public static void logWarningIfNotNull(boolean alreadyLogged, LoggingHelper.WarningLoggedCallback callback, java.lang.Object d, java.lang.String text, java.lang.Object... args)
Deprecated.Log a warning if the supplied object is not null.Note that regardless of whether the object is null
LoggingHelper.WarningLoggedCallback.warningLogged()
is always executed since we have checked to see if we need to log a warning.
-
-