public class CommonUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
CommonUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
callStackToString()
Get a string containing the stack of the current location
|
static boolean |
isTextualPart(java.lang.String contentType)
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.
|
static long |
logDebug(OMElement om,
org.apache.commons.logging.Log log)
Writes the om to a log.debug.
|
static long |
logDebug(OMElement om,
org.apache.commons.logging.Log log,
int limit)
Writes the om to a log.debug.
|
static long |
logDebug(OMElement om,
org.apache.commons.logging.Log log,
int limit,
OMOutputFormat format)
Writes the om to a log.debug.
|
static java.lang.String |
replace(java.lang.String name,
java.lang.String oldT,
java.lang.String newT)
replace: Like String.replace except that the old and new items are strings.
|
static java.lang.String |
stackToString(java.lang.Throwable e)
Get a string containing the stack of the specified exception
|
private CommonUtils()
public static final java.lang.String replace(java.lang.String name,
java.lang.String oldT,
java.lang.String newT)
name - stringoldT - old text to replacenewT - new text to usepublic static java.lang.String callStackToString()
public static java.lang.String stackToString(java.lang.Throwable e)
e - public static long logDebug(OMElement om, org.apache.commons.logging.Log log)
om - OMElementlog - Logpublic static long logDebug(OMElement om, org.apache.commons.logging.Log log, int limit)
om - OMElementlog - Loglimit - limit of message to writepublic static long logDebug(OMElement om, org.apache.commons.logging.Log log, int limit, OMOutputFormat format)
om - OMElementlog - Loglimit - limit of message to writeformat - OMOutputFormatpublic static boolean isTextualPart(java.lang.String contentType)
contentType -