public class PayloadEnclosingImpl extends Object implements PayloadEnclosing
Constructor and Description |
---|
PayloadEnclosingImpl() |
PayloadEnclosingImpl(Payload payload) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Payload |
getPayload() |
int |
hashCode() |
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) |
protected Payload payload
public Payload getPayload()
getPayload
in interface PayloadEnclosing
public void setPayload(Payload data)
setPayload
in interface PayloadEnclosing
data
- typically InputStream for downloads, or File, byte [], String, or InputStream for
uploads.public void setPayload(InputStream data)
setPayload
in interface PayloadEnclosing
public void setPayload(byte[] data)
setPayload
in interface PayloadEnclosing
public void setPayload(String data)
setPayload
in interface PayloadEnclosing
public void setPayload(File data)
setPayload
in interface PayloadEnclosing
Copyright © 2009-2012 jclouds. All Rights Reserved.