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 and Description |
---|
XhtmlOutgoingLinksExtractor(XmlEventReaderFactory xmlEventReaderFactory,
Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller,
String contentEntityResolverId,
String draftResolverId,
String idAndTypeResolverId) |
Modifier and Type | Method and Description |
---|---|
Set<OutgoingLink> |
extract(ContentEntityObject content) |
public XhtmlOutgoingLinksExtractor(XmlEventReaderFactory xmlEventReaderFactory, Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, String contentEntityResolverId, String draftResolverId, String idAndTypeResolverId)
public Set<OutgoingLink> extract(ContentEntityObject content)
extract
in interface OutgoingLinksExtractor
Copyright © 2003–2021 Atlassian. All rights reserved.