One of the recipes in the O'Reily RESTful Web Services Cookbook outlines a way 
to provide a format-independent means to convey resource links using HTTP 
Headers. Something like this...

# Response
HTTP/1.1 200 OK
Content-Type: application/xml
Link: <http://dss.mc.vanderbilt.edu/patients/123>; 
rel="self;type=application/xml"
Link: <http://dss.mc.vanderbilt.edu/patients/123/problems>; 
rel="related;type=application/xml"

What would be the best way to do this within the Restlet framework? Right now 
my ServerResources don't do any direct manipulation of the Response and are 
pretty lightweight using the ConverterService to handle variant->object and 
object->variant conversions.


Thanks,

Norm

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2996982

Reply via email to