public class Payloads extends Object
Modifier and Type | Method and Description |
---|---|
static ByteArrayPayload |
newByteArrayPayload(byte[] data) |
static ByteSourcePayload |
newByteSourcePayload(com.google.common.io.ByteSource data) |
static FilePayload |
newFilePayload(File data) |
static InputStreamPayload |
newInputStreamPayload(InputStream data) |
static Payload |
newPayload(Object data) |
static StringPayload |
newStringPayload(String data) |
static UrlEncodedFormPayload |
newUrlEncodedFormPayload(com.google.common.collect.Multimap<String,String> formParams) |
public static InputStreamPayload newInputStreamPayload(InputStream data)
public static ByteArrayPayload newByteArrayPayload(byte[] data)
public static ByteSourcePayload newByteSourcePayload(com.google.common.io.ByteSource data)
public static StringPayload newStringPayload(String data)
public static FilePayload newFilePayload(File data)
public static UrlEncodedFormPayload newUrlEncodedFormPayload(com.google.common.collect.Multimap<String,String> formParams)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.