ro.isdc.wro.extensions.model.resource
Class ConfigurableAntPathPatternsResourceAuthorizationManager
java.lang.Object
ro.isdc.wro.extensions.model.resource.ConfigurableAntPathPatternsResourceAuthorizationManager
- All Implemented Interfaces:
- ResourceAuthorizationManager
public class ConfigurableAntPathPatternsResourceAuthorizationManager
- extends Object
- implements ResourceAuthorizationManager
An implementation of ResourceAuthorizationManager
which authorize the uri based on configured list of uri's
matched using antPath support.
- Since:
- 1.5.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableAntPathPatternsResourceAuthorizationManager
public ConfigurableAntPathPatternsResourceAuthorizationManager()
isAuthorized
public boolean isAuthorized(String uri)
-
- Specified by:
isAuthorized
in interface ResourceAuthorizationManager
- Parameters:
uri
- of the resource to authorize.
- Returns:
- true if the provided uri is an authorized resource.
setPatterns
public void setPatterns(List<String> list)
- Parameters:
list
- set a list of authorized patterns
Copyright © 2008-2013. All Rights Reserved.