public interface Payload extends Closeable
Modifier and Type | Method and Description |
---|---|
MutableContentMetadata |
getContentMetadata() |
InputStream |
getInput()
Deprecated.
see openStream
|
Object |
getRawContent()
Payload in its original form.
|
boolean |
isRepeatable()
Tells if the payload is capable of producing its data more than once.
|
boolean |
isSensitive()
Returns whether the payload contains sensitive information.
|
InputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
release()
release resources used by this entity.
|
void |
setContentMetadata(MutableContentMetadata in) |
void |
setSensitive(boolean isSensitive)
Sets whether the payload contains sensitive information.
|
InputStream openStream() throws IOException
IOException
@Deprecated InputStream getInput()
Object getRawContent()
boolean isRepeatable()
void release()
MutableContentMetadata getContentMetadata()
void setContentMetadata(MutableContentMetadata in)
void setSensitive(boolean isSensitive)
boolean isSensitive()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.