Package org.jclouds.http.internal
Class PayloadEnclosingImpl
java.lang.Object
org.jclouds.http.internal.PayloadEnclosingImpl
- All Implemented Interfaces:
PayloadEnclosing
- Direct Known Subclasses:
AtmosObjectImpl
,AzureBlobImpl
,BlobImpl
,HttpMessage
,S3ObjectImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
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.
-
Field Details
-
payload
-
-
Constructor Details
-
PayloadEnclosingImpl
public PayloadEnclosingImpl() -
PayloadEnclosingImpl
-
-
Method Details
-
getPayload
- Specified by:
getPayload
in interfacePayloadEnclosing
-
setPayload
Sets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.- Specified by:
setPayload
in interfacePayloadEnclosing
- Parameters:
data
- typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
-
setPayload
- Specified by:
setPayload
in interfacePayloadEnclosing
-
setPayload
public void setPayload(byte[] data) - Specified by:
setPayload
in interfacePayloadEnclosing
-
setPayload
- Specified by:
setPayload
in interfacePayloadEnclosing
-
setPayload
- Specified by:
setPayload
in interfacePayloadEnclosing
-
setPayload
public void setPayload(com.google.common.io.ByteSource data) - Specified by:
setPayload
in interfacePayloadEnclosing
-
resetPayload
public void resetPayload(boolean release) - Specified by:
resetPayload
in interfacePayloadEnclosing
-
hashCode
public int hashCode() -
equals
-