users@grizzly.java.net

Re: [Q] GrizzletResponse.setContentType() doesn't reset

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 05 Feb 2008 09:57:53 -0500

Salut,

ALT Mobile DEV wrote:
> Hi,
>
> It seems that GrizzletResponse.setContentType() will sometimes be
> disregarded and use a previous mime type specified. This varies between
> GETs, so sometimes the previous MIME content-type is used by Grizzly and
> other times the new MIME type will be used.

OK looking at this issue now :-)

>
>
> The reason why we switch MIME types between GETs is that one user might
> want to consume their mash-up as an HTML while another as JSON or RSS
> and ATOM. Search engines (Google, Yahoo) also enable the customization
> of the output with the o=xml URL parameter, for example.

I agree. Let me investigate!

Thanks!

-- Jeanfrancois

>
> thanks.
>
>
> --Zaid
>
> http://altmobile.com/Home.html
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>