|
||||||||||
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.rest.RestNegotiationClient
public class RestNegotiationClient
Default implementation of an agreement negotiation client.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.NegotiationClient |
---|
FACTORY |
Constructor Summary | |
---|---|
RestNegotiationClient(EndpointReferenceType epr,
Properties properties,
ISecurityProperties securityProperties)
Instantiates a negotiation client for the given EPR. |
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. |
RestNegotiation |
getNegotiationClient()
Returns the RESTful negotiation client |
NegotiationContextType |
getNegotiationContext()
Returns the context of this negotiation process. |
NegotiationOfferType[] |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
RestRemoteClient<RestNegotiation> |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] offers)
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 RestNegotiationClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
epr
- the negotiation endpoint referenceproperties
- the client propertiessecurityProperties
- the security properties to useMethod Detail |
---|
public RestRemoteClient<RestNegotiation> getRemoteClient()
getRemoteClient
in interface NegotiationClient
getRemoteClient
in class AbstractClient
public NegotiationClient clone() throws CloneNotSupportedException
clone
in interface NegotiationClient
clone
in class NegotiationClientImpl
CloneNotSupportedException
- indicates that a particular client implementation does not support cloningpublic RestNegotiation getNegotiationClient()
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[] offers) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
NegotiationClientImpl
negotiate
in interface NegotiationClient
negotiate
in class NegotiationClientImpl
offers
- 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 |