I couldn't find simple example that sends lastmodified/Etag/Cache headers in restlet for GET requests.
Thanks
I couldn't find simple example that sends lastmodified/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