Package com.atlassian.applinks.api
Interface ApplicationLinkUIService.MessageBuilder
- Enclosing interface:
- ApplicationLinkUIService
public static interface ApplicationLinkUIService.MessageBuilder
An HTML fragment builder returned by
ApplicationLinkUIService.authorisationRequest(ApplicationLink).-
Method Summary
Modifier and TypeMethodDescriptioncontentHtml(String contentHtml) Adds custom content to the message.Specifies whether to use a brief format (the default) or a banner format.getHtml()Returns the message/banner as an HTML string.
-
Method Details
-
format
Specifies whether to use a brief format (the default) or a banner format.- Parameters:
format- aApplicationLinkUIService.MessageFormat; cannot be null- Returns:
- the same MessageBuilder instance
-
contentHtml
Adds custom content to the message. The content may contain HTML markup and will not be escaped.- Parameters:
contentHtml- an HTML string; cannot be null- Returns:
- the same MessageBuilder instance
-
getHtml
String getHtml()Returns the message/banner as an HTML string.If using the
ApplicationLinkUIService.MessageFormat.BANNERformat (the default), this is a<div>element; for theApplicationLinkUIService.MessageFormat.INLINEformat, it is a<span>.
-