|
||||||||||
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.wsrf.WsrfNegotiationClient
public class WsrfNegotiationClient
Default implementation of an agreement negotiation client.
Field Summary |
---|
Fields inherited from interface org.ogf.graap.wsag.client.api.NegotiationClient |
---|
FACTORY |
Constructor Summary | |
---|---|
WsrfNegotiationClient(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. |
WsrfNegotiationClient |
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. |
WsrfResourceClient |
getRemoteClient()
Returns the remote client used by this implementation in order to communicate with the WSAG4J server. |
WsrfResourceClient |
getWebServiceClient()
|
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 WsrfNegotiationClient(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
epr
- the negotiation endpoint referencesecurityProperties
- the security properties to useMethod Detail |
---|
public WsrfResourceClient getWebServiceClient()
public WsrfNegotiationClient clone() throws CloneNotSupportedException
clone
in interface NegotiationClient
clone
in class NegotiationClientImpl
CloneNotSupportedException
- indicates that a particular client implementation does not support cloningpublic 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 unavailablepublic WsrfResourceClient getRemoteClient()
AbstractClient
getRemoteClient
in interface NegotiationClient
getRemoteClient
in class AbstractClient
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |