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

java.lang.Object
  extended by org.xwiki.rendering.internal.parser.reference.AbstractURIResourceReferenceTypeParser
      extended by org.xwiki.rendering.internal.parser.reference.URLResourceReferenceTypeParser
All Implemented Interfaces:
ResourceReferenceTypeParser

@Component
@Named(value="url")
@Singleton
public class URLResourceReferenceTypeParser
extends AbstractURIResourceReferenceTypeParser

Parses a resource reference to a URL.

Since:
2.5RC1
Version:
$Id$

Constructor Summary
URLResourceReferenceTypeParser()
           
 
Method Summary
 ResourceType getType()
          
 ResourceReference parse(String reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResourceReferenceTypeParser

public URLResourceReferenceTypeParser()
Method Detail

getType

public ResourceType getType()

Returns:
the resource type (document, url, attachment, etc).
See Also:
ResourceReferenceTypeParser.getType()

parse

public ResourceReference parse(String reference)

Specified by:
parse in interface ResourceReferenceTypeParser
Overrides:
parse in class AbstractURIResourceReferenceTypeParser
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:
AbstractURIResourceReferenceTypeParser.parse(String)


Copyright © 2004-2011 XWiki. All Rights Reserved.