public interface PayloadEnclosing
Modifier and Type | Method and Description |
---|---|
Payload |
getPayload() |
void |
setPayload(byte[] data) |
void |
setPayload(com.google.common.io.ByteSource 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) |
void setPayload(Payload data)
data
- typically InputStream for downloads, or File, byte[], String, InputStream,
of ByteSource for uploads.void setPayload(File data)
void setPayload(byte[] data)
void setPayload(InputStream data)
void setPayload(String data)
void setPayload(com.google.common.io.ByteSource data)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.