|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.base.BaseUtils
public abstract class BaseUtils
| Constructor Summary | |
|---|---|
BaseUtils()
|
|
| Method Summary | |
|---|---|
static SOAPEnvelope |
getEnvelope(InputStream in,
String namespace)
Create a SOAP envelope using SOAP 1.1 or 1.2 depending on the namespace |
abstract InputStream |
getInputStream(Object message)
Get an InputStream to the message payload |
abstract byte[] |
getMessageBinaryPayload(Object message)
Get the message payload as a byte[], if the message is a non-SOAP, non-XML, binary message |
static MessageFormatter |
getMessageFormatter(MessageContext msgContext)
Get the MessageFormatter for the given message. |
abstract String |
getMessageTextPayload(Object message)
Get the message payload as a String, if the message is a non-SOAP, non-XML, plain text message |
static long |
getMinPollTime(List pollTable)
|
static OMOutputFormat |
getOMOutputFormat(MessageContext msgContext)
Get the OMOutput format for the given message |
abstract String |
getProperty(Object message,
String property)
Get a String property from a 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 |
isUsingTransport(AxisService service,
String transportName)
|
static boolean |
isValid(String str)
Utility method to check if a string is not null and not empty |
static void |
markServiceAsFaulty(String serviceName,
String msg,
AxisConfiguration axisCfg)
Marks the given service as faulty with the given comment |
void |
setSOAPEnvelope(Object message,
MessageContext msgContext,
String contentType)
Create a SOAPEnvelope from the given message and set it into the axis MessageContext passed |
| 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 QName getQNameFromString(Object obj)
obj - a QName or a String containing a QName in {ns}element form
public static void markServiceAsFaulty(String serviceName,
String msg,
AxisConfiguration axisCfg)
serviceName - service namemsg - comment for being faultyaxisCfg - configuration context
public static SOAPEnvelope getEnvelope(InputStream in,
String namespace)
throws javax.xml.stream.XMLStreamException
in - InputStream for the payloadnamespace - the SOAP namespace
javax.xml.stream.XMLStreamException - on errorpublic static OMOutputFormat getOMOutputFormat(MessageContext msgContext)
msgContext - the axis message context
public static MessageFormatter getMessageFormatter(MessageContext msgContext)
msgContext - the axis message context
public static long getMinPollTime(List pollTable)
public void setSOAPEnvelope(Object message,
MessageContext msgContext,
String contentType)
throws AxisFault
message - the message objectmsgContext - the axis MessageContextcontentType -
AxisFault - on errors encountered while setting the envelope to the message context
public abstract String getProperty(Object message,
String property)
message - the message objectproperty - property name
public abstract InputStream getInputStream(Object message)
message - Object
public abstract String getMessageTextPayload(Object message)
message - the message Object
public abstract byte[] getMessageBinaryPayload(Object message)
message - the message Object
protected static void handleException(String s)
protected static void handleException(String s,
Exception e)
public static boolean isValid(String str)
str - the string to check
public static boolean isUsingTransport(AxisService service,
String transportName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||