org.ogf.graap.wsag.client.api
Interface AgreementAcceptanceClient

All Known Implementing Classes:
RestAgreementAcceptanceClient, WsrfAgreementAcceptanceClient

public interface AgreementAcceptanceClient

When a pending agreement is created, the agreement initiator may specify an acceptance endpoint that is notified on the agreement responders decision, namely the acceptance or rejection of the offer. The AgreementAcceptanceClient defines the Java API for an acceptance service.

Author:
Oliver Waeldrich

Field Summary
static ClientLocator<AgreementAcceptanceClient> FACTORY
          Default builder.
 
Method Summary
 void accept()
          Sends an accept notification to the initiator.
 void destroy()
          Destroys the acceptance instance.
 void reject()
          Sends an reject notification to the initiator.
 

Field Detail

FACTORY

static final ClientLocator<AgreementAcceptanceClient> FACTORY
Default builder.

Method Detail

accept

void accept()
            throws ResourceUnknownException,
                   ResourceUnavailableException
Sends an accept notification to the initiator.

Throws:
ResourceUnknownException - the referenced resource is not known
ResourceUnavailableException - the referenced resource is unavailable

reject

void reject()
            throws ResourceUnknownException,
                   ResourceUnavailableException
Sends an reject notification to the initiator.

Throws:
ResourceUnknownException - the referenced resource is not known
ResourceUnavailableException - the referenced resource is unavailable

destroy

void destroy()
             throws ResourceUnknownException,
                    ResourceUnavailableException
Destroys the acceptance instance.

Throws:
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable


Copyright © 2008-2012. All Rights Reserved.