public static interface

ApplicationLinkUIService.MessageBuilder

com.atlassian.applinks.api.ApplicationLinkUIService.MessageBuilder

Class Overview

An HTML fragment builder returned by authorisationRequest(ApplicationLink).

Summary

Public Methods
abstract ApplicationLinkUIService.MessageBuilder contentHtml(String contentHtml)
Adds custom content to the message.
abstract ApplicationLinkUIService.MessageBuilder format(ApplicationLinkUIService.MessageFormat format)
Specifies whether to use a brief format (the default) or a banner format.
abstract String getHtml()
Returns the message/banner as an HTML string.

Public Methods

public abstract ApplicationLinkUIService.MessageBuilder contentHtml (String 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

public abstract ApplicationLinkUIService.MessageBuilder format (ApplicationLinkUIService.MessageFormat format)

Specifies whether to use a brief format (the default) or a banner format.

Parameters
format a ApplicationLinkUIService.MessageFormat; cannot be null
Returns
  • the same MessageBuilder instance

public abstract String getHtml ()

Returns the message/banner as an HTML string.

If using the BANNER format (the default), this is a <div> element; for the INLINE format, it is a <span>.