org.apache.axis2.fastinfoset
Class FastInfosetPOXMessageFormatter

java.lang.Object
  extended by org.apache.axis2.fastinfoset.FastInfosetPOXMessageFormatter
All Implemented Interfaces:
MessageFormatter

public class FastInfosetPOXMessageFormatter
extends java.lang.Object
implements MessageFormatter


Constructor Summary
FastInfosetPOXMessageFormatter()
           
 
Method Summary
 java.lang.String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.lang.String soapAction)
          Plain Fast Infoset message formatter doesn't need to handle SOAP.
 byte[] getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format)
          Retrieves the raw bytes from the SOAP envelop.
 java.lang.String getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.lang.String soapAction)
          Returns the content type
 java.net.URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.net.URL targetURL)
          Returns the target address to send the response FIXME This is very HTTP specific.
 void writeTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.io.OutputStream outputStream, boolean preserve)
          Write the SOAP envelop to the given OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastInfosetPOXMessageFormatter

public FastInfosetPOXMessageFormatter()
Method Detail

formatSOAPAction

public java.lang.String formatSOAPAction(MessageContext messageContext,
                                         org.apache.axiom.om.OMOutputFormat format,
                                         java.lang.String soapAction)
Plain Fast Infoset message formatter doesn't need to handle SOAP. Hence do nothing.

Specified by:
formatSOAPAction in interface MessageFormatter
Returns:
this only if you want set a transport header for SOAP Action
See Also:
MessageFormatter.formatSOAPAction(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)

getBytes

public byte[] getBytes(MessageContext messageContext,
                       org.apache.axiom.om.OMOutputFormat format)
                throws AxisFault
Retrieves the raw bytes from the SOAP envelop.

Specified by:
getBytes in interface MessageFormatter
Returns:
a byte array of the message formatted according to the given message format.
Throws:
AxisFault
See Also:
MessageFormatter.getBytes(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat)

getContentType

public java.lang.String getContentType(MessageContext messageContext,
                                       org.apache.axiom.om.OMOutputFormat format,
                                       java.lang.String soapAction)
Returns the content type

Specified by:
getContentType in interface MessageFormatter
See Also:
MessageFormatter.getContentType(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)

getTargetAddress

public java.net.URL getTargetAddress(MessageContext messageContext,
                                     org.apache.axiom.om.OMOutputFormat format,
                                     java.net.URL targetURL)
                              throws AxisFault
Returns the target address to send the response FIXME This is very HTTP specific. What about other transport?

Specified by:
getTargetAddress in interface MessageFormatter
Returns:
the target URL
Throws:
AxisFault
See Also:
MessageFormatter.getTargetAddress(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.net.URL)

writeTo

public void writeTo(MessageContext messageContext,
                    org.apache.axiom.om.OMOutputFormat format,
                    java.io.OutputStream outputStream,
                    boolean preserve)
             throws AxisFault
Write the SOAP envelop to the given OutputStream.

Specified by:
writeTo in interface MessageFormatter
preserve - : do not consume the OM when this is set..
Throws:
AxisFault
See Also:
MessageFormatter.writeTo(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.io.OutputStream, boolean)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.