public class SystemMessages extends Object implements Serializable
Use VaadinService.setSystemMessagesProvider(SystemMessagesProvider)
to customize.
The defaults defined in this class are:
Modifier and Type | Field and Description |
---|---|
protected String |
cookiesDisabledCaption |
protected String |
cookiesDisabledMessage |
protected boolean |
cookiesDisabledNotificationEnabled |
protected String |
cookiesDisabledURL |
protected String |
internalErrorCaption |
protected String |
internalErrorMessage |
protected boolean |
internalErrorNotificationEnabled |
protected String |
internalErrorURL |
protected String |
sessionExpiredCaption |
protected String |
sessionExpiredMessage |
protected boolean |
sessionExpiredNotificationEnabled |
protected String |
sessionExpiredURL |
Modifier and Type | Method and Description |
---|---|
String |
getCookiesDisabledCaption()
Gets the caption to show in a "cookies disabled" notification.
|
String |
getCookiesDisabledMessage()
Gets the message to show in a "cookies disabled" notification.
|
String |
getCookiesDisabledURL()
Gets the URL the user will be redirected to after dismissing a "cookies
disabled" message.
|
String |
getInternalErrorCaption()
Gets the caption to show in an "internal error" notification.
|
String |
getInternalErrorMessage()
Gets the message to show in a "internal error" notification.
|
String |
getInternalErrorURL()
Gets the URL the user will be redirected to after dismissing an internal
error message.
|
String |
getSessionExpiredCaption()
Gets the caption to show in a "session expired" notification.
|
String |
getSessionExpiredMessage()
Gets the message to show in a "session expired" notification.
|
String |
getSessionExpiredURL()
Gets the URL the user will be redirected to after dismissing a session
expired message.
|
boolean |
isCookiesDisabledNotificationEnabled()
Checks if "cookies disabled" notifications should be shown to the end
user.
|
boolean |
isInternalErrorNotificationEnabled()
Checks if "internal error" notifications should be shown to the end user.
|
boolean |
isSessionExpiredNotificationEnabled()
Checks if "session expired" notifications should be shown to the end
user.
|
protected String sessionExpiredURL
protected boolean sessionExpiredNotificationEnabled
protected String sessionExpiredCaption
protected String sessionExpiredMessage
protected String internalErrorURL
protected boolean internalErrorNotificationEnabled
protected String internalErrorCaption
protected String internalErrorMessage
protected String cookiesDisabledURL
protected boolean cookiesDisabledNotificationEnabled
protected String cookiesDisabledCaption
protected String cookiesDisabledMessage
public String getSessionExpiredURL()
public boolean isSessionExpiredNotificationEnabled()
getSessionExpiredURL()
.true
to show the notification to the end user,
false
to redirect directlypublic String getSessionExpiredCaption()
null
to show no caption.public String getSessionExpiredMessage()
null
to show no message.public String getInternalErrorURL()
public boolean isInternalErrorNotificationEnabled()
getInternalErrorURL()
.true
to show the notification to the end user,
false
to redirect directlypublic String getInternalErrorCaption()
null
to show no caption.public String getInternalErrorMessage()
null
to show no message.public String getCookiesDisabledURL()
public boolean isCookiesDisabledNotificationEnabled()
getCookiesDisabledURL()
.true
to show the notification to the end user,
false
to redirect directlypublic String getCookiesDisabledCaption()
null
to show no caption.public String getCookiesDisabledMessage()
null
to show no message.Copyright © 2019. All rights reserved.