Package 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
-
-
Constructor Summary
Constructors Constructor Description SynapseBinaryDataSource(InputStream inputstream, String contentType)Constructs the HessianDataSource from the given InputStream.SynapseBinaryDataSource(InputStream inputstream, String contentType, SynapseEnvironment synEnv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
-