Package org.apache.axiom.om.util
Class CommonUtils
- java.lang.Object
-
- org.apache.axiom.om.util.CommonUtils
-
public class CommonUtils extends Object
Deprecated.Common Utilities
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
callStackToString()
Deprecated.Get a string containing the stack of the current locationstatic boolean
isTextualPart(String contentType)
Deprecated.UseContentType.isTextual()
instead.static long
logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log)
Deprecated.Writes the om to a log.debug.static long
logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log, int limit)
Deprecated.Writes the om to a log.debug.static long
logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log, int limit, org.apache.axiom.om.OMOutputFormat format)
Deprecated.Writes the om to a log.debug.static String
replace(String name, String oldT, String newT)
Deprecated.replace: Like String.replace except that the old and new items are strings.static String
stackToString(Throwable e)
Deprecated.Get a string containing the stack of the specified exception
-
-
-
Method Detail
-
replace
public static final String replace(String name, String oldT, String newT)
Deprecated.replace: Like String.replace except that the old and new items are strings.- Parameters:
name
- stringoldT
- old text to replacenewT
- new text to use- Returns:
- replacement string
-
callStackToString
public static String callStackToString()
Deprecated.Get a string containing the stack of the current location- Returns:
- String
-
stackToString
public static String stackToString(Throwable e)
Deprecated.Get a string containing the stack of the specified exception- Parameters:
e
-- Returns:
- TODO
-
logDebug
public static long logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log)
Deprecated.Writes the om to a log.debug. This method assumes optimized mtom attachments Also calculates the length of the message.- Parameters:
om
- OMElementlog
- Log- Returns:
- length of entire message
-
logDebug
public static long logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log, int limit)
Deprecated.Writes the om to a log.debug. This method assumes optimized mtom attachments Also calculates the length of the message.- Parameters:
om
- OMElementlog
- Loglimit
- limit of message to write- Returns:
- length of entire message
-
logDebug
public static long logDebug(org.apache.axiom.om.OMElement om, org.apache.commons.logging.Log log, int limit, org.apache.axiom.om.OMOutputFormat format)
Deprecated.Writes the om to a log.debug. Also calculates the length of the message.- Parameters:
om
- OMElementlog
- Loglimit
- limit of message to writeformat
- OMOutputFormat- Returns:
- length of entire message
-
isTextualPart
public static boolean isTextualPart(String contentType)
Deprecated.UseContentType.isTextual()
instead.A "textual part" has one or more of the following criteria 1) a content-type that start with "text" "application/xml" or "application/soap" 2) has a charset parameter on the content-type. Example: An part with a content-type of "image/gif" is a non-textual attachment. An part with a content-type of "application/soap+xml" is an textual attachment- Parameters:
contentType
-- Returns:
- true if text, false otherwise
-
-