public abstract class BaseUrlValidateFunction extends Object implements TextFilter
applyEscaping.
Note: this function does not validate that the URI is well-formed beyond the scheme part (and if the URI appears to be relative, not even then). Note in particular that this function considers strings of the form "www.google.com:80" to be invalid.
| Constructor and Description |
|---|
BaseUrlValidateFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyEscaping(String in,
Appendable out)
Called by
filter after verifying that the input is a valid URI. |
void |
filter(String in,
Appendable out) |
protected boolean |
isValidUri(String in) |
public void filter(String in, Appendable out) throws IOException
filter in interface TextFilterIOExceptionprotected abstract void applyEscaping(String in, Appendable out) throws IOException
filter after verifying that the input is a valid URI. Should apply any
appropriate escaping to the input string.IOExceptionprotected boolean isValidUri(String in)
Copyright © 2010–2015 Google. All rights reserved.