|
||||||||||
| 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.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 use| Method Detail |
|---|
public WsrfResourceClient getWebServiceClient()
public WsrfNegotiationClient clone()
throws CloneNotSupportedException
clone in interface NegotiationClientclone in class NegotiationClientImplCloneNotSupportedException - indicates that a particular client implementation does not support cloning
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 unavailablepublic WsrfResourceClient getRemoteClient()
AbstractClient
getRemoteClient in interface NegotiationClientgetRemoteClient in class AbstractClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||