org.ogf.graap.wsag.client
Class AgreementFactoryRegistryLocator

java.lang.Object
  extended by org.ogf.graap.wsag.client.AgreementFactoryRegistryLocator

public class AgreementFactoryRegistryLocator
extends Object

The AgreementFactoryLocator returns a new agreement factory instance.

Author:
Oliver Waeldrich

Field Summary
static String REGISTRY_LOCATOR
          System property key to lookup AgreementFactoryRegistryBuilder implementation
 
Constructor Summary
AgreementFactoryRegistryLocator()
           
 
Method Summary
static AgreementFactoryRegistryClient getFactoryRegistry(EndpointReferenceType epr)
          Creates a new AgreementFactoryRegistryClient for the given endpoint.
static AgreementFactoryRegistryClient getFactoryRegistry(EndpointReferenceType epr, LoginContext context)
          Creates a new AgreementFactoryRegistryClient for the given endpoint and with the given LoginContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGISTRY_LOCATOR

public static final String REGISTRY_LOCATOR
System property key to lookup AgreementFactoryRegistryBuilder implementation

See Also:
Constant Field Values
Constructor Detail

AgreementFactoryRegistryLocator

public AgreementFactoryRegistryLocator()
Method Detail

getFactoryRegistry

public static final AgreementFactoryRegistryClient getFactoryRegistry(EndpointReferenceType epr)
                                                               throws Exception
Creates a new AgreementFactoryRegistryClient for the given endpoint. This method is only used if server side security is disabled.

Parameters:
epr - the agreement factory registry endpoint
Returns:
the new AgreementFactoryRegistryClient
Throws:
Exception - indicates an error while querying the factory clients from the registry

getFactoryRegistry

public static final AgreementFactoryRegistryClient getFactoryRegistry(EndpointReferenceType epr,
                                                                      LoginContext context)
                                                               throws Exception
Creates a new AgreementFactoryRegistryClient for the given endpoint and with the given LoginContext. This method is used if server side security is enabled (default).

Parameters:
epr - the agreement factory registry endpoint
context - the login context to use
Returns:
the new AgreementFactoryRegistryClient
Throws:
Exception - indicates an error while querying the factory clients from the registry


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.