Class ObjectKey

  • All Implemented Interfaces:

    
    public final class ObjectKey
    
                        

    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 org.springframework.web.util.pattern.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".

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String key
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectKey(String key)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getKey()
      • Methods inherited from class java.lang.Object

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