Package org.apache.juneau.console
Class Subscription
java.lang.Object
org.apache.juneau.console.Subscription
One entry of a card's
subscribes list: a concrete topic wired to a role the card type implements.
Example:
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat a subscriber does when the payload is cleared or a mapped path is missing. -
Method Summary
Modifier and TypeMethodDescriptionMaps one payload path to a target; repeatable.static SubscriptiontoMap()topic()
-
Method Details
-
to
- Parameters:
topic- A concrete topic; no wildcards.- Returns:
- A new subscription.
- Throws:
IllegalArgumentException- E-40 on bad syntax.
-
as
- Parameters:
role- A role the card type accepts, matching^[a-z][a-z0-9-]{0,31}$. @return This object.
-
map
Maps one payload path to a target; repeatable.- Parameters:
target- A{token}name forparams, or a dotted field such ascolumns.regionforfilter.path- A dotted path into the payload, with numeric segments for array indexes, such asids.0.- Returns:
- This object.
-
whenEmpty
- Parameters:
v-Subscription.WhenEmpty.CLEAR(the default when unset) orSubscription.WhenEmpty.KEEP. @return This object.
-
emptyText
- Parameters:
v- The text painted when the payload is empty; the shell's default otherwise. @return This object.
-
topic
- Returns:
- The topic.
-
toMap
- Returns:
- The
$defs/subscriptionentry.
-