Would this be the way to implement your solution :

**************************CODE*****************

        @Override
        protected void doInit() throws ResourceException {
        MetadataService ms = new MetadataService();
        ms.addCommonExtensions();
        ms.addExtension("uri", MediaType.TEXT_URI_LIST);

        this.getVariants().add(new Variant(MediaType.APPLICATION_RDF_XML));
        this.getVariants().add(new Variant(MediaType.TEXT_URI_LIST));
        this.getVariants().add(new Variant(MediaType.TEXT_HTML));
    }

    @Get("txt|html|text|htm")
    public String represent() {
        return getHTMLFeatureList();
    }

    @Get("uri")
    public String representURI() {
        return getURIFeatureList();
    }

*********************END CODE************************


Regards
Surajit
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/correct-extension-for-media-type-text-uri-list-tp5630664p6007789.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to