org.gcube.common.uri.ap
Class CachingSDP

java.lang.Object
  extended by 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

Constructor Summary
CachingSDP(ScopedAuthorityProvider cached)
          Creates an instance for a given ScopedAuthorityProvider.
CachingSDP(ScopedAuthorityProvider cached, int size)
           
 
Method Summary
 String authorityIn(String scope)
          Returns the naming authority associated a given scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingSDP

public CachingSDP(ScopedAuthorityProvider cached)
Creates an instance for a given ScopedAuthorityProvider.

Parameters:
cached - the provider.

CachingSDP

public CachingSDP(ScopedAuthorityProvider cached,
                  int size)
Method Detail

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.