Package org.apache.wicket.feedback
Class ErrorLevelFeedbackMessageFilter
- java.lang.Object
-
- org.apache.wicket.feedback.ErrorLevelFeedbackMessageFilter
-
- All Implemented Interfaces:
Serializable
,Predicate<FeedbackMessage>
,IFeedbackMessageFilter
,IClusterable
public class ErrorLevelFeedbackMessageFilter extends Object implements IFeedbackMessageFilter
Filter for accepting feedback messages with minimum level.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.wicket.feedback.IFeedbackMessageFilter
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description ErrorLevelFeedbackMessageFilter(int minimumErrorLevel)
Filters messages with an greater or equals level than minimumErrorLevel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(FeedbackMessage message)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.feedback.IFeedbackMessageFilter
test
-
-
-
-
Constructor Detail
-
ErrorLevelFeedbackMessageFilter
public ErrorLevelFeedbackMessageFilter(int minimumErrorLevel)
Filters messages with an greater or equals level than minimumErrorLevel.- Parameters:
minimumErrorLevel
- The component to filter on, the constraints can be:
FeedbackMessage.SUCCESS
FeedbackMessage.UNDEFINED
FeedbackMessage.DEBUG
FeedbackMessage.INFO
FeedbackMessage.WARNING
FeedbackMessage.ERROR
FeedbackMessage.FATAL
-
-
Method Detail
-
accept
public boolean accept(FeedbackMessage message)
- Specified by:
accept
in interfaceIFeedbackMessageFilter
- Parameters:
message
- The message to test for inclusion- Returns:
- True if the message should be included, false to exclude it
-
-