At the moment I have a log of this type of code in my Resource class
if (entity.getMediaType().equals(MediaType.APPLICATION_GNU_ZIP)) {
} else if
(entity.getMediaType().equals(MediaType.APPLICATION_JAVA_OBJECT)) {
} else {
}
Just wondering whether there is any utility or class that will
automatically route a request for a Resource to a Representation based
on the MediaType.
Can you declaratively register what MediaTypes a particular Resource
supports and the Representation it maps too.
cheers
</jima>