Class ViewAttachmentLinkMarshallingStrategy
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.ViewAttachmentLinkMarshallingStrategy
- All Implemented Interfaces:
StaxStreamMarshaller<Link>
public class ViewAttachmentLinkMarshallingStrategy
extends Object
implements StaxStreamMarshaller<Link>
Encapsulates all the extra marshalling concerns of a link to attachment for the view context.
-
Constructor Summary
ConstructorDescriptionViewAttachmentLinkMarshallingStrategy
(AttachmentResourceIdentifierResolver attachmentResourceIdentifierResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
marshal
(Link attachmentLink, XMLStreamWriter xmlStreamWriter, ConversionContext context)
-
Constructor Details
-
ViewAttachmentLinkMarshallingStrategy
public ViewAttachmentLinkMarshallingStrategy(AttachmentResourceIdentifierResolver attachmentResourceIdentifierResolver)
-
-
Method Details
-
marshal
public void marshal(Link attachmentLink, XMLStreamWriter xmlStreamWriter, ConversionContext context) throws XMLStreamException - Specified by:
marshal
in interfaceStaxStreamMarshaller<Link>
- Throws:
XMLStreamException
-