org.xwiki.rendering.internal.parser.xwiki20
Class XWiki20LinkReferenceParser

java.lang.Object
  extended by org.xwiki.rendering.internal.parser.reference.GenericLinkReferenceParser
      extended by org.xwiki.rendering.internal.parser.xwiki20.XWiki20LinkReferenceParser
All Implemented Interfaces:
ResourceReferenceParser

@Component
@Named(value="xwiki/2.0/link")
@Singleton
public class XWiki20LinkReferenceParser
extends GenericLinkReferenceParser

Parses the content of XWiki 2.0 resource references. The supported generic format is as follows: (link)(@interWikiAlias)?, where:

Examples of valid wiki links: Note that allowed URIs are URLs of the form http://, mailto:, image: and attach:.

Since:
2.5RC1
Version:
$Id$

Field Summary
static java.util.List<java.lang.String> URI_PREFIXES
          The list of recognized URL prefixes.
 
Fields inherited from class org.xwiki.rendering.internal.parser.reference.GenericLinkReferenceParser
ESCAPE_CHAR, SEPARATOR_ANCHOR, SEPARATOR_INTERWIKI, SEPARATOR_QUERYSTRING
 
Constructor Summary
XWiki20LinkReferenceParser()
           
 
Method Summary
protected  java.util.List<java.lang.String> getAllowedURIPrefixes()
           
 
Methods inherited from class org.xwiki.rendering.internal.parser.reference.GenericLinkReferenceParser
parse, parseElementAfterString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_PREFIXES

public static final java.util.List<java.lang.String> URI_PREFIXES
The list of recognized URL prefixes.

Constructor Detail

XWiki20LinkReferenceParser

public XWiki20LinkReferenceParser()
Method Detail

getAllowedURIPrefixes

protected java.util.List<java.lang.String> getAllowedURIPrefixes()
Overrides:
getAllowedURIPrefixes in class GenericLinkReferenceParser
Returns:
the list of URI prefixes the link parser recognizes


Copyright © 2004-2011 XWiki. All Rights Reserved.