Class ViewPageLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.ViewPageLinkMarshaller
- All Implemented Interfaces:
Marshaller<Link>
-
Constructor Summary
ConstructorDescriptionViewPageLinkMarshaller
(ResourceIdentifierResolver<PageResourceIdentifier, Page> resourceIdentifierResolver, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<CreatePageLink> createPageLinkMarshaller, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller) -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(Link attachmentLink, ConversionContext conversionContext) Marshals an object to XML.
-
Constructor Details
-
ViewPageLinkMarshaller
public ViewPageLinkMarshaller(ResourceIdentifierResolver<PageResourceIdentifier, Page> resourceIdentifierResolver, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<CreatePageLink> createPageLinkMarshaller, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller)
-
-
Method Details
-
marshal
public Streamable marshal(Link attachmentLink, ConversionContext conversionContext) throws XhtmlException Description copied from interface:Marshaller
Marshals an object to XML.- Specified by:
marshal
in interfaceMarshaller<Link>
- Parameters:
attachmentLink
- object to marshalconversionContext
- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException
- if an error occurs during marshalling
-