org.gcube.common.uri.ap
Class ScopedPropertyAP

java.lang.Object
  extended by org.gcube.common.uri.ap.ScopedPropertyAP
All Implemented Interfaces:
ScopedAuthorityProvider

public class ScopedPropertyAP
extends Object
implements ScopedAuthorityProvider

A ScopedAuthorityProvider that provides authorities configured in a AUHTORITY_PROVIDER_PROPERTY_FILE.

The file must be available as a top-level classpath resource.

Author:
Fabio Simeoni

Field Summary
static String AUHTORITY_PROVIDER_PROPERTY_FILE
          The name of the authorities configuration file
 
Constructor Summary
ScopedPropertyAP()
          Creates an instance.
 
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
 

Field Detail

AUHTORITY_PROVIDER_PROPERTY_FILE

public static final String AUHTORITY_PROVIDER_PROPERTY_FILE
The name of the authorities configuration file

See Also:
Constant Field Values
Constructor Detail

ScopedPropertyAP

public ScopedPropertyAP()
Creates an instance.

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.