|
||||||||||
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 org.ogf.graap.wsag.client.api.local.LocalNegotiationClient
public class LocalNegotiationClient
Default implementation of a negotiation client for local access to a negotiation instance. Internal use only.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.NegotiationClient |
---|
FACTORY |
Constructor Summary | |
---|---|
LocalNegotiationClient(Negotiation negotiation)
|
Method Summary | |
---|---|
void |
advertise(NegotiationOfferType[] quotes)
Advertises a set of negotiation offers. |
NegotiationClient |
clone()
Returns a copy of the client. |
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. |
RemoteClient |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes)
Negotiates a set of agreement offers. |
void |
terminate()
Terminates a negotiation. |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.NegotiationClientImpl |
---|
getNegotiationOffer |
Methods inherited from class org.ogf.graap.wsag.client.api.impl.AbstractClient |
---|
getProperties, getRemoteReference, getSecurityProperties, isUsingTrace, setProperties, setTrace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalNegotiationClient(Negotiation negotiation)
negotiation
- the negotiation instanceMethod Detail |
---|
public NegotiationClient clone() throws CloneNotSupportedException
clone
in interface NegotiationClient
clone
in class NegotiationClientImpl
CloneNotSupportedException
- indicates that a particular client implementation does not support cloningpublic RemoteClient getRemoteClient()
getRemoteClient
in interface NegotiationClient
getRemoteClient
in class AbstractClient
public NegotiationContextType getNegotiationContext() throws ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
getNegotiationContext
in interface NegotiationClient
getNegotiationContext
in class NegotiationClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType[] getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
getNegotiableTemplates
in interface NegotiationClient
getNegotiableTemplates
in class NegotiationClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
getNegotiationOffers
in interface NegotiationClient
getNegotiationOffers
in class NegotiationClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
negotiate
in interface NegotiationClient
negotiate
in class NegotiationClientImpl
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
NegotiationClientImpl
advertise
in interface NegotiationClient
advertise
in class NegotiationClientImpl
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 ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
terminate
in interface NegotiationClient
terminate
in class NegotiationClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
destroy
in interface NegotiationClient
destroy
in class NegotiationClientImpl
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |