Class KeyList


  • public final class KeyList
    extends Object
    This class can print storage key items in different formats, e.g. for Artifactory API and as list HTML page, etc.
    Since:
    0.3
    • Constructor Detail

      • KeyList

        public KeyList​(com.artipie.asto.Key root)
        Ctor.
        Parameters:
        root - Root key.
    • Method Detail

      • add

        public void add​(com.artipie.asto.Key key)
        Add key to the list.
        Parameters:
        key - Key to add
      • print

        public <T> T print​(KeyList.KeysFormat<T> format)
        Print sorted key list using specified output format.
        Type Parameters:
        T - Format output type
        Parameters:
        format - Output format, e.g. JSON or HTML format
        Returns:
        Formatted result