public final class PostPolicyV4 extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
PostPolicyV4.ConditionV4
Class for a specific POST policy document condition.
|
static class |
PostPolicyV4.ConditionV4Type |
static class |
PostPolicyV4.PostConditionsV4
A helper class for specifying conditions in a V4 POST Policy document.
|
static class |
PostPolicyV4.PostFieldsV4
A helper class to define fields to be specified in a V4 POST request.
|
static class |
PostPolicyV4.PostPolicyV4Document
Class for a V4 POST Policy document.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getFields()
Returns the HTML form fields
|
String |
getUrl()
Returns the URL for the HTTP POST request
|
static PostPolicyV4 |
of(String url,
Map<String,String> fields)
Constructs
PostPolicyV4 instance of the given URL and fields map. |
public static PostPolicyV4 of(String url, Map<String,String> fields)
PostPolicyV4
instance of the given URL and fields map.url
- URL for the HTTP POST requestfields
- HTML form fieldsIllegalArgumentException
- if URL is malformed or fields are not validpublic String getUrl()
Copyright © 2023 Google LLC. All rights reserved.