org.ogf.graap.wsag.client.api
Interface ClientFactory<T>

Type Parameters:
T - the client type
All Known Implementing Classes:
AgreementAcceptanceClientFactory, AgreementAcceptanceClientFactory, AgreementClientFactory, AgreementClientFactory, AgreementFactoryClientFactory, AgreementFactoryClientFactory, AgreementFactoryRegistryClientFactory, AgreementFactoryRegistryClientFactory, NegotiationClientFactory, NegotiationClientFactory

public interface ClientFactory<T>

Factory interface for wsag4j clients.

Author:
Oliver Waeldrich

Field Summary
static String DEFAULT_CONFIGURATION_FILE
          location of the default configuration file
 
Method Summary
 T newInstance(EndpointReferenceType epr)
          Creates a new client for a given endpoint.
 T newInstance(EndpointReferenceType epr, LoginContext context)
          Creates a new client for a given endpoint using the given login context.
 

Field Detail

DEFAULT_CONFIGURATION_FILE

static final String DEFAULT_CONFIGURATION_FILE
location of the default configuration file

See Also:
Constant Field Values
Method Detail

newInstance

T newInstance(EndpointReferenceType epr)
              throws Exception
Creates a new client for a given endpoint. This method can only be used when server side security is disabled.

Parameters:
epr - the factory registry endpoint
Returns:
the factory registry client
Throws:
Exception - the instantiation of the registry implementation failed

newInstance

T newInstance(EndpointReferenceType epr,
              LoginContext context)
              throws Exception
Creates a new client for a given endpoint using the given login context. This method is used when server side security is enabled (default).

Parameters:
epr - the factory registry endpoint
context - the login context to use
Returns:
the factory registry client
Throws:
Exception - the instantiation of the registry implementation failed


Copyright © 2008-2012. All Rights Reserved.