Class SuperBatchWebResources
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.webresource.SuperBatchWebResources
-
@ExperimentalApi public class SuperBatchWebResources extends Object
Represents the set of superbatch web resources required for rendering aFormattedBody. You may need to combine these resources with the other resources inWebResourceDependenciesto completely render a piece of content. Theurifield is a map of theResourceTypeto a list of URI of that resource. Thetagsis a map of theResourceTypeto a html string of the tags of those resources as it would have been rendered in the browser when viewing the content. Standard expansions mechanisms apply to this object when requested through REST. For example, to get all of the css tags, usetags.cssas the expansion (prepending any expansions required to reach this object, such aswebresource.superbatchfor the FormattedBody object). {@see com.atlassian.confluence.api.model.content.webresource.WebResourceDependencies}- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuperBatchWebResources.ExpansionsHolds the string representable of the expandable fields ofSuperBatchWebResources.static classSuperBatchWebResources.SuperBatchWebResourcesBuilderBuilder forSuperBatchWebResources
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuperBatchWebResources.SuperBatchWebResourcesBuilderbuilder()HtmlStringgetMetatags()Map<ResourceType,HtmlString>getTags()Map<ResourceType,List<URI>>getUris()
-
-
-
Method Detail
-
builder
public static SuperBatchWebResources.SuperBatchWebResourcesBuilder builder()
-
getUris
public Map<ResourceType,List<URI>> getUris()
- Returns:
- A map of UIRs keyed by the type of URI. Does not include
ResourceType.DATA, as that type does not have a uri associated with it.
-
getTags
public Map<ResourceType,HtmlString> getTags()
- Returns:
- A map of the raw tags keyed by the type of the resource.
-
getMetatags
public HtmlString getMetatags()
- Returns:
- a html string containing the meta tags required for the enclosing formatted body
-
-