com.centrasite.resourceaccess.factory
Class ResourceAccessManagerFactory

java.lang.Object
  extended by com.centrasite.resourceaccess.factory.ResourceAccessManagerFactory

public final class ResourceAccessManagerFactory
extends java.lang.Object

Factory to produce ResourceAccessManager.


Method Summary
 ResourceAccessManager createResourceManager(java.util.Set<? extends java.lang.Object> info)
          Create a new resource manager.
static java.lang.String getJAASConfiguration(java.lang.String csURL, java.lang.String[] contexts)
          Deprecated.  
static java.lang.String getJAASConfiguration(java.lang.String csURL, java.lang.String[] contexts, java.lang.String csUser, java.lang.String csUserPwd)
          Deprecated.  
static ResourceAccessManagerFactory newInstance()
          New instance of factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static ResourceAccessManagerFactory newInstance()
New instance of factory.


createResourceManager

public ResourceAccessManager createResourceManager(java.util.Set<? extends java.lang.Object> info)
                                            throws java.lang.Exception
Create a new resource manager.
The info set must hold the configuration information and credentials needed for instantiating the API. Note that if info contains a CentraSiteConnection that already has an associated ResourceAccessManager then that ResourceAccessManager will be returned rather than a new instance being created.

System properties:

The info set should have the following content:
Properties collection.

Credentials can be any one of the following:

Required configuration includes:

Example configuration

HashSet<Object> info = new HashSet<Object>();
Properties properties = new Properties();
// the locale is used in Resource Access API as well
properties.setProperty(Constants.LOCALE_PROPERTY, Locale.US.toString());
properties.setProperty("javax.xml.registry.queryManagerURL", DEFAULT_URL);
properties.setProperty("com.centrasite.jaxr.BrowserBehaviour", "yes");
info.add(properties);
PasswordAuthentication authentication = new PasswordAuthentication(USER, PASSWORD);
info.add(authentication);
ResourceAccessManager ram = factory.createResourceManager(info);

Throws:
java.lang.Exception

getJAASConfiguration

public static java.lang.String getJAASConfiguration(java.lang.String csURL,
                                                    java.lang.String[] contexts)
                                             throws java.io.IOException
Deprecated. 

Throws:
java.io.IOException

getJAASConfiguration

public static java.lang.String getJAASConfiguration(java.lang.String csURL,
                                                    java.lang.String[] contexts,
                                                    java.lang.String csUser,
                                                    java.lang.String csUserPwd)
                                             throws java.io.IOException
Deprecated. 

Throws:
java.io.IOException