|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.base.BaseUtils
public class BaseUtils
Constructor Summary | |
---|---|
BaseUtils()
|
Method Summary | |
---|---|
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 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 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(org.apache.axis2.description.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,
org.apache.axis2.engine.AxisConfiguration axisCfg)
Marks the given service as faulty with the given comment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseUtils()
Method Detail |
---|
public static javax.xml.namespace.QName getQNameFromString(java.lang.Object obj)
obj
- a QName or a String containing a QName in {ns}element form
public static void markServiceAsFaulty(java.lang.String serviceName, java.lang.String msg, org.apache.axis2.engine.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 namespace
javax.xml.stream.XMLStreamException
- on errorpublic static org.apache.axiom.om.OMOutputFormat getOMOutputFormat(org.apache.axis2.context.MessageContext msgContext)
msgContext
- the axis message context
public static org.apache.axis2.transport.MessageFormatter getMessageFormatter(org.apache.axis2.context.MessageContext msgContext)
msgContext
- the axis message context
protected 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 check
public static boolean isUsingTransport(org.apache.axis2.description.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 reference
public static java.util.Properties loadProperties(java.lang.String filePath)
filePath
- Path of the property file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |