public class PlainNotificationRenderer extends AbstractNotificationRenderer
Constructor and Description |
---|
PlainNotificationRenderer(LocaleContext localeContext,
PrintWriter printWriter)
Create a new instance with the required properties.
|
PlainNotificationRenderer(LocaleContextSource localeContextSource,
PrintWriter printWriter)
Create a new instance with the required properties.
|
Modifier and Type | Method and Description |
---|---|
static String |
getPlainText(LocaleContext localeContext,
Notification... notification)
Get plain text for a notification.
|
static String |
getPlainText(LocaleContextSource localeContextSource,
Notification... notification)
Get plain text for a notification.
|
void |
render(Collection<? extends Notification> notifications)
Render the notifications.
|
getLocaleContext, getPrintWriter, isRenderDetails, render, setLocaleContext, setPrintWriter, setRenderDetails
public PlainNotificationRenderer(@Nonnull LocaleContext localeContext, @Nonnull PrintWriter printWriter)
localeContext
- the locale context.printWriter
- the print writer.public PlainNotificationRenderer(@Nonnull LocaleContextSource localeContextSource, @Nonnull PrintWriter printWriter)
localeContextSource
- the locale context source.printWriter
- the print writer.public static String getPlainText(@Nonnull LocaleContext localeContext, @Nonnull Notification... notification)
localeContext
- the locale context.notification
- the notification.public static String getPlainText(@Nonnull LocaleContextSource localeContextSource, @Nonnull Notification... notification)
localeContextSource
- the locale context source.notification
- the notification.public void render(@Nonnull Collection<? extends Notification> notifications)
NotificationRenderer
notifications
- the notifications.