|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.uri.PrefixUriScrutinizer
public final class PrefixUriScrutinizer
UriScrutinizer implementation matching URIs against allowed prefixes and disallowed prefixes to determine whether to block the URI.
The URI will be allowed if it is prefixed by at least one of the allowed prefixes and it is not prefixed by any of the blocked prefixes.
Instances of this class are immutable once constructed.
Instances of this class are threadsafe and serializable.
| Constructor Summary | |
|---|---|
PrefixUriScrutinizer(String[] allowPrefixesArg,
String[] denyPrefixesArg)
Create a new PrefixUriScrutinizer instance specifying the allowed URI prefixes and the blocked URI prefixes. |
|
| Method Summary | |
|---|---|
List |
getAllowPrefixes()
Get an unmodifiable List of the Strings allowed as prefixes to URIs scrutinized by this PrefixUriScrutinizer. |
List |
getDenyPrefixes()
Get an unmodifiable List of the Strings explicitly denied as prefixes to URIs scrutinized by this PrefixUriScrutinizer. |
static PrefixUriScrutinizer |
instanceFromParameters(String allowPrefixesArg,
String denyPrefixesArg)
|
void |
scrutinize(URI uriArg)
Scrutinize a URI to determine if access to it should be blocked for reasons of policy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrefixUriScrutinizer(String[] allowPrefixesArg,
String[] denyPrefixesArg)
allowPrefixesArg - non-null potentially empty array of StringsdenyPrefixesArg - non-null potentially empty array of Strings| Method Detail |
|---|
public static PrefixUriScrutinizer instanceFromParameters(String allowPrefixesArg,
String denyPrefixesArg)
public void scrutinize(URI uriArg)
throws BlockedUriException
IUriScrutinizer
scrutinize in interface IUriScrutinizeruriArg - non-null URI for examination
BlockedUriException - if access should be blockedpublic List getAllowPrefixes()
public List getDenyPrefixes()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||