Interface IResourceAccessControl
-
- All Known Implementing Classes:
ListedResourceAccessControl
public interface IResourceAccessControl
Interface for enforcing access control to a resource specified by a URI or URL.- Since:
- 7.0.10
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAccessAllowed(URI uri)
Checks whether the given URI may be accessed or whether access is forbidden.boolean
isAccessAllowed(URL url)
Checks whether the given URL may be accessed or whether access is forbidden.
-
-
-
Method Detail
-
isAccessAllowed
boolean isAccessAllowed(URI uri) throws ResourceAccessCheckException
Checks whether the given URI may be accessed or whether access is forbidden.- Parameters:
uri
- URI to check.- Returns:
true
when the URI may be accessed,false
otherwise.- Throws:
ResourceAccessCheckException
- When the URI could not be checked. The exact behavior when an exception is thrown depends on the logic that uses this interface.
-
isAccessAllowed
boolean isAccessAllowed(URL url) throws ResourceAccessCheckException
Checks whether the given URL may be accessed or whether access is forbidden.- Parameters:
url
- URL to check.- Returns:
true
when the URL may be accessed,false
otherwise.- Throws:
ResourceAccessCheckException
- When the URL could not be checked. The exact behavior when an exception is thrown depends on the logic that uses this interface.
-
-