org.gcube.common.uri.ap
Class CachingSDP
java.lang.Object
org.gcube.common.uri.ap.CachingSDP
- All Implemented Interfaces:
- ScopedAuthorityProvider
public class CachingSDP
- extends Object
- implements ScopedAuthorityProvider
A ScopedAuthorityProvider that caches authorities by the associated scopes.
The provider delegates the identification of the authority to an existing ScopedAuthorityProvider.
- Author:
- Fabio Simeoni
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingSDP
public CachingSDP(ScopedAuthorityProvider cached)
- Creates an instance for a given
ScopedAuthorityProvider.
- Parameters:
cached - the provider.
CachingSDP
public CachingSDP(ScopedAuthorityProvider cached,
int size)
authorityIn
public String authorityIn(String scope)
- Description copied from interface:
ScopedAuthorityProvider
- Returns the naming authority associated a given scope.
- Specified by:
authorityIn in interface ScopedAuthorityProvider
- Parameters:
scope - the scope
- Returns:
- the authority
Copyright © 2013. All Rights Reserved.