Class AttachmentResourceIdentifierOnlyUriResolver
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifierOnlyUriResolver
-
- All Implemented Interfaces:
ResourceIdentifierResolver<AttachmentResourceIdentifier,URI>
public class AttachmentResourceIdentifierOnlyUriResolver extends Object implements ResourceIdentifierResolver<AttachmentResourceIdentifier,URI>
Resolves a uri for an attachment which only looks at the supplied resource identifier. This will always return an absolute uri.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description AttachmentResourceIdentifierOnlyUriResolver(SettingsManager settingsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
resolve(AttachmentResourceIdentifier resourceIdentifier, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
AttachmentResourceIdentifierOnlyUriResolver
public AttachmentResourceIdentifierOnlyUriResolver(SettingsManager settingsManager)
-
-
Method Detail
-
resolve
public URI resolve(AttachmentResourceIdentifier resourceIdentifier, ConversionContext conversionContext) throws CannotResolveResourceIdentifierException
- Specified by:
resolve
in interfaceResourceIdentifierResolver<AttachmentResourceIdentifier,URI>
- Parameters:
resourceIdentifier
- resource identifierconversionContext
- the conversion context- Returns:
- the resource associated with the specified resource identifier (cannot be null)
- Throws:
CannotResolveResourceIdentifierException
- if the specified resource identifier cannot be resolved (this shouldn't typically happen unless someone has removed the resource)
-
-