Class PostPolicyV4 (2.33.0)

public final class PostPolicyV4

Presigned V4 post policy. Instances of PostPolicyV4 include a URL and a map of fields that can be specified in an HTML form to submit a POST request to upload an object.

See POST Object for details of upload by using HTML forms.

See Storage#generateSignedPostPolicyV4(BlobInfo, long, TimeUnit, PostPolicyV4.PostFieldsV4, PostPolicyV4.PostConditionsV4, Storage.PostPolicyV4Option...) for example of usage.

Inheritance

java.lang.Object > PostPolicyV4

Static Methods

of(String url, Map<String,String> fields)

public static PostPolicyV4 of(String url, Map<String,String> fields)

Constructs PostPolicyV4 instance of the given URL and fields map.

Parameters
Name Description
url String

URL for the HTTP POST request

fields Map<String,String>

HTML form fields

Returns
Type Description
PostPolicyV4

constructed object

Methods

getFields()

public Map<String,String> getFields()

Returns the HTML form fields

Returns
Type Description
Map<String,String>

getUrl()

public String getUrl()

Returns the URL for the HTTP POST request

Returns
Type Description
String