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