org.jclouds.io
Interface PayloadEnclosing
- All Known Subinterfaces:
- AtmosObject, AzureBlob, Blob, S3Object, SwiftObject
- All Known Implementing Classes:
- AtmosObjectImpl, AzureBlobImpl, BlobImpl, GeneratedHttpRequest, HttpMessage, HttpRequest, HttpResponse, PayloadEnclosingImpl, S3ObjectImpl, SwiftObjectImpl
public interface PayloadEnclosing
- Author:
- Adrian Cole
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, or InputStream for
uploads.
setPayload
void setPayload(File data)
setPayload
void setPayload(byte[] data)
setPayload
void setPayload(InputStream data)
setPayload
void setPayload(String data)
getPayload
Payload getPayload()
Copyright © 2009-2012 jclouds. All Rights Reserved.