|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.astrogrid.AcrConnector
public class AcrConnector
Connector which connects to MySpace using the ACR (Astronomy/Astrogrid Client Runtime) server written by Noel Winstanley. This currently uses the XML-RPC interface to the ACR, since this is presumed to make these classes less vulnerable to changes in the ACR interface, and we're only using a small amount of the functionality.
Field Summary | |
---|---|
static String |
CACHE_PROPERTY
Boolean-valued property which determines whether MySpace directories are to be cached. |
Constructor Summary | |
---|---|
AcrConnector()
|
Method Summary | |
---|---|
static boolean |
getCacheDirectories()
Determines whether directories should be cached by default in connections produced by this connector. |
Icon |
getIcon()
Returns an icon which labels this connector. |
AuthKey[] |
getKeys()
Returns an empty array. |
String |
getName()
Returns the name of the type of facility to which this connector can connect. |
Connection |
logIn()
Attempts to open a connection. |
Connection |
logIn(Map authValues)
Attempts to open a connection. |
static void |
main(String[] args)
Utility method which calls one of the ACR services using XML-RPC and prints the result to standard output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CACHE_PROPERTY
Constructor Detail |
---|
public AcrConnector()
Method Detail |
---|
public String getName()
Connector
getName
in interface Connector
public AuthKey[] getKeys()
getKeys
in interface Connector
public Icon getIcon()
Connector
getIcon
in interface Connector
public Connection logIn(Map authValues) throws IOException
Connector
Connector.getKeys()
, with the entry's value
being the value for that key.
Thus the values will typically be the user's name, password, etc.
The values will be either String or char[] values
or null (char[] may be used for hidden values for
security reasons).
logIn
in interface Connector
authValues
- AuthKey->value map containing connection
information
IOException
- if there was some error, for instance
authorization failurepublic Connection logIn() throws IOException
IOException
- if there was some error,
for instance authorization failurepublic static boolean getCacheDirectories()
CACHE_PROPERTY
property.
If the property is unset, it will return false.
public static void main(String[] args) throws Exception
args
- argument
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |