Package org.openstack4j.model.common
Class Payloads
- java.lang.Object
-
- org.openstack4j.model.common.Payloads
-
public class Payloads extends Object
Utility class for creating supported Payloads.- Author:
- Jeremy Unruh
-
-
Constructor Summary
Constructors Constructor Description Payloads()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Payload<File>create(File file)Creates a new File based Payloadstatic Payload<InputStream>create(InputStream stream)Creates a new Input Stream based Payloadstatic Payload<URL>create(URL url)Creates a new URL based Payload allowing direct upload from the URL
-
-
-
Method Detail
-
create
public static Payload<File> create(File file)
Creates a new File based Payload- Parameters:
file- the file to send- Returns:
- the Payload
-
create
public static Payload<InputStream> create(InputStream stream)
Creates a new Input Stream based Payload- Parameters:
stream- the input stream- Returns:
- the Payload
-
-