|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ogf.graap.wsag.server.rest.RestNegotiationFacade
public class RestNegotiationFacade
| Constructor Summary | |
|---|---|
RestNegotiationFacade(String factoryId,
String negotiationId)
|
|
| Method Summary | |
|---|---|
void |
advertise(AdvertiseInputDocument input)
Advertises a set of negotiation offers. |
void |
destroy()
Destroys the agreement REST resource. |
NegotiationPropertiesDocument |
getNegotiableTemplates()
A negotiation instance supports zero or more templates that can be used to create negotiation offers. |
NegotiationPropertiesDocument |
getNegotiationContext()
Returns the context of this negotiation process. |
NegotiationPropertiesDocument |
getNegotiationOffers()
Returns a history of exchanged offers in this negotiation process. |
NegotiateOutputDocument |
negotiate(NegotiateInputDocument input)
Negotiates a set of agreement offers. |
void |
terminate(TerminateInputDocument reason)
Terminates the agreement if permitted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestNegotiationFacade(String factoryId,
String negotiationId)
| Method Detail |
|---|
public NegotiationPropertiesDocument getNegotiationContext()
throws ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
getNegotiationContext in interface RestNegotiationResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiationPropertiesDocument getNegotiableTemplates()
throws ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
getNegotiableTemplates in interface RestNegotiationResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiationPropertiesDocument getNegotiationOffers()
throws ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
getNegotiationOffers in interface RestNegotiationResourceUnknownException - the remote resource is unknown
ResourceUnavailableException - the remote resource is unavailable
public NegotiateOutputDocument negotiate(NegotiateInputDocument input)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
negotiate in interface RestNegotiationinput - 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(AdvertiseInputDocument input)
throws NegotiationException,
ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
advertise in interface RestNegotiationinput - 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(TerminateInputDocument reason)
throws ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
terminate in interface RestNegotiationreason - the termination reason
ResourceUnknownException - the referenced resource does not exist
ResourceUnavailableException - the referenced resource is not available
public void destroy()
throws ResourceUnknownException,
ResourceUnavailableException
RestNegotiation
destroy in interface RestNegotiationResourceUnknownException - the referenced resource does not exist
ResourceUnavailableException - the referenced resource is not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||