|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 RestNegotiation
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationPropertiesDocument getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
RestNegotiation
getNegotiableTemplates
in interface RestNegotiation
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiationPropertiesDocument getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
RestNegotiation
getNegotiationOffers
in interface RestNegotiation
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic NegotiateOutputDocument negotiate(NegotiateInputDocument input) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
RestNegotiation
negotiate
in interface RestNegotiation
input
- 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(AdvertiseInputDocument input) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
RestNegotiation
advertise
in interface RestNegotiation
input
- 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(TerminateInputDocument reason) throws ResourceUnknownException, ResourceUnavailableException
RestNegotiation
terminate
in interface RestNegotiation
reason
- the termination reason
ResourceUnknownException
- the referenced resource does not exist
ResourceUnavailableException
- the referenced resource is not availablepublic void destroy() throws ResourceUnknownException, ResourceUnavailableException
RestNegotiation
destroy
in interface RestNegotiation
ResourceUnknownException
- 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 |