org.mule.util
Class StringMessageUtils
java.lang.Object
org.mule.util.StringMessageUtils
public final class StringMessageUtils
- extends Object
Useful methods for formatting message strings for logging or exceptions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_ELEMENTS
public static final int MAX_ELEMENTS
- See Also:
- Constant Field Values
DEFAULT_MESSAGE_WIDTH
public static final int DEFAULT_MESSAGE_WIDTH
- See Also:
- Constant Field Values
getFormattedMessage
public static String getFormattedMessage(String msg,
Object[] arguments)
getBoilerPlate
public static String getBoilerPlate(String message)
getBoilerPlate
public static String getBoilerPlate(String message,
char c,
int maxlength)
getBoilerPlate
public static String getBoilerPlate(List<String> messages,
char c,
int maxlength)
truncate
public static String truncate(String message,
int length,
boolean includeCount)
getBytes
public static byte[] getBytes(String string)
getString
public static String getString(byte[] bytes,
String encoding)
toString
public static String toString(Object o)
- See Also:
ArrayUtils.toString(Object, int)
,
CollectionUtils.toString(Collection, int)
,
MapUtils.toString(Map, boolean)
headersToString
public static String headersToString(MuleMessage m)
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.