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 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 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 SOAPEnvelope createSOAPMessage(MessageContext msgContext,
                                             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 StAXBuilder selectBuilderForMIME(MessageContext msgContext,
                                               InputStream inStream,
                                               String contentTypeString)
                                        throws OMException,
                                               XMLStreamException,
                                               FactoryConfigurationError,
                                               UnsupportedEncodingException
Throws:
OMException
XMLStreamException
FactoryConfigurationError
UnsupportedEncodingException