|
||||||||||
| 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
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 instance| Method Detail |
|---|
public NegotiationClient clone()
throws CloneNotSupportedException
clone in interface NegotiationClientclone in class NegotiationClientImplCloneNotSupportedException - indicates that a particular client implementation does not support cloningpublic RemoteClient getRemoteClient()
getRemoteClient in interface NegotiationClientgetRemoteClient in class AbstractClient
public NegotiationContextType getNegotiationContext()
throws ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
getNegotiationContext in interface NegotiationClientgetNegotiationContext in class NegotiationClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public AgreementTemplateType[] getNegotiableTemplates()
throws ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
getNegotiableTemplates in interface NegotiationClientgetNegotiableTemplates in class NegotiationClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiationOfferType[] getNegotiationOffers()
throws ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
getNegotiationOffers in interface NegotiationClientgetNegotiationOffers in class NegotiationClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiationOfferType[] negotiate(NegotiationOfferType[] quotes)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
negotiate in interface NegotiationClientnegotiate in class NegotiationClientImplquotes - 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 void advertise(NegotiationOfferType[] quotes)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
advertise in interface NegotiationClientadvertise in class NegotiationClientImplquotes - 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 void terminate()
throws ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
terminate in interface NegotiationClientterminate in class NegotiationClientImplResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public void destroy()
throws ResourceUnknownException,
ResourceUnavailableException
NegotiationClientImpl
destroy in interface NegotiationClientdestroy in class NegotiationClientImplResourceUnknownException - 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 | |||||||||