Home » synapse-1.2-src » org.apache.synapse.transport.nhttp.util » [javadoc | source]
org.apache.synapse.transport.nhttp.util
public class: GzipMessageFormatterDecorator [javadoc | source]
java.lang.Object
   org.apache.synapse.transport.nhttp.util.GzipMessageFormatterDecorator

All Implemented Interfaces:
    org.apache.axis2.transport.MessageFormatter

This is the decorator for message formatter and it is need because there isn't any mechanism that can process the message before formatting is occurred. For handle 'Accept-Encoding' some kind of this is required. This decorator encapsulates the message formatter and add the whatever functionally when as required without effecting message formatter functionality. This enable to serialize message in Gzip format .
Constructor:
 public GzipMessageFormatterDecorator(MessageFormatter messageFormatter) 
Method from org.apache.synapse.transport.nhttp.util.GzipMessageFormatterDecorator Summary:
formatSOAPAction,   getBytes,   getContentType,   getTargetAddress,   writeTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.transport.nhttp.util.GzipMessageFormatterDecorator Detail:
 public String formatSOAPAction(MessageContext messageContext,
    OMOutputFormat format,
    String soapAction) 
 public byte[] getBytes(MessageContext messageContext,
    OMOutputFormat format) throws AxisFault 
 public String getContentType(MessageContext messageContext,
    OMOutputFormat format,
    String soapAction) 
 public URL getTargetAddress(MessageContext messageContext,
    OMOutputFormat format,
    URL targetURL) throws AxisFault 
 public  void writeTo(MessageContext messageContext,
    OMOutputFormat format,
    OutputStream outputStream,
    boolean preserve) throws AxisFault