|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.TransportUtils
public class TransportUtils
| Constructor Summary | |
|---|---|
TransportUtils()
|
|
| Method Summary | |
|---|---|
static org.apache.axiom.om.OMElement |
createDocumentElement(java.lang.String contentType,
MessageContext msgContext,
java.io.InputStream inStream)
|
static org.apache.axiom.soap.SOAPEnvelope |
createSOAPEnvelope(org.apache.axiom.om.OMElement documentElement)
|
static org.apache.axiom.soap.SOAPEnvelope |
createSOAPMessage(MessageContext msgContext)
|
static org.apache.axiom.soap.SOAPEnvelope |
createSOAPMessage(MessageContext msgContext,
java.io.InputStream inStream,
java.lang.String contentType)
Objective of this method is to capture the SOAPEnvelope creation logic and make it a common for all the transports and to in/out flows. |
static void |
deleteAttachments(MessageContext msgContext)
Clean up cached attachment file |
static java.lang.String |
getCharSetEncoding(java.lang.String contentType)
Extracts and returns the character set encoding from the Content-type header Example: Content-Type: text/xml; charset=utf-8 |
static MessageFormatter |
getMessageFormatter(MessageContext msgContext)
Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message. |
static boolean |
isResponseWritten(MessageContext messageContext)
This is a helper method to get the response written flag from the RequestResponseTransport instance. |
static void |
processContentTypeForAction(java.lang.String contentType,
MessageContext msgContext)
|
static void |
setResponseWritten(MessageContext messageContext,
boolean responseWritten)
This is a helper method to set the response written flag on the RequestResponseTransport instance. |
static void |
writeMessage(MessageContext msgContext,
java.io.OutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportUtils()
| Method Detail |
|---|
public static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext)
throws AxisFault
AxisFault
public static org.apache.axiom.soap.SOAPEnvelope createSOAPMessage(MessageContext msgContext,
java.io.InputStream inStream,
java.lang.String contentType)
throws AxisFault,
org.apache.axiom.om.OMException,
javax.xml.stream.XMLStreamException,
javax.xml.parsers.FactoryConfigurationError
msgContext - inStream - contentType -
AxisFault
org.apache.axiom.om.OMException
javax.xml.stream.XMLStreamException
javax.xml.parsers.FactoryConfigurationErrorpublic static org.apache.axiom.soap.SOAPEnvelope createSOAPEnvelope(org.apache.axiom.om.OMElement documentElement)
public static org.apache.axiom.om.OMElement createDocumentElement(java.lang.String contentType,
MessageContext msgContext,
java.io.InputStream inStream)
throws AxisFault,
javax.xml.stream.XMLStreamException
AxisFault
javax.xml.stream.XMLStreamExceptionpublic static java.lang.String getCharSetEncoding(java.lang.String contentType)
contentType -
public static void writeMessage(MessageContext msgContext,
java.io.OutputStream out)
throws AxisFault
AxisFault
public static MessageFormatter getMessageFormatter(MessageContext msgContext)
throws AxisFault
msgContext -
AxisFault
public static void processContentTypeForAction(java.lang.String contentType,
MessageContext msgContext)
public static boolean isResponseWritten(MessageContext messageContext)
public static void setResponseWritten(MessageContext messageContext,
boolean responseWritten)
public static void deleteAttachments(MessageContext msgContext)
msgContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||