Send lastmodified/Etag/Cache headers in restlet for GET request
I couldn't find simple example that sends lastmodifie开发者_如何学编程d/Etag/Cache headers in restlet for GET requests.
Thanks
You are probably looking for the RepresentationInfo
Class and it's associated member functions that can help you do this: http://www.restlet.org/documentation/2.0/jse/api/org/restlet/representation/RepresentationInfo.html
It has 4 primary methods get/set Tag/ModificationDate
You can directly call them from the Representation
class since it's a subclass of RepresentationInfo
精彩评论