类 ListObjectsRequest

java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.ListObjectsRequest

public class ListObjectsRequest extends GenericRequest
Parameters in a request for listing objects in a bucket
  • 构造器详细资料

    • ListObjectsRequest

      public ListObjectsRequest()
    • ListObjectsRequest

      public ListObjectsRequest(String bucketName)
      Constructor
      参数:
      bucketName - Bucket name
    • ListObjectsRequest

      public ListObjectsRequest(String bucketName, int maxKeys)
      Constructor
      参数:
      bucketName - Bucket name
      maxKeys - Maximum number of objects to be listed
    • ListObjectsRequest

      public ListObjectsRequest(String bucketName, String prefix, String marker, String delimiter, int maxKeys)
      Constructor
      参数:
      bucketName - Bucket name
      prefix - Object name prefix, used for filtering objects to be listed
      marker - Start position for listing objects
      delimiter - Character used for grouping object names
      maxKeys - Maximum number of objects to be listed
    • ListObjectsRequest

      public ListObjectsRequest(String bucketName, String prefix, String marker, String delimiter, int maxKeys, String encodingType)
      Constructor
      参数:
      bucketName - Bucket name
      prefix - Object name prefix, used for filtering objects to be listed
      marker - Start position for listing objects
      delimiter - Character used for grouping object names
      maxKeys - Maximum number of objects to be listed
      encodingType - Use this encoding type to encode keys that contains invalid characters, the value could be "url"
  • 方法详细资料

    • getPrefix

      public String getPrefix()
      Obtain the object name prefix used for filtering objects to be listed.
      返回:
      Object name prefix
    • setPrefix

      public void setPrefix(String prefix)
      Set the object name prefix used for filtering objects to be listed.
      参数:
      prefix - Object name prefix
    • getMarker

      public String getMarker()
      Obtain the start position for listing objects.
      返回:
      Start position marker
    • setMarker

      public void setMarker(String marker)
      Set the start position for listing objects.
      参数:
      marker - Start position marker
    • getMaxKeys

      public int getMaxKeys()
      Obtain the maximum number of objects to be listed.
      返回:
      Maximum number of objects to be listed
    • setMaxKeys

      public void setMaxKeys(int maxKeys)
      Set the maximum number of objects to be listed.
      参数:
      maxKeys - Maximum number of objects to be listed
    • setEncodingType

      public void setEncodingType(String encodingType)
      Set encoding type to encode objectkeys, the value could be url
      参数:
      encodingType - encoding type for encoding
    • getDelimiter

      public String getDelimiter()
      Obtain the character used for grouping object names.
      返回:
      Character for grouping object names
    • getEncodingType

      public String getEncodingType()
      Get encoding type to encode objectkeys
      返回:
      encoding type for encoding
    • setDelimiter

      public void setDelimiter(String delimiter)
      Set the character used for grouping object names.
      参数:
      delimiter - Character for grouping object names
    • getListTimeout

      public int getListTimeout()
    • setListTimeout

      public void setListTimeout(int listTimeout)
    • toString

      public String toString()
      覆盖:
      toString 在类中 GenericRequest