Class StreamingOnRequestDataSource
java.lang.Object
org.apache.synapse.transport.passthru.util.StreamingOnRequestDataSource
- All Implemented Interfaces:
DataSource
This class has a special flag, which says this is it's last use and not to cache data
if it did not have done so already.
- Author:
- Srinath Perera (srinath@wso2.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidsetLastUse(boolean lastUse) This flag says that this is the last use of the stream, hence do not need to cache it if it has not already cached.
-
Constructor Details
-
StreamingOnRequestDataSource
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
setLastUse
public void setLastUse(boolean lastUse) This flag says that this is the last use of the stream, hence do not need to cache it if it has not already cached.- Parameters:
lastUse-
-