Package org.jclouds.io.payloads
Class DelegatingPayload
java.lang.Object
org.jclouds.io.payloads.DelegatingPayload
- All Implemented Interfaces:
 Closeable,AutoCloseable,Payload
- Direct Known Subclasses:
 BaseCipherPayload,Part
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleangetInput()Creates a new InputStream object of the payload.Payload in its original form.inthashCode()booleanTells if the payload is capable of producing its data more than once.booleanReturns whether the payload contains sensitive information.Creates a new InputStream object of the payload.voidrelease()release resources used by this entity.voidvoidsetSensitive(boolean isSensitive) Sets whether the payload contains sensitive information. 
- 
Constructor Details
- 
DelegatingPayload
 
 - 
 - 
Method Details
- 
openStream
Creates a new InputStream object of the payload.- Specified by:
 openStreamin interfacePayload- Throws:
 IOException
 - 
getInput
Creates a new InputStream object of the payload. - 
getRawContent
Payload in its original form.- Specified by:
 getRawContentin interfacePayload
 - 
isRepeatable
public boolean isRepeatable()Tells if the payload is capable of producing its data more than once.- Specified by:
 isRepeatablein interfacePayload
 - 
hashCode
public int hashCode() - 
equals
 - 
getDelegate
 - 
release
public void release()Description copied from interface:Payloadrelease resources used by this entity. This should be called when data is discarded. - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Throws:
 IOException
 - 
getContentMetadata
- Specified by:
 getContentMetadatain interfacePayload
 - 
setContentMetadata
- Specified by:
 setContentMetadatain interfacePayload
 - 
setSensitive
public void setSensitive(boolean isSensitive) Description copied from interface:PayloadSets whether the payload contains sensitive information. This is used when trying to decide whether to print out the payload information or not in logs- Specified by:
 setSensitivein interfacePayload
 - 
isSensitive
public boolean isSensitive()Description copied from interface:PayloadReturns whether the payload contains sensitive information. This is used when trying to decide whether to print out the payload information or not in logs- Specified by:
 isSensitivein interfacePayload
 
 -