org.apache.synapse.util
Class SynapseBinaryDataSource
java.lang.Object
org.apache.synapse.util.SynapseBinaryDataSource
- All Implemented Interfaces:
- DataSource
public class SynapseBinaryDataSource
- extends Object
- implements DataSource
DataSource which will be used to pass the Hessian messages in to SOAP body within axis2/synapse
- See Also:
DataSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynapseBinaryDataSource
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 retrievalcontentType
- message content type
- Throws:
IOException
- failure in reading from the InputStream
SynapseBinaryDataSource
public SynapseBinaryDataSource(InputStream inputstream,
String contentType,
SynapseEnvironment synEnv)
throws IOException
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in interface DataSource
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface DataSource
- Throws:
IOException
getName
public String getName()
- Specified by:
getName
in interface DataSource
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface DataSource
- Throws:
IOException
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.