I realize RESTLet supports multiple encodings based on the Accept Encoding
headers. Does Restlet also have a way to allow encodings based on URI patter
e.g. http://mystores/items/1000.json or something like that ?
--
View this message in context:
http://n2.nabble.com/Multiple-content-types-tp3031
RL
http://localhost:8080/firstStepsServlet/Hello.js the Variant type in the
HelloWorldResource is of MediaType.TEXT_PLAIN
Thanks for Your help
From: Jonathan Hall (via Nabble)
[mailto:ml-user+125526-1692215...@n2.nabble.com]
Sent: Friday, June 05, 2009 1:29 PM
To: Sherif
Subject: Re: Multiple c
I've been trying to add Last-Modified Header via the following code in a Filter
afterHandle method
Form responseHeaders = (Form)
response.getAttributes().get("org.restlet.http.headers");
if (responseHeaders == null)
{
responseHeaders = new Form();
r
7;d send appropriate HTTP 304
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
> Hi Sherif,
>
> For custom headers whatever name you give, "entity.modificati
Brilliant..
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 Last-Modif
Cool,
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 cha
));
getVariants().add(new Variant(MediaType.APPLICATION_JSON));
}
> Hi Sherif,
>
> .js is javascript
> .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 t
7 matches
Mail list logo