| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.repository.WebRepository
public class WebRepository
The WebRepository class implements an interface to the
 Alexandria web repository for sidl symbols in XML.  The URI in the class
 constructor points to the Alexandria database and must use either the
 HTTP or HTTPS (if supported by the JVM) protocols.  The username and
 password of the account must be passed as arguments in the URI as
 follows: https://www.machine.org?username=USERNAME&password=PASSWORD.
| Constructor Summary | |
|---|---|
| WebRepository(java.lang.String repository,
              Context context)The constructor takes a web repository URI with the username and password specified as arguments. | |
| Method Summary | |
|---|---|
|  Symbol | lookupSymbol(java.lang.String fqn)Look up a symbol based on the fully qualified name and retrieve the most recent version that matches the symbol name. | 
|  Symbol | lookupSymbol(SymbolID id)Look up the symbol based on the fully qualified name and version in the web repository. | 
|  void | writeSymbols(java.util.Set symbol_names)Write the symbols in the Setfrom the symbol table to
 the web repository. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WebRepository(java.lang.String repository,
                     Context context)
              throws RepositoryException
RepositoryException| Method Detail | 
|---|
public Symbol lookupSymbol(SymbolID id)
lookupSymbol in interface SymbolResolverpublic Symbol lookupSymbol(java.lang.String fqn)
lookupSymbol in interface SymbolResolver
public void writeSymbols(java.util.Set symbol_names)
                  throws RepositoryException
Set from the symbol table to
 the web repository.  Each set entry is a SymbolID of
 the symbol to be written.
writeSymbols in interface SymbolWriterRepositoryException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||