HelloWorldResource is of MediaType.TEXT_PLAIN
Thanks for Your help
From: Jonathan Hall (via Nabble)
Sent: Friday, June 05, 2009 1:29 PM
Subject: Re: Multiple content types
Have a look at
I've been trying to add Last-Modified Header via the following code in a Filter
Form responseHeaders = (Form)
if (responseHeaders == null)
responseHeaders = new Form();
response or completely process the response.
Ideas/Best Practices to accomplish this without having to get the
HttpServletRequest/Response objects to do this would be great
For custom headers whatever name you give, entity.modificationDate,
will be used.
However, what you
The more I use Restlet the more I am liking it indeed.
Now does Restlet has a framework to take care of Gzip encoding results when the
Request headers indicate that the request is from a client that supports this
encoding (all modern browsers do)
I've been trying to add
This works as you indicate. However implementing this way has a downside. Would
be nice that the framework could take care of sending a 304 even without having
to get a concrete Representation which has a date set.
The idea is to avoid creating a Representation if the Resource has not
.json is json :0)
There is no need to add js or json to the MetadataService as it comes
with a bunch of common ones already.
Remove that line, and try
Mail list logo