Class HealthCheckMessage
- java.lang.Object
-
- com.atlassian.confluence.impl.health.HealthCheckMessage
-
public class HealthCheckMessage extends Object
Create HTML and raw text messages simultaneously. This class was introduced for CONFSRVDEV-2798 in an effort to improve the UX for admins experiencing a JohnsonEvent
. It ensures that the messaging on the web is the same as in the logs. The two formats are exposed by theasText()
and theasHtml()
methods.- Since:
- 6.6.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthCheckMessage.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asHtml()
returns the current message state formatted as HTMLString
asText()
returns the current message state formatted as textString
getHeadline()
returns the current message headline formatted as text
-
-
-
Method Detail
-
asHtml
public String asHtml()
returns the current message state formatted as HTML- Returns:
- String
-
asText
public String asText()
returns the current message state formatted as text- Returns:
- String
-
getHeadline
public String getHeadline()
returns the current message headline formatted as text- Returns:
- String
-
-