com.atlassian.confluence.content.render.xhtml.links
Class XhtmlOutgoingLinksExtractor

java.lang.Object
  extended by 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
XhtmlOutgoingLinksExtractor(XmlEventReaderFactory xmlEventReaderFactory, Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, String contentEntityResolverId, String draftResolverId, String idAndTypeResolverId)
           
 
Method Summary
 Set<OutgoingLink> extract(ContentEntityObject content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface OutgoingLinksExtractor


Copyright © 2003-2012 Atlassian. All Rights Reserved.