public abstract class HtmlTagWriter extends Object
Writer wrapper responsible for writing WebResourceInformation.getResourceUrls() as HTML tags, according to their extension.| Constructor and Description |
|---|
HtmlTagWriter(RequestState requestState,
Writer writer,
Collection<com.atlassian.plugin.webresource.assembler.html.HtmlTagFormatter> formatters) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeHtmlTag(Collection<ResourceUrls> resources)
Generates HTML tags for each
ResourceUrls according to its URL extension type and write it into the writer. |
protected void |
writeHtmlTag(String... html)
Flushes an HTML string to the writer.
|
void |
writeHtmlTag(WebResourceInformation information,
com.google.common.base.Predicate<WebResource> predicate,
com.google.common.base.Predicate<ResourceUrl> legacyPredicate)
Generates HTML import tags for each
WebResourceInformation.getResourceUrls()
according to its URL extension type and write it into the writer. |
public HtmlTagWriter(@Nonnull RequestState requestState, @Nonnull Writer writer, @Nonnull Collection<com.atlassian.plugin.webresource.assembler.html.HtmlTagFormatter> formatters)
public void writeHtmlTag(@Nonnull WebResourceInformation information, @Nonnull com.google.common.base.Predicate<WebResource> predicate, @Nonnull com.google.common.base.Predicate<ResourceUrl> legacyPredicate)
WebResourceInformation.getResourceUrls()
according to its URL extension type and write it into the writer.information - The information used to generate the import tags.predicate - The predicate used to filter the resources based on the WebResource information.legacyPredicate - The predicate used to filter the resources based on the ResourceUrl information.public void writeHtmlTag(@Nonnull Collection<ResourceUrls> resources)
ResourceUrls according to its URL extension type and write it into the writer.resources - The resources containing the URL information to be used to generate HTML import tag.Copyright © 2024 Atlassian. All rights reserved.