Class AzureHtmlMessage
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.messager.AzureMessage
-
- com.microsoft.azure.toolkit.lib.common.messager.AzureHtmlMessage
-
- All Implemented Interfaces:
IAzureMessage
public class AzureHtmlMessage extends AzureMessage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.messager.IAzureMessage
IAzureMessage.Type, IAzureMessage.ValueDecorator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static PatternURL_PATTERN-
Fields inherited from class com.microsoft.azure.toolkit.lib.common.messager.AzureMessage
actions, message, payload, title, type, valueDecorator
-
Fields inherited from interface com.microsoft.azure.toolkit.lib.common.messager.IAzureMessage
DEFAULT_TITLE
-
-
Constructor Summary
Constructors Constructor Description AzureHtmlMessage(IAzureMessage raw)AzureHtmlMessage(IAzureMessage.Type type, AzureString message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecorateValue(Object p, java.util.function.Supplier<String> dft)protected StringgetCause(Throwable throwable)StringgetContent()protected StringgetDetailItem(Operation o)protected StringgetErrorColor()protected StringgetValueColor()private static StringtransformURLIntoLinks(String text)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.messager.AzureMessage
getActions, getDetails, getExceptionTips, getOperations, getTitle, setActions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.messager.IAzureMessage
decorateText, getMessage, getPayload, getType, show, show
-
-
-
-
Field Detail
-
URL_PATTERN
static final Pattern URL_PATTERN
-
-
Constructor Detail
-
AzureHtmlMessage
public AzureHtmlMessage(@Nonnull IAzureMessage.Type type, @Nonnull AzureString message)
-
AzureHtmlMessage
public AzureHtmlMessage(IAzureMessage raw)
-
-
Method Detail
-
getContent
@Nonnull public String getContent()
- Specified by:
getContentin interfaceIAzureMessage- Overrides:
getContentin classAzureMessage
-
getCause
@Nullable protected String getCause(@Nonnull Throwable throwable)
- Overrides:
getCausein classAzureMessage
-
getDetailItem
protected String getDetailItem(Operation o)
- Overrides:
getDetailItemin classAzureMessage
-
decorateValue
public String decorateValue(@Nonnull Object p, @Nullable java.util.function.Supplier<String> dft)
- Specified by:
decorateValuein interfaceIAzureMessage- Overrides:
decorateValuein classAzureMessage- Returns:
- null if not decoratable
-
getErrorColor
protected String getErrorColor()
-
getValueColor
protected String getValueColor()
-
-