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

Method Summary
 Payload getPayload()
           
 void setPayload(byte[] data)
           
 void setPayload(File data)
           
 void setPayload(InputStream data)
           
 void setPayload(Payload data)
          Sets payload for the request or the content from the response.
 void setPayload(String data)
           
 

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, 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-2011 jclouds. All Rights Reserved.