Package org.apache.axiom.om.util
Class CommonUtils
java.lang.Object
org.apache.axiom.om.util.CommonUtils
Deprecated.
Common Utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.Get a string containing the stack of the current locationstatic boolean
isTextualPart
(String contentType) Deprecated.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 final String
Deprecated.replace: Like String.replace except that the old and new items are strings.static String
Deprecated.Get a string containing the stack of the specified exception
-
Method Details
-
replace
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
Deprecated.Get a string containing the stack of the current location- Returns:
- String
-
stackToString
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
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
-
ContentType.isTextual()
instead.