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 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,
boolean isSOAP)
throws org.apache.axiom.om.OMException,
XMLStreamException,
FactoryConfigurationError
- Throws:
org.apache.axiom.om.OMException
XMLStreamException
FactoryConfigurationError