Class Overview
Verify that a url is not executable
Needs to be instantiated to support testing - oh PowerMock wherefore art thou
Summary
Public Methods |
@Nullable
String
|
getSafeUri(String canonicalBaseUri, String uri)
This method returns a safe URI - it firstly URL decodes and then only allows HTTP(s) schemes
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
UriValidator
(String encoding)
Public Methods
@Nullable
public
String
getSafeUri
(String canonicalBaseUri, String uri)
This method returns a safe URI - it firstly URL decodes and then only allows HTTP(s) schemes
Parameters
canonicalBaseUri
| The base URI - if no trailing slash one will be provided |
uri
| The uri to resolve |
Returns
- A resolved URI, null if it is an unsuppported scheme, viz. Javascript