public class LinksListCommand extends AbstractShellCommand
log
Constructor and Description |
---|
LinksListCommand() |
Modifier and Type | Method and Description |
---|---|
static String |
compactLinkString(Link link)
Returns a compact string representing the given link.
|
protected void |
doExecute()
Body of the shell command.
|
static com.fasterxml.jackson.databind.JsonNode |
json(AbstractShellCommand context,
Iterable<Link> links)
Produces a JSON array containing the specified links.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
json(AbstractShellCommand context,
Link link)
Produces a JSON object for the specified link.
|
static String |
linkString(Link link)
Returns a formatted string representing the given link.
|
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode
protected void doExecute()
AbstractShellCommand
doExecute
in class AbstractShellCommand
public static com.fasterxml.jackson.databind.JsonNode json(AbstractShellCommand context, Iterable<Link> links)
context
- context to use for looking up codecslinks
- collection of linkspublic static com.fasterxml.jackson.databind.node.ObjectNode json(AbstractShellCommand context, Link link)
context
- context to use for looking up codecslink
- link to encodepublic static String linkString(Link link)
link
- infrastructure link