org.apache.axis2.transport
Class TransportUtils

java.lang.Object
  extended byorg.apache.axis2.transport.TransportUtils

public class TransportUtils
extends Object


Constructor Summary
TransportUtils()
           
 
Method Summary
static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext, InputStream inStream, String soapNamespaceURI)
           
static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext, String soapNamespaceURI)
           
static String getCharSetEncoding(String contentType)
          Extracts and returns the character set encoding from the Content-type header Example: Content-Type: text/xml; charset=utf-8
static org.apache.axiom.om.impl.builder.StAXBuilder selectBuilderForMIME(MessageContext msgContext, InputStream inStream, String contentTypeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportUtils

public TransportUtils()
Method Detail

createSOAPMessage

public static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext,
                                                                   String soapNamespaceURI)
                                                            throws AxisFault
Throws:
AxisFault

createSOAPMessage

public static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext,
                                                                   InputStream inStream,
                                                                   String soapNamespaceURI)
                                                            throws AxisFault
Throws:
AxisFault

getCharSetEncoding

public static String getCharSetEncoding(String contentType)
Extracts and returns the character set encoding from the Content-type header Example: Content-Type: text/xml; charset=utf-8

Parameters:
contentType -

selectBuilderForMIME

public static org.apache.axiom.om.impl.builder.StAXBuilder selectBuilderForMIME(MessageContext msgContext,
                                                                                InputStream inStream,
                                                                                String contentTypeString)
                                                                         throws org.apache.axiom.om.OMException,
                                                                                XMLStreamException,
                                                                                FactoryConfigurationError
Throws:
org.apache.axiom.om.OMException
XMLStreamException
FactoryConfigurationError