com.atlassian.confluence.plugins.emailgateway.linkconverter.instances
Class YouTubeLinkConverter

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.api.BaseLinkConverter<java.lang.Object>
      extended by com.atlassian.confluence.plugins.emailgateway.linkconverter.instances.YouTubeLinkConverter
All Implemented Interfaces:
LinkConverter<java.lang.Object,Link>

public class YouTubeLinkConverter
extends BaseLinkConverter<java.lang.Object>

Converts YouTube shortened URLs to their longer form.

Since:
5.3

Constructor Summary
YouTubeLinkConverter()
           
 
Method Summary
 Link convert(java.net.URL linkUrl, LinkBody<java.lang.Object> linkBody)
           
 boolean isFinal()
           
 
Methods inherited from class com.atlassian.confluence.plugins.emailgateway.api.BaseLinkConverter
getConversionClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YouTubeLinkConverter

public YouTubeLinkConverter()
Method Detail

isFinal

public boolean isFinal()
Specified by:
isFinal in interface LinkConverter<java.lang.Object,Link>
Overrides:
isFinal in class BaseLinkConverter<java.lang.Object>
Returns:
true if no converters should run after this one handles a link.

convert

public Link convert(java.net.URL linkUrl,
                    LinkBody<java.lang.Object> linkBody)
Parameters:
linkUrl - the URL that the link points to
linkBody - the text or other content that the link displays
Returns:
the passed link, converted to the correct Object type


Copyright © 2003-2014 Atlassian. All Rights Reserved.