cancel
Showing results for 
Search instead for 
Did you mean: 

URL mapping in Share

johnorange
Champ in-the-making
Champ in-the-making
Hi there,

I am trying to develop an extension for the Share client. One issue I ran into is the url path. It should be something like this share/page/appExtensionName/welcome, and for further work share/page/appExtensionName/{username}/{functionalityOfExtension}.

Can you please give me some hints as to where should I start reading about the url mapping and how can I implement this?

Best regards,
JO
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
you can read the uritemplate specification in JSR-311 or google  with key word "uri template restful"

johnorange
Champ in-the-making
Champ in-the-making
1. Hi Kayne, many thanks for the follow up. Very good starting point.

2. Does anyone know where in Share I need to make changes to accomodate parsing of new uris?

The out of the box dispacher servlet parses "page/" routes. I would wish to accomodate a route say page/appExtensionName/welcome, where the actual page is welcome.xml, and the appExtensionName is used only to logically associate the pages to the appExtension.

Many thanks in advance for your time.

Best,
JO

kaynezhang
World-Class Innovator
World-Class Innovator
alfresco share has used url rewrite (please check share/WEB-INF/urlrewrite.xml) and  is builded on surf framework,you 'd better have a look at them first .