/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.rendering.internal.renderer.xhtml.link;

import java.util.Map;

import org.xwiki.component.annotation.Component;
import org.xwiki.component.annotation.InstantiationStrategy;
import org.xwiki.component.descriptor.ComponentInstantiationStrategy;
import org.xwiki.rendering.listener.reference.ResourceReference;

/**
 * Handle XHTML rendering for links for which we haven't found a specific
 * {@link org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkTypeRenderer} implementation.
 * 
 * @version $Id: DefaultXHTMLLinkTypeRenderer.java 31687 2010-10-08 19:37:36Z vmassol $
 * @since 2.5RC1
 */
@Component("mailto")
@InstantiationStrategy(ComponentInstantiationStrategy.PER_LOOKUP)
public class MailtoXHTMLLinkTypeRenderer extends AbstractXHTMLLinkTypeRenderer
{
    /**
     * {@inheritDoc}
     * 
     * @see AbstractXHTMLLinkTypeRenderer#beginLinkExtraAttributes(org.xwiki.rendering.listener.reference.ResourceReference
     *      , java.util.Map, java.util.Map)
     */
    @Override
    protected void beginLinkExtraAttributes(ResourceReference reference, Map<String, String> spanAttributes,
        Map<String, String> anchorAttributes)
    {
        anchorAttributes.put(XHTMLLinkRenderer.HREF, reference.getType().getScheme() + ':' + reference.getReference());
    }
}

@@ -1253,240 +1253,41 @@
 for 
-links for which we haven't found a specific%0A * %7B@link org.xwiki.rendering.internal.renderer.xhtml.link.XHTMLLinkTypeRenderer%7D implementation.%0A * %0A * @version $Id: DefaultXHTMLLinkTypeRenderer.java 31687 2010-10-08 19:37:36Z vmassol 
+mailto links.%0A * %0A * @version $Id
 $%0A *

Generalize Image support and add relative paths support XWiki Syntax 2.1 Fix javadoc