An alternative would be to have a MimeType class  which had String constant
values for all the common MediaTypes, then you would only need to use
strings if you had a non common media type.

One other thing I've noticed that in some places the mime type is shortened
(e.g. xml instead of text/xml). Is it possible to use the full mime type
across the API if required?

Paul

On Thu, Apr 2, 2009 at 9:13 AM, Stephan Koops <[email protected]> wrote:

> Stephan Koops schrieb:
> > Jonathan Hall schrieb:
> >
> >> Shame you can't have @Get(MediaType.TEXT_HTML). I don't know.
> >>
> > Would it work to change MediaType from class to an enum? That could
> > work, but I'm not sure
>
> While sending the email I remembered: You can't add new MediaTypes this
> way, so we could forget my previous idea.
>
> best regards
>   Stephan
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1520779
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1520903

Reply via email to