org.ogf.graap.wsag.client.wsrf.impl
Class WsrfAgreementFactoryService

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.impl.WsrfAgreementFactoryService

public class WsrfAgreementFactoryService
extends WsrfResourceClient

Default implementation of an agreement factory service client.

Author:
Oliver Waeldrich
See Also:
AgreementFactoryService

Field Summary
 
Fields inherited from class org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient
ANONYMOUS_EPR, EXTRA_HEADERS
 
Constructor Summary
WsrfAgreementFactoryService(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
          Instantiates an agreement factory service client for the given EPR.
 
Method Summary
 AgreementClient createAgreement(AgreementOffer offer)
          
 AgreementClient createPendingAgreement(AgreementOffer offer)
          
 AgreementClient createPendingAgreement(AgreementOffer offer, EndpointReferenceType acceptanceEPR)
          
 String getResourceId()
          
 AgreementTemplateType[] getTemplates()
          
 WsrfResourceClient getWebServiceClient()
          
 NegotiationClient initiateNegotiation(NegotiationContextType context)
          
 NegotiationClient initiateNegotiation(NegotiationContextType context, EndpointReferenceType initiatorEPR)
          Initiates a new negotiation process with a wsag4j server.
 
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

WsrfAgreementFactoryService

public WsrfAgreementFactoryService(EndpointReferenceType epr,
                                   Properties properties,
                                   ISecurityProperties securityProperties)
Instantiates an agreement factory service client for the given EPR.

Parameters:
epr - the agreement factory service endpoint reference
securityProperties - the security properties to use
Method Detail

getWebServiceClient

public WsrfResourceClient getWebServiceClient()


createAgreement

public AgreementClient createAgreement(AgreementOffer offer)
                                throws AgreementFactoryException,
                                       ResourceUnavailableException,
                                       ResourceUnknownException

Throws:
AgreementFactoryException
ResourceUnavailableException
ResourceUnknownException

createPendingAgreement

public AgreementClient createPendingAgreement(AgreementOffer offer)
                                       throws AgreementFactoryException,
                                              ResourceUnknownException,
                                              ResourceUnavailableException

Throws:
AgreementFactoryException
ResourceUnknownException
ResourceUnavailableException

createPendingAgreement

public AgreementClient createPendingAgreement(AgreementOffer offer,
                                              EndpointReferenceType acceptanceEPR)
                                       throws AgreementFactoryException,
                                              ResourceUnknownException,
                                              ResourceUnavailableException

Throws:
AgreementFactoryException
ResourceUnknownException
ResourceUnavailableException

initiateNegotiation

public NegotiationClient initiateNegotiation(NegotiationContextType context)
                                      throws NegotiationFactoryException,
                                             ResourceUnknownException,
                                             ResourceUnavailableException

Throws:
NegotiationFactoryException
ResourceUnknownException
ResourceUnavailableException

initiateNegotiation

public NegotiationClient initiateNegotiation(NegotiationContextType context,
                                             EndpointReferenceType initiatorEPR)
                                      throws NegotiationFactoryException,
                                             ResourceUnknownException,
                                             ResourceUnavailableException
Initiates a new negotiation process with a wsag4j server.

Parameters:
context - the negotiation context
initiatorEPR - the endpoint of the wsag4j server
Returns:
a new negotiation client
Throws:
NegotiationFactoryException - The negotiation process was not initiated.
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable

getTemplates

public AgreementTemplateType[] getTemplates()
                                     throws ResourceUnavailableException,
                                            ResourceUnknownException

Throws:
ResourceUnavailableException
ResourceUnknownException

getResourceId

public String getResourceId()
                     throws ResourceUnknownException,
                            ResourceUnavailableException

Throws:
ResourceUnknownException
ResourceUnavailableException


Copyright © 2008-2012. All Rights Reserved.