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

All Implemented Interfaces:
    DataSource

DataSource which will be used to pass the Hessian messages in to SOAP body within axis2/synapse
Constructor:
 public SynapseBinaryDataSource(InputStream inputstream,
    String contentType) throws IOException 
    Constructs the HessianDataSource from the given InputStream. Inside the HessianDataSource, data is stored in a byte[] or in a temp file format inorder to be able to get the stream any number of time, otherwise the stream can only be read once
    Parameters:
    inputstream - contains the Hessian message for later retrieval
    contentType - message content type
    Throws:
    IOException - failure in reading from the InputStream
 public SynapseBinaryDataSource(InputStream inputstream,
    String contentType,
    SynapseEnvironment synEnv) throws IOException 
Method from org.apache.synapse.util.SynapseBinaryDataSource Summary:
getContentType,   getInputStream,   getName,   getOutputStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.util.SynapseBinaryDataSource Detail:
 public String getContentType() 
 public InputStream getInputStream() throws IOException 
 public String getName() 
 public OutputStream getOutputStream() throws IOException