org.jclouds.openstack.swift.options
Class ListContainerOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.openstack.swift.options.ListContainerOptions
- All Implemented Interfaces:
- HttpRequestOptions
public class ListContainerOptions
- extends BaseHttpRequestOptions
Contains options supported in the REST API for the GET container operation.
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions |
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString |
NONE
public static final ListContainerOptions NONE
ListContainerOptions
public ListContainerOptions()
afterMarker
public ListContainerOptions afterMarker(String marker)
- Indicates where to begin listing the account's containers. The list will only include
containers whose names occur lexicographically after the marker. This is convenient for
pagination: To get the next page of results use the last container name of the current page as
the marker.
getMarker
public String getMarker()
maxResults
public ListContainerOptions maxResults(int limit)
- The maximum number of containers that will be included in the response body. The server might
return fewer than this many containers, but will not return more.
getMaxResults
public int getMaxResults()
withPrefix
public ListContainerOptions withPrefix(String prefix)
- For a string value X, causes the results to be limited to Object names beginning with the
substring X.
getPrefix
public String getPrefix()
underPath
public ListContainerOptions underPath(String path)
- For a string value X, return the Object names nested in the pseudo path.
Users will be able to simulate a hierarchical structure in Cloud Files by following a few
guidelines. Object names must contain the forward slash character / as a path element
separator and also create directory marker Objects, then they will be able to traverse this
nested structure with the new path query parameter.
To take advantage of this feature, the directory marker Objects must also be created to
represent the appropriate directories. The following additional Objects need to be created. A
good convention would be to create these as zero or one byte files with a Content-Type of
application/directory
getPath
public String getPath()
Copyright © 2009-2012 jclouds. All Rights Reserved.