Class LinksListCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, CodecContext

    public class LinksListCommand
    extends AbstractShellCommand
    Lists all infrastructure links.
    • Constructor Detail

      • LinksListCommand

        public LinksListCommand()
    • Method Detail

      • json

        public static com.fasterxml.jackson.databind.JsonNode json​(AbstractShellCommand context,
                                                                   java.lang.Iterable<Link> links)
        Produces a JSON array containing the specified links.
        Parameters:
        context - context to use for looking up codecs
        links - collection of links
        Returns:
        JSON array
      • json

        public static com.fasterxml.jackson.databind.node.ObjectNode json​(AbstractShellCommand context,
                                                                          Link link)
        Produces a JSON object for the specified link.
        Parameters:
        context - context to use for looking up codecs
        link - link to encode
        Returns:
        JSON object
      • linkString

        public static java.lang.String linkString​(Link link)
        Returns a formatted string representing the given link.
        Parameters:
        link - infrastructure link
        Returns:
        formatted link string
      • compactLinkString

        public static java.lang.String compactLinkString​(Link link)
        Returns a compact string representing the given link.
        Parameters:
        link - infrastructure link
        Returns:
        formatted link string