Package org.jclouds.io
Interface Payload
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
ApacheHCUtils.HttpEntityPayload
,BaseCipherPayload
,BasePayload
,ByteArrayPayload
,ByteSourcePayload
,ChunkedUploadPayload
,DelegatingPayload
,FilePayload
,InputStreamPayload
,MultipartForm
,Part
,PhantomPayload
,RSADecryptingPayload
,RSAEncryptingPayload
,StringPayload
,UrlEncodedFormPayload
-
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Deprecated.Payload in its original form.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.
-
Method Details
-
openStream
Creates a new InputStream object of the payload.- Throws:
IOException
-
getInput
Deprecated.seeopenStream()
.Creates a new InputStream object of the payload. -
getRawContent
Object getRawContent()Payload in its original form. -
isRepeatable
boolean isRepeatable()Tells if the payload is capable of producing its data more than once. -
release
void release()release resources used by this entity. This should be called when data is discarded. -
getContentMetadata
MutableContentMetadata getContentMetadata() -
setContentMetadata
-
setSensitive
void setSensitive(boolean isSensitive) 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 -
isSensitive
boolean isSensitive()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
-
openStream()
.