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 TypeMethodDescriptionvoid
close()
boolean
getInput()
Creates a new InputStream object of the payload.Payload in its original form.int
hashCode()
boolean
Tells if the payload is capable of producing its data more than once.boolean
Returns whether the payload contains sensitive information.Creates a new InputStream object of the payload.void
release()
release resources used by this entity.void
void
setSensitive
(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:
openStream
in interfacePayload
- Throws:
IOException
-
getInput
Creates a new InputStream object of the payload. -
getRawContent
Payload in its original form.- Specified by:
getRawContent
in interfacePayload
-
isRepeatable
public boolean isRepeatable()Tells if the payload is capable of producing its data more than once.- Specified by:
isRepeatable
in interfacePayload
-
hashCode
public int hashCode() -
equals
-
getDelegate
-
release
public void release()Description copied from interface:Payload
release resources used by this entity. This should be called when data is discarded. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getContentMetadata
- Specified by:
getContentMetadata
in interfacePayload
-
setContentMetadata
- Specified by:
setContentMetadata
in interfacePayload
-
setSensitive
public void setSensitive(boolean isSensitive) Description copied from interface:Payload
Sets 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:
setSensitive
in interfacePayload
-
isSensitive
public boolean isSensitive()Description copied from interface:Payload
Returns 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:
isSensitive
in interfacePayload
-