eclipse-archived / californium.core

Californium project
86 stars 69 forks source link

Fix the URI-Reference paring in the LinkFormat parser to match RFC6690 #21

Closed ynh-zz closed 9 years ago

ynh-zz commented 9 years ago

Support uri references which do not start with a slash.

link-value = "<" URI-Reference ">" *( ";" link-param )

jvermillard commented 9 years ago

Can you please fill a CLA: https://wiki.eclipse.org/Development_Resources/Contributing_via_Git#Eclipse_Foundation_Contributor_License_Agreement It should match your commit email. It's mandatory for accepting your contribution Thanks

ynh-zz commented 9 years ago

OK I did sign the CLA

jvermillard commented 9 years ago

thanks for the CLA :) just a question, since I'm not expert on the link format, can you give me a example where you can publish a resource without the leading '/' ?

ynh-zz commented 9 years ago

The lookup requests to the CoRE Resource Directory return a list of non local resources.

Sample response:

 <coap://node1/temp>;rt="temperature"

Source: http://tools.ietf.org/html/draft-ietf-core-resource-directory-00#page-20

jvermillard commented 9 years ago

Thanks! Make sense