org.apache.axis2.transport
Class TransportUtils
java.lang.Object
org.apache.axis2.transport.TransportUtils
- public class TransportUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportUtils
public TransportUtils()
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