|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.local.LocalWsClient
org.ogf.graap.wsag.client.local.LocalNegotiationServiceImpl
public class LocalNegotiationServiceImpl
Default implementation of a negotiation service client for local access to a negotiation service instance. Internal use only.
Constructor Summary | |
---|---|
LocalNegotiationServiceImpl(Negotiation negotiation)
|
Method Summary | |
---|---|
void |
advertise(NegotiationOfferType[] quotes)
Advertises a set of negotiation offers. |
void |
destroy()
Destroys this web service object. |
AgreementTemplateType[] |
getNegotiableTemplates()
A negotiation instance supports zero or more templates that can be used to create negotiation offers. |
NegotiationContextType |
getNegotiationContext()
Returns the context of this negotiation process. |
NegotiationOfferType[] |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes)
Negotiates a set of agreement offers. |
void |
terminate()
Terminates a negotiation process. |
Methods inherited from class org.ogf.graap.wsag.client.local.LocalWsClient |
---|
getEndpoint, getProperties, getSecurityProperties, getWebServiceClient, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.graap.wsag.api.client.NegotiationService |
---|
getWebServiceClient |
Constructor Detail |
---|
public LocalNegotiationServiceImpl(Negotiation negotiation)
negotiation
- the negotiation serviceMethod Detail |
---|
public NegotiationContextType getNegotiationContext() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationContext
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType[] getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
getNegotiableTemplates
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
getNegotiationOffers
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
negotiate
in interface NegotiationService
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 void advertise(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
advertise
in interface NegotiationService
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 void terminate() throws ResourceUnavailableException, ResourceUnknownException
terminate
in interface NegotiationService
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknownpublic void destroy() throws ResourceUnavailableException, ResourceUnknownException
destroy
in interface NegotiationService
ResourceUnavailableException
- the remote resource is unavailable
ResourceUnknownException
- the remote resource is unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |