Package org.jclouds.io
Interface PayloadEnclosing
-
- All Known Subinterfaces:
AtmosObject
,AzureBlob
,Blob
,S3Object
- All Known Implementing Classes:
AtmosObjectImpl
,AzureBlobImpl
,BlobImpl
,GeneratedHttpRequest
,HttpMessage
,HttpRequest
,HttpResponse
,PayloadEnclosingImpl
,S3ObjectImpl
public interface PayloadEnclosing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Payload
getPayload()
void
resetPayload(boolean release)
void
setPayload(byte[] data)
void
setPayload(com.google.common.io.ByteSource data)
void
setPayload(File data)
void
setPayload(InputStream data)
void
setPayload(String data)
void
setPayload(Payload data)
Sets payload for the request or the content from the response.
-
-
-
Method Detail
-
setPayload
void setPayload(Payload data)
Sets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.- Parameters:
data
- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-
setPayload
void setPayload(File data)
-
setPayload
void setPayload(byte[] data)
-
setPayload
void setPayload(InputStream data)
-
setPayload
void setPayload(String data)
-
setPayload
void setPayload(com.google.common.io.ByteSource data)
-
resetPayload
void resetPayload(boolean release)
-
-