ezvcard.types
Class ImppType.ImHtmlLink

java.lang.Object
  extended by ezvcard.types.ImppType.ImHtmlLink
Enclosing class:
ImppType

protected static class ImppType.ImHtmlLink
extends Object

Helper class for parsing and building instant messenger links for webpages.


Constructor Summary
ImppType.ImHtmlLink(String protocol)
           
ImppType.ImHtmlLink(String protocol, String linkRegex, int handleGroup, String linkFormat)
           
 
Method Summary
 String buildLink(String handle)
          Builds a link for inclusion in a webpage.
 String getProtocol()
           
 String parseHandle(String linkUri)
          Parses the IM handle out of a link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImppType.ImHtmlLink

public ImppType.ImHtmlLink(String protocol)
Parameters:
protocol - the IM protocol (e.g. "aim")

ImppType.ImHtmlLink

public ImppType.ImHtmlLink(String protocol,
                           String linkRegex,
                           int handleGroup,
                           String linkFormat)
Parameters:
protocol - the IM protocol (e.g. "aim")
linkRegex - the regular expression used to parse a link
handleGroup - the group number from the regular expression that contains the IM handle
linkFormat - the format string for building a link
Method Detail

parseHandle

public String parseHandle(String linkUri)
Parses the IM handle out of a link.

Parameters:
linkUri - the link
Returns:
the IM handle or null if it can't be found

buildLink

public String buildLink(String handle)
Builds a link for inclusion in a webpage.

Parameters:
handle - the IM handle
Returns:
the link

getProtocol

public String getProtocol()


Copyright © 2012-2013. All Rights Reserved.