org.xwiki.rendering.internal.parser.reference
Class DefaultUntypedImageReferenceParser
java.lang.Object
org.xwiki.rendering.internal.parser.reference.DefaultUntypedImageReferenceParser
- All Implemented Interfaces:
- ResourceReferenceParser
@Component
@Named(value="image/untyped")
@Singleton
public class DefaultUntypedImageReferenceParser
- extends Object
- implements ResourceReferenceParser
Considers all passed images references to be untyped and tries to guess the type by first looking for a URL
and then considering it's a reference to an attachment.
- Since:
- 2.6M1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUntypedImageReferenceParser
public DefaultUntypedImageReferenceParser()
parse
public ResourceReference parse(String rawReference)
- Parses a resource reference represented (reference to a link, image, attachment, etc) as a String into a
ResourceReference object.
- Specified by:
parse in interface ResourceReferenceParser
- Parameters:
rawReference - the string representation of the resource reference to parse (the supported syntax depends
on the parser implementation used)
- Returns:
- the parsed resource reference
- See Also:
ResourceReferenceParser.parse(String)
Copyright © 2004-2011 XWiki. All Rights Reserved.