|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@DataBinding(value=org.apache.cxf.xmlbeans.XmlBeansDataBinding.class) public interface RestNegotiation
Interface definition of the RESTful agreement service.
Method Summary | |
---|---|
void |
advertise(AdvertiseInputDocument offers)
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 offers)
Negotiates a set of agreement offers. |
void |
terminate(TerminateInputDocument reason)
Terminates the agreement if permitted. |
Method Detail |
---|
NegotiationPropertiesDocument getNegotiationContext() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableNegotiationPropertiesDocument getNegotiableTemplates() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableNegotiationPropertiesDocument getNegotiationOffers() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailableNegotiateOutputDocument negotiate(NegotiateInputDocument offers) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
offers
- the offers to negotiate
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablevoid advertise(AdvertiseInputDocument offers) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException
offers
- the offers to advertise
NegotiationException
- an error occured processing the negotiation request
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablevoid terminate(TerminateInputDocument reason) throws ResourceUnknownException, ResourceUnavailableException
reason
- the termination reason
ResourceUnknownException
- the referenced resource does not exist
ResourceUnavailableException
- the referenced resource is not availablevoid destroy() throws ResourceUnknownException, ResourceUnavailableException
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 |