public class AcrConnector extends Object implements Connector
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_PROPERTY
Boolean-valued property which determines whether MySpace directories
are to be cached.
|
Constructor and Description |
---|
AcrConnector() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String CACHE_PROPERTY
public String getName()
Connector
public AuthKey[] getKeys()
public Icon getIcon()
Connector
public Connection logIn(Map authValues) throws IOException
Connector
authValues
map contains an entry for each of
the keys returned by 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
informationIOException
- 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
- argumentException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.