|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.s3.options.PutObjectOptions
public class PutObjectOptions
Contains options supported in the REST API for the PUT object operation.
import static org.jclouds.s3.commands.options.PutObjectOptions.Builder.*
import org.jclouds.s3.S3Client;
S3Client connection = // get connection
Future publicly readable = connection.putObject("bucketName",new S3Object("key","value"), withAcl(CannedAccessPolicy.PUBLIC_READ));
- See Also:
Nested Class Summary
static class
PutObjectOptions.Builder
Field Summary
static PutObjectOptions
NONE
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
Constructor Summary
PutObjectOptions()
Method Summary
com.google.common.collect.Multimap<String,String>
buildRequestHeaders()
CannedAccessPolicy
getAcl()
void
setHeaderTag(String headerTag)
PutObjectOptions
withAcl(CannedAccessPolicy acl)
Override the default ACL (private) with the specified one.
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
NONE
public static final PutObjectOptions NONE
Constructor Detail
PutObjectOptions
public PutObjectOptions()
Method Detail
setHeaderTag
@Inject
public void setHeaderTag(@Named(value="jclouds.aws.header.tag")
String headerTag)
buildRequestHeaders
public com.google.common.collect.Multimap<String,String> buildRequestHeaders()
- Specified by:
buildRequestHeaders in interface org.jclouds.http.options.HttpRequestOptions- Overrides:
buildRequestHeaders in class org.jclouds.http.options.BaseHttpRequestOptions
withAcl
public PutObjectOptions withAcl(CannedAccessPolicy acl)
- Override the default ACL (private) with the specified one.
- See Also:
CannedAccessPolicy
getAcl
public CannedAccessPolicy getAcl()
- See Also:
withAcl(CannedAccessPolicy)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.