RE: Bug in MediaType Parameter handling

2010-02-21 Thread Jerome Louvel
5 janvier 2010 12:02 À : discuss@restlet.tigris.org Objet : Re: Bug in MediaType Parameter handling Hello Carsten, the current contract of the valueOf method is to use a "name" such as "application/atom+xml" instead of a complete string with the parameters. In your case, you

Re: Bug in MediaType Parameter handling

2010-01-25 Thread Thierry Boileau
Hello Carsten, the current contract of the valueOf method is to use a "name" such as "application/atom+xml" instead of a complete string with the parameters. In your case, you can use the ContentType constructor with the String parameter. Best regards, Thierry Boileau > Hi, > > when I do the f

Bug in MediaType Parameter handling

2010-01-24 Thread Carsten Lohmann
Hi, when I do the following: --- MediaType mediaType = MediaType.valueOf("application/atom+xml; charset=UTF-8"); System.out.println(mediaType.toString()); --- I get this output (with 2.0M6): application/atom+xml; charset=UTF-8; charset=UTF-8 Seems to be a bug in the handling of parameters. Cheer