org.xwiki.rendering.internal.parser.reference
Class AbstractURIResourceReferenceTypeParser

java.lang.Object
  extended by org.xwiki.rendering.internal.parser.reference.AbstractURIResourceReferenceTypeParser
All Implemented Interfaces:
ResourceReferenceTypeParser
Direct Known Subclasses:
AttachmentResourceReferenceTypeParser, DocumentResourceReferenceTypeParser, IconResourceReferenceTypeParser, InterWikiResourceReferenceTypeParser, MailtoResourceReferenceTypeParser, PathResourceReferenceTypeParser, UNCResourceReferenceTypeParser, URLResourceReferenceTypeParser

public abstract class AbstractURIResourceReferenceTypeParser
extends Object
implements ResourceReferenceTypeParser

Default resource reference type parser for URIs: just take the full reference as the Resource reference. Note that this parser doesn't extract the scheme from the URI for the resource reference.

Since:
2.5RC1
Version:
$Id$

Constructor Summary
AbstractURIResourceReferenceTypeParser()
           
 
Method Summary
 ResourceReference parse(String reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xwiki.rendering.parser.ResourceReferenceTypeParser
getType
 

Constructor Detail

AbstractURIResourceReferenceTypeParser

public AbstractURIResourceReferenceTypeParser()
Method Detail

parse

public ResourceReference parse(String reference)

Specified by:
parse in interface ResourceReferenceTypeParser
Parameters:
reference - the raw resource reference to parse
Returns:
the parsed resource information if the passed reference can be parsed by this type parser or null if the passed reference isn't valid
See Also:
ResourceReferenceTypeParser.parse(String)


Copyright © 2004-2011 XWiki. All Rights Reserved.