Hi Fabio,
 
Were you able to solve your issue? 
 
Note that the MetadataService is automatically started upon application start, 
unless it is explicitly disabled. Also, no need to
manually add common extensions as they are already added.
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~  <http://www.restlet.org/> 
http://www.restlet.org
Noelios Technologies ~ Co-founder ~  <http://www.noelios.com> 
http://www.noelios.com
 

 
  _____  

De : Stephen Groucutt [mailto:[email protected]] 
Envoye : mardi 23 decembre 2008 22:43
A : [email protected]
Objet : Re: Metadata service


I'm not sure if this is the complete answer, but is your tunnel service 
enabled, and set to tunnel extensions?  You can do something
like (from an Application):

  getTunnelService().setEnabled(true);
  getTunnelService().setExtensionsTunnel(true);



On Tue, Dec 23, 2008 at 4:04 PM, <[email protected]> wrote:


Dear all,

maybe this is a trivial question but I cannot get the MetadataService to work 
as I expect.

I started from the HelloWorld example in 
http://www.restlet.org/documentation/1.1/firstSteps

I added a new Variant to the HelloWorldResource (APPLICATION_ATOM_XML) and 
attached it to the /hello route.

When I GET /hello.atom the variant requested is always TEXT/PLAIN and not, 
APPLICATION_ATOM_XML.

I tried different things in FirstStepsApplication.createRoot() method:

- getMetadataService().addCommonExtensions()
- getMetadataService().setEnabled(true)
- getMetadataService().start()

But I always get the same behavior (i.e., the .atom extension does not trigger 
a request for the ATOM variant)

What is the correct way to setup this behavior?

Thanks,
Fabio

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

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

Reply via email to