org.ogf.graap.wsag.client.rest.builder
Class AgreementAcceptanceClientFactory

java.lang.Object
  extended by org.ogf.graap.wsag.client.rest.builder.AgreementAcceptanceClientFactory
All Implemented Interfaces:
ClientFactory<AgreementAcceptanceClient>

public class AgreementAcceptanceClientFactory
extends Object
implements ClientFactory<AgreementAcceptanceClient>

Author:
owaeld

Field Summary
 
Fields inherited from interface org.ogf.graap.wsag.client.api.ClientFactory
DEFAULT_CONFIGURATION_FILE
 
Constructor Summary
AgreementAcceptanceClientFactory()
           
 
Method Summary
 AgreementAcceptanceClient newInstance(EndpointReferenceType epr)
          Creates a new client for a given endpoint.
 AgreementAcceptanceClient newInstance(EndpointReferenceType epr, LoginContext context)
          Creates a new client for a given endpoint using the given login context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgreementAcceptanceClientFactory

public AgreementAcceptanceClientFactory()
Method Detail

newInstance

public AgreementAcceptanceClient newInstance(EndpointReferenceType epr)
                                      throws Exception
Description copied from interface: ClientFactory
Creates a new client for a given endpoint. This method can only be used when server side security is disabled.

Specified by:
newInstance in interface ClientFactory<AgreementAcceptanceClient>
Parameters:
epr - the factory registry endpoint
Returns:
the factory registry client
Throws:
Exception - the instantiation of the registry implementation failed

newInstance

public AgreementAcceptanceClient newInstance(EndpointReferenceType epr,
                                             LoginContext context)
                                      throws Exception
Description copied from interface: ClientFactory
Creates a new client for a given endpoint using the given login context. This method is used when server side security is enabled (default).

Specified by:
newInstance in interface ClientFactory<AgreementAcceptanceClient>
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.