Class XhtmlOutgoingLinksExtractor
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.links.XhtmlOutgoingLinksExtractor
-
- All Implemented Interfaces:
OutgoingLinksExtractor
public class XhtmlOutgoingLinksExtractor extends Object implements OutgoingLinksExtractor
You should note that this implementation of the OutgoingLinksExtractor is actually a 'reference' extractor. Embedded image references will also be extracted. This extractor will extract all resource identifiers. So if we eventually supported macro definitions using resource identifiers then these references would also be extracted.
The
DefaultRelatedContentRefactorer.updateReferences(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String)
method depends on this behaviour to test whether a page needs its content refactored after a move or update.
-
-
Constructor Summary
Constructors Constructor Description XhtmlOutgoingLinksExtractor(XmlEventReaderFactory xmlEventReaderFactory, Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, String contentEntityResolverId, String draftResolverId, String idAndTypeResolverId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<OutgoingLink>
extract(ContentEntityObject content)
-
-
-
Constructor Detail
-
XhtmlOutgoingLinksExtractor
public XhtmlOutgoingLinksExtractor(XmlEventReaderFactory xmlEventReaderFactory, Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, String contentEntityResolverId, String draftResolverId, String idAndTypeResolverId)
-
-
Method Detail
-
extract
public Set<OutgoingLink> extract(ContentEntityObject content)
- Specified by:
extract
in interfaceOutgoingLinksExtractor
-
-