Class SuperBatchWebResources
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.webresource.SuperBatchWebResources
-
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 inWebResourceDependencies
to completely render a piece of content. Theuri
field is a map of theResourceType
to a list of URI of that resource. Thetags
is a map of theResourceType
to 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.css
as the expansion (prepending any expansions required to reach this object, such aswebresource.superbatch
for 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 class
SuperBatchWebResources.Expansions
Holds the string representable of the expandable fields ofSuperBatchWebResources
.static class
SuperBatchWebResources.SuperBatchWebResourcesBuilder
Builder forSuperBatchWebResources
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuperBatchWebResources.SuperBatchWebResourcesBuilder
builder()
HtmlString
getMetatags()
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
-
-