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

java.lang.Object
  extended by org.ogf.graap.wsag.client.wsrf.WsrfAgreementAcceptanceClient
All Implemented Interfaces:
AgreementAcceptanceClient

public class WsrfAgreementAcceptanceClient
extends Object
implements AgreementAcceptanceClient

Default implementation of an agreement acceptance client.

Author:
Oliver Waeldrich

Field Summary
 
Fields inherited from interface org.ogf.graap.wsag.client.api.AgreementAcceptanceClient
FACTORY
 
Constructor Summary
WsrfAgreementAcceptanceClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
          Creates a new acceptance client for the given acceptance EPR.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrfAgreementAcceptanceClient

public WsrfAgreementAcceptanceClient(EndpointReferenceType epr,
                                     Properties properties,
                                     ISecurityProperties securityProperties)
Creates a new acceptance client for the given acceptance EPR.

Parameters:
epr - the acceptance EPR
properties - client properties
securityProperties - the client security properties
Method Detail

accept

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

Specified by:
accept in interface AgreementAcceptanceClient
Throws:
ResourceUnknownException - the referenced resource is not known
ResourceUnavailableException - the referenced resource is unavailable

reject

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

Specified by:
reject in interface AgreementAcceptanceClient
Throws:
ResourceUnknownException - the referenced resource is not known
ResourceUnavailableException - the referenced resource is unavailable

destroy

public void destroy()
             throws ResourceUnavailableException
Description copied from interface: AgreementAcceptanceClient
Destroys the acceptance instance.

Specified by:
destroy in interface AgreementAcceptanceClient
Throws:
ResourceUnavailableException - the remote resource is unavailable


Copyright © 2008-2012. All Rights Reserved.