Class ContentKey

  • Direct Known Subclasses:
    ImmutableContentKey

    @Immutable(lazyhash=true)
    public abstract class ContentKey
    extends Object
    Key for the content of an object.

    For URL encoding, embedded periods within a segment are replaced with zero byte values before passing in a url string.

    • Constructor Detail

      • ContentKey

        public ContentKey()
    • Method Detail

      • getElements

        @NotNull
        @Size(min=1)
        public abstract @NotNull @Size(min=1) List<String> getElements()
      • getNamespace

        @Redacted
        public Namespace getNamespace()
        Returns the namespace that is always consisting of the first N-1 elements from getElements().
        Returns:
        A Namespace instance that is always consisting of the first N-1 elements from getElements().
      • getName

        @Redacted
        public String getName()
      • validate

        @Check
        protected void validate()
      • fromPathString

        public static ContentKey fromPathString​(String encoded)
        Convert from path encoded string to normal string.
        Parameters:
        encoded - Path encoded string
        Returns:
        Actual key.
      • toPathString

        public String toPathString()
        Convert this key to a url encoded path string.
        Returns:
        String encoded for path use.