I like to solve application problems using the Web (statelessness, hypermedia, self-descriptive representations, and uniform interfaces) to produce an asymptotically tight bound solution!

Monday, May 18, 2009

CMIS XII: Must-understand signaling in app:accept

Since rudimentary AtomPub clients may be unduly surprised when a sophisticated CMIS AtomPub server summarily rejects a POST request with a hard to understand response. So, it is best to forewarn such clients about the requirements of the server.

To do this, one would need to use a must-understand signaling mechanism in AtomPub, of which there is exactly ONE in standard AtomPub. The app:accept element's content signals to the client what type of content the server is willing to accept. If the request fails because the content does not meet the expectations of the server, a 415 response is generated. This means the rudimentary client can easily understand the sophisticated server. Plus, the sophisticated server now has a means of conveying additional information to the sophisticated client. And, best of all, no permission is needed from anyone at IETF, unlike the registration for "type", although an IANA registration for the parameter would be good to have.

0 comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License. All materials on this blog are either the original work of its owner or used with acknowledgement of the copyright owner. 

About Me

My Photo
I have been an avid student of the evolution of the Web and its application to business problems.

Blog Archive

Label Cloud