开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜