public class FeedbackCollector extends Object
Constructor and Description |
---|
FeedbackCollector()
Constructs a collector that will only collect messages from
Session . |
FeedbackCollector(Component component)
Constructs a collector that will collect messages from the specified
container |
FeedbackCollector(Component component,
boolean includeSession)
Constructs a collector that will collect messages from
Session and specified
container |
Modifier and Type | Method and Description |
---|---|
List<FeedbackMessage> |
collect()
Collects all feedback messages
|
List<FeedbackMessage> |
collect(IFeedbackMessageFilter filter)
Collects all feedback messages that match the specified
filter |
FeedbackCollector |
setIncludeSession(boolean value)
Controls whether or not feedback from the
Session will be collected
See Session.getFeedbackMessages() |
FeedbackCollector |
setRecursive(boolean value)
Controls whether or not feedback will be collected recursively from the descendants of the
specified component.
|
protected boolean |
shouldRecurseInto(Component component)
Determines whether or not recursive message collection should continue into the specified
component.
|
public FeedbackCollector()
Session
. To collect
messages from session and components use FeedbackCollector(Component, boolean)
.public FeedbackCollector(Component component)
container
component
- root component from which feedback will be collectedpublic FeedbackCollector(Component component, boolean includeSession)
Session
and specified
container
component
- root component from which feedback will be collectedincludeSession
- controls whether or not feedback from the Session
will be collectedpublic final FeedbackCollector setIncludeSession(boolean value)
Session
will be collected
See Session.getFeedbackMessages()
value
- this
for chainingpublic final FeedbackCollector setRecursive(boolean value)
value
- this
for chainingpublic final List<FeedbackMessage> collect()
List
of collected messagespublic final List<FeedbackMessage> collect(IFeedbackMessageFilter filter)
filter
filter
- List
of collected messagesprotected boolean shouldRecurseInto(Component component)
false
feedback messages from the specified component nor any
of its children will be included.component
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.