org.ogf.graap.wsag.wsrf.impl
Class RemoteAgreementAcceptanceClientImpl

java.lang.Object
  extended by org.ogf.graap.wsag.wsrf.impl.RemoteAgreementAcceptanceClientImpl
All Implemented Interfaces:
WsClient, AgreementAcceptanceClient

public class RemoteAgreementAcceptanceClientImpl
extends Object
implements AgreementAcceptanceClient

Default implementation of an agreement acceptance client.

Author:
Oliver Waeldrich

Constructor Summary
RemoteAgreementAcceptanceClientImpl(EndpointReferenceType epr, ISecurityProperties securityProperties)
          Creates a new acceptance client for the given acceptance EPR.
 
Method Summary
 void accept()
          Sends an accept notification to the initiator.
 EndpointReferenceType getEndpoint()
          Returns the endpoint of the client instance.
 Properties getProperties()
          Returns the properties used by the web-service client.
 ISecurityProperties getSecurityProperties()
          Returns the security properties used by the web-service client.
 boolean isUsingTrace()
          Determines whether or not a client prints the web-service messages to the console.
 void reject()
          Sends an reject notification to the initiator.
 void setProperties(Properties properties)
          Sets the properties used for the web-service client.
 void setTrace(boolean trace)
          Sets the clients trace mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAgreementAcceptanceClientImpl

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

Parameters:
epr - the acceptance EPR
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

getEndpoint

public EndpointReferenceType getEndpoint()
Returns the endpoint of the client instance.

Specified by:
getEndpoint in interface WsClient
Returns:
Returns the endpoint reference for this WS resource.

getProperties

public Properties getProperties()
Returns the properties used by the web-service client.

Specified by:
getProperties in interface WsClient
Returns:
a list of properties associated with the client

getSecurityProperties

public ISecurityProperties getSecurityProperties()
Returns the security properties used by the web-service client.

Specified by:
getSecurityProperties in interface WsClient
Returns:
the security properties for this client

isUsingTrace

public boolean isUsingTrace()
Determines whether or not a client prints the web-service messages to the console.

Specified by:
isUsingTrace in interface WsClient
Returns:
true, if the web service client traces the incoming/outgoing messages.

setProperties

public void setProperties(Properties properties)
Sets the properties used for the web-service client.

Specified by:
setProperties in interface WsClient
Parameters:
properties - Sets the properties for this client

setTrace

public void setTrace(boolean trace)
Sets the clients trace mode.

Specified by:
setTrace in interface WsClient
Parameters:
trace - true, if the web service client should traces incoming/outgoing messages.


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.