org.ogf.graap.wsag.client.wsrf
Class WsrfAgreementFactoryRegistryClient

java.lang.Object
  extended by org.ogf.graap.wsag.client.api.RemoteClient
      extended by org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient
          extended by org.ogf.graap.wsag.client.wsrf.WsrfAgreementFactoryRegistryClient
All Implemented Interfaces:
AgreementFactoryRegistryClient

public class WsrfAgreementFactoryRegistryClient
extends WsrfResourceClient
implements AgreementFactoryRegistryClient

Default implementation of an agreement factory client.

Author:
Oliver Waeldrich

Field Summary
 
Fields inherited from class org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient
ANONYMOUS_EPR, EXTRA_HEADERS
 
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementFactoryRegistryClient
FACTORY
 
Constructor Summary
WsrfAgreementFactoryRegistryClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
          Instantiates a new agreement factory client for the given endpoint reference.
 
Method Summary
 AgreementFactoryClient getFactory(String resourceId)
          Returns an AgreementFactoryClient for the factory with the given resource id or null if no factory with that resource id exists.
 AgreementFactoryClient[] listAgreementFactories()
          Lists all agreement factories at the given endpoint.
 
Methods inherited from class org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient
deleteResourceProperty, destroy, getDefaultSOAPClient, getEndpoint, getMultipleResourceProperties, getProperties, getResourceProperty, getResourcePropertyDocument, getSecurityProperties, invoke, isUseDefaultSOAPClient, isUsingTrace, queryResourceProperties, setDefaultSOAPClient, setProperties, setResourceProperties, setTerminationTime, setTrace, setUseDefaultSOAPClient, updateResourceProperty
 
Methods inherited from class org.ogf.graap.wsag.client.api.RemoteClient
getRemoteReference, setSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrfAgreementFactoryRegistryClient

public WsrfAgreementFactoryRegistryClient(EndpointReferenceType epr,
                                          Properties properties,
                                          ISecurityProperties securityProperties)
Instantiates a new agreement factory client for the given endpoint reference.

Parameters:
epr - the agreement factory EPR
securityProperties - the security properties
Method Detail

listAgreementFactories

public AgreementFactoryClient[] listAgreementFactories()
                                                throws ResourceUnknownException,
                                                       ResourceUnavailableException
Lists all agreement factories at the given endpoint.

Specified by:
listAgreementFactories in interface AgreementFactoryRegistryClient
Returns:
a set of AgreementFactoryClient available at the given endpoint
Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable

getFactory

public AgreementFactoryClient getFactory(String resourceId)
                                  throws ResourceUnknownException,
                                         ResourceUnavailableException
Description copied from interface: AgreementFactoryRegistryClient
Returns an AgreementFactoryClient for the factory with the given resource id or null if no factory with that resource id exists.

Specified by:
getFactory in interface AgreementFactoryRegistryClient
Parameters:
resourceId - the factory resource id
Returns:
the agreement factory client for the requested resource id or null if no factory with the given id exists
Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable


Copyright © 2008-2012. All Rights Reserved.