Class ObjectKey

java.lang.Object
com.adobe.testing.s3mock.dto.ObjectKey

public class ObjectKey extends Object
Key request value object. Removes the trailing slash extracted from paths by Spring. Used in conjunction with the PathVariable extracted by using "{*key}" in the path pattern. See PathPattern Example path pattern: "/{bucketName:.+}/{*key}" Example incoming path: "/my-bucket/prefix/before/my/key" By declaring "{*key}", Spring extracts the absolute path "/prefix/before/my/key", but in S3, all keys within a bucket are relative to the bucket, in this example "prefix/before/my/key".
  • Constructor Details

    • ObjectKey

      public ObjectKey(String key)
  • Method Details

    • getKey

      public String getKey()