public class DelegatingPayload extends Object implements Payload
| Constructor and Description |
|---|
DelegatingPayload(Payload delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object obj) |
MutableContentMetadata |
getContentMetadata() |
Payload |
getDelegate() |
InputStream |
getInput()
Creates a new InputStream object of the payload.
|
Object |
getRawContent()
Payload in its original form.
|
int |
hashCode() |
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.
|
public DelegatingPayload(Payload delegate)
public InputStream openStream() throws IOException
openStream in interface PayloadIOExceptionpublic InputStream getInput()
public Object getRawContent()
getRawContent in interface Payloadpublic boolean isRepeatable()
isRepeatable in interface Payloadpublic Payload getDelegate()
public void release()
Payloadpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic MutableContentMetadata getContentMetadata()
getContentMetadata in interface Payloadpublic void setContentMetadata(MutableContentMetadata in)
setContentMetadata in interface Payloadpublic void setSensitive(boolean isSensitive)
PayloadsetSensitive in interface Payloadpublic boolean isSensitive()
PayloadisSensitive in interface PayloadCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.