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 String
getContentType()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
-
-
-
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:
getContentType
in interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceDataSource
- Throws:
IOException
-
getName
public String getName()
- Specified by:
getName
in interfaceDataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceDataSource
- Throws:
IOException
-
-