|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 NegotiationClientResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract AgreementTemplateType[] getNegotiableTemplates()
throws ResourceUnknownException,
ResourceUnavailableException
getNegotiableTemplates in interface NegotiationClientResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract NegotiationOfferType[] getNegotiationOffers()
throws ResourceUnknownException,
ResourceUnavailableException
getNegotiationOffers in interface NegotiationClientResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
negotiate in interface NegotiationClientquotes - the offers to negotiate
NegotiationException - an error occured processing the negotiation request
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract void advertise(NegotiationOfferType[] quotes)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
advertise in interface NegotiationClientquotes - the offers to advertise
NegotiationException - an error occured processing the negotiation request
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiationOfferType getNegotiationOffer(String offerID)
throws ResourceUnknownException,
ResourceUnavailableException
getNegotiationOffer in interface NegotiationClientofferID - the offerID of the negotiation offer to retrieve
ResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract void terminate()
throws ResourceUnknownException,
ResourceUnavailableException
terminate in interface NegotiationClientResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract void destroy()
throws ResourceUnknownException,
ResourceUnavailableException
destroy in interface NegotiationClientResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public abstract NegotiationClient clone()
throws CloneNotSupportedException
clone in interface NegotiationClientclone in class ObjectCloneNotSupportedException - 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 | |||||||||