com.google.clearsilver.jsilver.functions.html
Class HtmlUrlValidateFunction

java.lang.Object
  extended by com.google.clearsilver.jsilver.functions.html.BaseUrlValidateFunction
      extended by com.google.clearsilver.jsilver.functions.html.HtmlUrlValidateFunction
All Implemented Interfaces:
TextFilter

public class HtmlUrlValidateFunction
extends BaseUrlValidateFunction

Validates that a given string is a valid URI and return the HTML escaped string if it is. Otherwise the string # is returned.

See Also:
BaseUrlValidateFunction

Constructor Summary
HtmlUrlValidateFunction(boolean isUnquoted)
          isUnquoted should be true if the URL appears in an unquoted attribute.
 
Method Summary
protected  void applyEscaping(String in, Appendable out)
          Called by filter after verifying that the input is a valid URI.
 
Methods inherited from class com.google.clearsilver.jsilver.functions.html.BaseUrlValidateFunction
filter, isValidUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUrlValidateFunction

public HtmlUrlValidateFunction(boolean isUnquoted)
isUnquoted should be true if the URL appears in an unquoted attribute. like: <a href=<?cs var: uri ?>>

Method Detail

applyEscaping

protected void applyEscaping(String in,
                             Appendable out)
                      throws IOException
Description copied from class: BaseUrlValidateFunction
Called by filter after verifying that the input is a valid URI. Should apply any appropriate escaping to the input string.

Specified by:
applyEscaping in class BaseUrlValidateFunction
Throws:
IOException


Copyright © 2010-2012 Google. All Rights Reserved.