Hello,
Could someone describe what are the right steps to enable the support for
own media type in Restlet?
An example, my server resource should support MediaType
"application/vnd.aaa.bbb+json". I didn't find any info how to support just
media types..
- do I need to call MediaType.register("application/vnd.aaa.bbb+json",
"blablabla")?
- do I need to call getMetadataService.addExtension("xyz",
MediaType.valueOf("application/vnd.aaa.bbb+json"))? and what should be the
extension value "xyz"? Up to me?
- what should be the value of @Get? "xyz"?
- do I need to define why own class for the representation? The format of
my media type is JSON, but I cannot use JsonRepresentation because its
media type is "application/json".
- any code examples for using own media types?
Thanks in advance.
Ivan
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2888132