public class UriValidator extends Object
| Constructor and Description |
|---|
UriValidator(String encoding) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSafeUri(String canonicalBaseUri,
String uri)
This method returns a safe URI - it firstly URL decodes and then only allows HTTP(s) schemes
|
public UriValidator(String encoding)
@Nullable public String getSafeUri(@Nullable String canonicalBaseUri, String uri)
canonicalBaseUri - The base URI - if no trailing slash one will be provideduri - The uri to resolveCopyright © 2002-2015 Atlassian. All Rights Reserved.