| java.lang.Object org.apache.synapse.transport.base.BaseUtils
All known Subclasses: org.apache.synapse.transport.mail.MailUtils, org.apache.synapse.transport.vfs.VFSUtils, org.apache.synapse.transport.amqp.AMQPUtils, org.apache.synapse.transport.jms.JMSUtils,
BaseUtils | abstract public class BaseUtils (Code) | | |
Method Summary | |
public static SOAPEnvelope | getEnvelope(InputStream in, String namespace) | abstract public InputStream | getInputStream(Object message) | abstract public byte[] | getMessageBinaryPayload(Object message) | abstract public String | getMessageTextPayload(Object message) | public static long | getMinPollTime(List pollTable) | public static OMOutputFormat | getOMOutputFormat(MessageContext msgContext) | public static String | getOptionalServiceParam(AxisService service, String paramName) | abstract public String | getProperty(Object message, String property) | public static QName | getQNameFromString(Object obj) | public static String | getRequiredServiceParam(AxisService service, String paramName) | protected static void | handleException(String s) | protected static void | handleException(String s, Exception e) | public static boolean | isUsingTransport(AxisService service, String transportName) | public static boolean | isValid(String str) | public static void | markServiceAsFaulty(String serviceName, String msg, AxisConfiguration axisCfg) | public void | setSOAPEnvelope(Object message, MessageContext msgContext, String contentType) |
getInputStream | abstract public InputStream getInputStream(Object message)(Code) | | Get an InputStream to the message payload
Parameters: message - Object an InputStream to the payload |
getMessageBinaryPayload | abstract public byte[] getMessageBinaryPayload(Object message)(Code) | | Get the message payload as a byte[], if the message is a non-SOAP, non-XML, binary message
Parameters: message - the message Object the payload of the message as a byte[] |
getMessageTextPayload | abstract public String getMessageTextPayload(Object message)(Code) | | Get the message payload as a String, if the message is a non-SOAP, non-XML, plain text message
Parameters: message - the message Object the plain text payload of the message if applicable |
getMinPollTime | public static long getMinPollTime(List pollTable)(Code) | | |
getOMOutputFormat | public static OMOutputFormat getOMOutputFormat(MessageContext msgContext)(Code) | | Get the OMOutput format for the given message
Parameters: msgContext - the axis message context the OMOutput format to be used |
getOptionalServiceParam | public static String getOptionalServiceParam(AxisService service, String paramName) throws AxisFault(Code) | | |
getProperty | abstract public String getProperty(Object message, String property)(Code) | | Get a String property from a message
Parameters: message - the message object Parameters: property - property name property value |
getQNameFromString | public static QName getQNameFromString(Object obj)(Code) | | Return a QName from the String passed in of the form {ns}element
Parameters: obj - a QName or a String containing a QName in {ns}element form a corresponding QName object |
getRequiredServiceParam | public static String getRequiredServiceParam(AxisService service, String paramName) throws AxisFault(Code) | | |
handleException | protected static void handleException(String s)(Code) | | |
isUsingTransport | public static boolean isUsingTransport(AxisService service, String transportName)(Code) | | |
isValid | public static boolean isValid(String str)(Code) | | Utility method to check if a string is not null and not empty
Parameters: str - the string to check true if not null and not empty |
markServiceAsFaulty | public static void markServiceAsFaulty(String serviceName, String msg, AxisConfiguration axisCfg)(Code) | | Marks the given service as faulty with the given comment
Parameters: serviceName - service name Parameters: msg - comment for being faulty Parameters: axisCfg - configuration context |
setSOAPEnvelope | public void setSOAPEnvelope(Object message, MessageContext msgContext, String contentType) throws AxisFault(Code) | | Create a SOAPEnvelope from the given message and set it into
the axis MessageContext passed
Parameters: message - the message object Parameters: msgContext - the axis MessageContext Parameters: contentType - throws: AxisFault - on errors encountered while setting the envelope to the message context |
|
|