public class StreamingOnRequestDataSource extends Object implements DataSource
| Constructor and Description |
|---|
StreamingOnRequestDataSource(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isConsumed()
Indicates whether or not the InputStream of the message has been consumed
|
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.
|
public StreamingOnRequestDataSource(InputStream in)
public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic void setLastUse(boolean lastUse)
lastUse - public boolean isConsumed()
Copyright © 2017 WSO2. All rights reserved.