|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.graap.wsag.client.impl.NegotiationClientImpl
public abstract class NegotiationClientImpl
NegotiationClientImpl
Constructor Summary | |
---|---|
protected |
NegotiationClientImpl(NegotiationService negotiationClient)
Creates a new negotiation client for the given negotiation service implementation. |
Method Summary | |
---|---|
void |
advertise(NegotiationOfferType[] quotes)
Advertises a set of negotiation offers. |
abstract NegotiationClient |
clone()
Returns a copy of the client. |
void |
destroy()
Destroys this web service object. |
EndpointReferenceType |
getEndpoint()
Returns the endpoint of the client instance. |
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 |
getNegotiationOffer(String offerID)
Returns the Negotiation Offer with the given offer id |
NegotiationOfferType[] |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
Properties |
getProperties()
Returns the properties used by the web-service client. |
ISecurityProperties |
getSecurityProperties()
Returns the security properties used by the web-service client. |
boolean |
isUsingTrace()
Determines whether or not a client prints the web-service messages to the console. |
NegotiationOfferType[] |
negotiate(NegotiationOfferType[] quotes)
Negotiates a set of agreement offers. |
void |
setProperties(Properties properties)
Sets the properties used for the web-service client. |
void |
setTrace(boolean trace)
Sets the clients trace mode. |
void |
terminate()
Terminates a negotiation. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.graap.wsag.api.client.NegotiationService |
---|
getWebServiceClient |
Constructor Detail |
---|
protected NegotiationClientImpl(NegotiationService negotiationClient)
negotiationClient
- the negotiation service client implemenationMethod Detail |
---|
public abstract NegotiationClient clone() throws CloneNotSupportedException
clone
in interface NegotiationClient
clone
in class Object
CloneNotSupportedException
- indicates that a particular client implementation does not support cloningpublic 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 NegotiationOfferType getNegotiationOffer(String offerID) throws ResourceUnknownException, ResourceUnavailableException
getNegotiationOffer
in interface NegotiationClient
offerID
- the offerID of the negotiation offer to retrieve
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void terminate() throws ResourceUnknownException, ResourceUnavailableException
terminate
in interface NegotiationClient
terminate
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
destroy
in interface NegotiationService
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic EndpointReferenceType getEndpoint()
getEndpoint
in interface WsClient
public Properties getProperties()
getProperties
in interface WsClient
public void setProperties(Properties properties)
setProperties
in interface WsClient
properties
- Sets the properties for this clientpublic boolean isUsingTrace()
isUsingTrace
in interface WsClient
public void setTrace(boolean trace)
setTrace
in interface WsClient
trace
- true, if the web service client should traces incoming/outgoing messages.public ISecurityProperties getSecurityProperties()
getSecurityProperties
in interface WsClient
WsrfResourceClient.getSecurityProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |