All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class w3c.jigsaw.auth.RealmsCatalog
java.lang.Object
   |
   +----w3c.jigsaw.auth.RealmsCatalog
  -  public class RealmsCatalog
  -  extends Object
  -  implements ResourceStoreHolder
   
  -   repository repository
-   Our realm repository.
  
-   server server
-   Our associated server.
  
-   store store
-   Our realm's store.
   
  -   RealmsCatalog(httpd) RealmsCatalog(httpd)
-  
  
-   RealmsCatalog(httpd, String) RealmsCatalog(httpd, String)
-  
   
  -   acceptStoreUnload(ResourceStore) acceptStoreUnload(ResourceStore)
-   ResourceStoreHolder implementation - Unload the store.
  
-   acquireStore() acquireStore()
-   Acquire the store.
  
-   enumerateRealmNames() enumerateRealmNames()
-   Enumerate the list of available realms.
  
-   getRepository() getRepository()
-   Get our repository.
  
-   loadRealm(String) loadRealm(String)
-   Load the given realm and return the AuthRealm instance.
  
-   notifyStoreShutdown(ResourceStore) notifyStoreShutdown(ResourceStore)
-   The resource store asks us to shutdown our associated store.
  
-   notifyStoreStabilize(ResourceStore) notifyStoreStabilize(ResourceStore)
-   ResourceStoreHolder implementation - Save our store.
  
-   registerRealm(AuthRealm) registerRealm(AuthRealm)
-   register the given new realm.
  
-   save() save()
-   Save the catalog back to disk.
  
-   unregisterRealm(String) unregisterRealm(String)
-   Unregister the given realm from the catalog.
   
 repository
repository
 protected File repository
  -  Our realm repository.
 
 store
store
 protected ResourceStore store
  -  Our realm's store.
 
 server
server
 protected httpd server
  -  Our associated server.
 
   
 RealmsCatalog
RealmsCatalog
 public RealmsCatalog(httpd server)
 RealmsCatalog
RealmsCatalog
 public RealmsCatalog(httpd server,
                      String repository)
   
 acquireStore
acquireStore
 protected synchronized void acquireStore()
  -  Acquire the store.
 Should only be called from a synchronized method.
 
 getRepository
getRepository
 public File getRepository()
  -  Get our repository.
 
 loadRealm
loadRealm
 public synchronized AuthRealm loadRealm(String name)
  -  Load the given realm and return the AuthRealm instance.
   
- 
    -  Parameters:
    
-  name - The realm identifier.
  
 
 enumerateRealmNames
enumerateRealmNames
 public synchronized Enumeration enumerateRealmNames()
  -  Enumerate the list of available realms.
 
 registerRealm
registerRealm
 public synchronized void registerRealm(AuthRealm realm)
  -  register the given new realm.
   
- 
    -  Parameters:
    
-  realm - The new realm to register.
  
 
 unregisterRealm
unregisterRealm
 public synchronized void unregisterRealm(String name)
  -  Unregister the given realm from the catalog.
   
- 
    -  Parameters:
    
-  name - The name of the catalog.
  
 
 save
save
 public synchronized void save()
  -  Save the catalog back to disk.
 
 acceptStoreUnload
acceptStoreUnload
 public synchronized boolean acceptStoreUnload(ResourceStore st)
  -  ResourceStoreHolder implementation - Unload the store.
   
- 
    -  Parameters:
    
-  st - The store to unload.
    
-  Returns:
    
-  A boolean true if store was successfully
    unloaded.
  
 
 notifyStoreShutdown
notifyStoreShutdown
 public void notifyStoreShutdown(ResourceStore st)
  -  The resource store asks us to shutdown our associated store.
   
- 
    -  Parameters:
    
-  st - The store to shutdown.
  
 
 notifyStoreStabilize
notifyStoreStabilize
 public void notifyStoreStabilize(ResourceStore st)
  -  ResourceStoreHolder implementation - Save our store.
   
- 
    -  Parameters:
    
-  st - The store to be saved.
    
-  Returns:
    
-  A boolean true if saving the store is now
    not modified.
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index