|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.UriValidator
public class UriValidator
Verify that a url is not executable Needs to be instantiated to support testing - oh PowerMock wherefore art thou
Constructor Summary | |
---|---|
UriValidator(java.lang.String encoding)
|
Method Summary | |
---|---|
java.lang.String |
getSafeUri(java.lang.String canonicalBaseUri,
java.lang.String uri)
This method returns a safe URI - it firstly URL decodes and then only allows HTTP(s) schemes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UriValidator(java.lang.String encoding)
Method Detail |
---|
public java.lang.String getSafeUri(java.lang.String canonicalBaseUri, java.lang.String uri)
canonicalBaseUri
- The base URI - if no trailing slash one will be provideduri
- The uri to resolve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |