com.obs.services.model

## 类 ObjectListing

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.ObjectListing

-     public class ObjectListing
      extends HeaderResponse

  Response to a request for listing objects in a bucket

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `ObjectListing(List<ObsObject> objectSummaries, List<String> commonPrefixes, String bucketName, boolean truncated, String prefix, String marker, int maxKeys, String delimiter, String nextMarker, String location)`
    `ObjectListing(List<ObsObject> objectSummaries, List<String> commonPrefixes, String bucketName, boolean truncated, String prefix, String marker, int maxKeys, String delimiter, String nextMarker, String location, List<ObsObject> extenedCommonPrefixes)`

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBucketName()` Obtain the bucket name.
    `List<String>` | `getCommonPrefixes()` Obtain the list of prefixes to the names of grouped objects.
    `String` | `getDelimiter()` Obtain the character for grouping object names.
    `List<ObsObject>` | `getExtenedCommonPrefixes()` Obtain the list of prefixes to the names of grouped objects.
    `String` | `getLocation()` Obtain the bucket location.
    `String` | `getMarker()` Obtain the start position for listing objects.
    `int` | `getMaxKeys()` Obtain the maximum number of objects to be listed.
    `String` | `getNextMarker()` Obtain the start position for next listing.
    `List<ObsObject>` | `getObjects()` Obtain the list of objects in the bucket.
    `List<S3Object>` | `getObjectSummaries()` 已过时。
    `String` | `getPrefix()` Obtain the object name prefix used for filtering objects to be listed.
    `boolean` | `isTruncated()` Check whether the query result list is truncated.
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.HeaderResponse

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### ObjectListing

          public ObjectListing(List<ObsObject> objectSummaries,
                               List<String> commonPrefixes,
                               String bucketName,
                               boolean truncated,
                               String prefix,
                               String marker,
                               int maxKeys,
                               String delimiter,
                               String nextMarker,
                               String location)

    - #### ObjectListing

          public ObjectListing(List<ObsObject> objectSummaries,
                               List<String> commonPrefixes,
                               String bucketName,
                               boolean truncated,
                               String prefix,
                               String marker,
                               int maxKeys,
                               String delimiter,
                               String nextMarker,
                               String location,
                               List<ObsObject> extenedCommonPrefixes)

  - ### 方法详细资料

    - #### getNextMarker

          public String getNextMarker()

      Obtain the start position for next listing.
      返回:
        Start position for next listing

    - #### getObjects

          public List<ObsObject> getObjects()

      Obtain the list of objects in the bucket.
      返回:
        List of objects in the bucket

    - #### getObjectSummaries

          @Deprecated
          public List<S3Object> getObjectSummaries()

      已过时。

    - #### getCommonPrefixes

          public List<String> getCommonPrefixes()

      Obtain the list of prefixes to the names of grouped objects.
      返回:
        List of prefixes to the names of grouped objects

    - #### getExtenedCommonPrefixes

          public List<ObsObject> getExtenedCommonPrefixes()

      Obtain the list of prefixes to the names of grouped objects.
      返回:
        List of prefixes to the names of grouped objects

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### isTruncated

          public boolean isTruncated()

      Check whether the query result list is truncated. Value "true" indicates that the results are incomplete while value "false" indicates that the results are complete.
      返回:
        Truncation identifier

    - #### getPrefix

          public String getPrefix()

      Obtain the object name prefix used for filtering objects to be listed.
      返回:
        Object name prefix used for listing versioning objects

    - #### getMarker

          public String getMarker()

      Obtain the start position for listing objects.
      返回:
        Start position for listing objects

    - #### getMaxKeys

          public int getMaxKeys()

      Obtain the maximum number of objects to be listed.
      返回:
        Maximum number of objects to be listed

    - #### getDelimiter

          public String getDelimiter()

      Obtain the character for grouping object names.
      返回:
        Character for grouping object names

    - #### getLocation

          public String getLocation()

      Obtain the bucket location.
      返回:
        Bucket location

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `HeaderResponse`

Copyright © 2021. All rights reserved.