|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.api.impl.AbstractClient org.ogf.graap.wsag.client.api.impl.NegotiationClientImpl
public abstract class NegotiationClientImpl
Default implementation of a negotiation client. Concrete implementations must provide a proper implementation of the server interaction.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.NegotiationClient |
---|
FACTORY |
Constructor Summary | |
---|---|
NegotiationClientImpl()
|
Method Summary | |
---|---|
abstract void |
advertise(NegotiationOfferType[] quotes)
Advertises a set of negotiation offers. |
abstract NegotiationClient |
clone()
Returns a copy of the client. |
abstract void |
destroy()
Destroys this web service object. |
abstract AgreementTemplateType[] |
getNegotiableTemplates()
A negotiation instance supports zero or more templates that can be used to create negotiation offers. |
abstract NegotiationContextType |
getNegotiationContext()
Returns the context of this negotiation process. |
NegotiationOfferType |
getNegotiationOffer(String offerID)
Returns the Negotiation Offer with the given offer id |
abstract NegotiationOfferType[] |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
abstract NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes)
Negotiates a set of agreement offers. |
abstract void |
terminate()
Terminates a negotiation. |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.AbstractClient |
---|
getProperties, getRemoteClient, getRemoteReference, getSecurityProperties, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.graap.wsag.client.api.NegotiationClient |
---|
getRemoteClient |
Constructor Detail |
---|
public NegotiationClientImpl()
Method Detail |
---|
public abstract NegotiationContextType getNegotiationContext() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationContext
in interface NegotiationClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract AgreementTemplateType[] getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
getNegotiableTemplates
in interface NegotiationClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract NegotiationOfferType[] getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationOffers
in interface NegotiationClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
negotiate
in interface NegotiationClient
quotes
- the offers to negotiate
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract void advertise(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
advertise
in interface NegotiationClient
quotes
- the offers to advertise
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType getNegotiationOffer(String offerID) throws ResourceUnknownException, ResourceUnavailableException
getNegotiationOffer
in interface NegotiationClient
offerID
- the offerID of the negotiation offer to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract void terminate() throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface NegotiationClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface NegotiationClient
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic abstract NegotiationClient clone() throws CloneNotSupportedException
clone
in interface NegotiationClient
clone
in class Object
CloneNotSupportedException
- indicates that a particular client implementation does not support cloning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |