public class BaseUtils
extends java.lang.Object
| Constructor and Description |
|---|
BaseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.axiom.soap.SOAPEnvelope |
getEnvelope(java.io.InputStream in,
java.lang.String namespace)
Create a SOAP envelope using SOAP 1.1 or 1.2 depending on the namespace
|
static java.util.Hashtable<java.lang.String,java.lang.String> |
getEPRProperties(java.lang.String url)
Extract the properties from an endpoint reference.
|
static MessageFormatter |
getMessageFormatter(MessageContext msgContext)
Get the MessageFormatter for the given message.
|
static org.apache.axiom.om.OMOutputFormat |
getOMOutputFormat(MessageContext msgContext)
Get the OMOutput format for the given message
|
static javax.xml.namespace.QName |
getQNameFromString(java.lang.Object obj)
Return a QName from the String passed in of the form {ns}element
|
protected static void |
handleException(java.lang.String s) |
protected static void |
handleException(java.lang.String s,
java.lang.Exception e) |
static boolean |
isBlank(java.lang.String str)
Utility method to check if a string is null or empty
|
static boolean |
isUsingTransport(AxisService service,
java.lang.String transportName) |
static java.util.Properties |
loadProperties(java.lang.String filePath)
Loads the properties from a given property file path
|
static void |
markServiceAsFaulty(java.lang.String serviceName,
java.lang.String msg,
AxisConfiguration axisCfg)
Marks the given service as faulty with the given comment
|
public static javax.xml.namespace.QName getQNameFromString(java.lang.Object obj)
obj - a QName or a String containing a QName in {ns}element formpublic static void markServiceAsFaulty(java.lang.String serviceName,
java.lang.String msg,
AxisConfiguration axisCfg)
serviceName - service namemsg - comment for being faultyaxisCfg - configuration contextpublic static org.apache.axiom.soap.SOAPEnvelope getEnvelope(java.io.InputStream in,
java.lang.String namespace)
throws javax.xml.stream.XMLStreamException
in - InputStream for the payloadnamespace - the SOAP namespacejavax.xml.stream.XMLStreamException - on errorpublic static org.apache.axiom.om.OMOutputFormat getOMOutputFormat(MessageContext msgContext)
msgContext - the axis message contextpublic static MessageFormatter getMessageFormatter(MessageContext msgContext)
msgContext - the axis message contextprotected static void handleException(java.lang.String s)
protected static void handleException(java.lang.String s,
java.lang.Exception e)
public static boolean isBlank(java.lang.String str)
str - the string to checkpublic static boolean isUsingTransport(AxisService service, java.lang.String transportName)
public static java.util.Hashtable<java.lang.String,java.lang.String> getEPRProperties(java.lang.String url)
url - an endpoint referencepublic static java.util.Properties loadProperties(java.lang.String filePath)
filePath - Path of the property fileCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.