Class ContentKey


  • @Immutable
    public abstract class ContentKey
    extends java.lang.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) java.util.List<java.lang.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 java.lang.String getName()
      • of

        public static ContentKey of​(java.lang.String... elements)
      • of

        public static ContentKey of​(java.util.List<java.lang.String> elements)
      • validate

        @Check
        protected void validate()
      • fromPathString

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object