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 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 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(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,
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, AxisConfiguration axisCfg)
serviceName
- service namemsg
- comment for being faultyaxisCfg
- configuration contextpublic static org.apache.axiom.soap.SOAPEnvelope getEnvelope(InputStream in, String namespace) throws XMLStreamException
in
- InputStream for the payloadnamespace
- the SOAP namespaceXMLStreamException
- 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(String s)
public static boolean isBlank(String str)
str
- the string to checkpublic static boolean isUsingTransport(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–2018 The Apache Software Foundation. All rights reserved.