public class Payloads extends Object
Constructor and Description |
---|
Payloads() |
Modifier and Type | Method and Description |
---|---|
static Payload<File> |
create(File file)
Creates a new File based Payload
|
static Payload<InputStream> |
create(InputStream stream)
Creates a new Input Stream based Payload
|
static Payload<URL> |
create(URL url)
Creates a new URL based Payload allowing direct upload from the URL
|
public static Payload<File> create(File file)
file
- the file to sendpublic static Payload<InputStream> create(InputStream stream)
stream
- the input streamCopyright © 2017. All rights reserved.