Provide a mechanism to map Page classes in specific package to a particular URL 
path
------------------------------------------------------------------------------------

                 Key: CLK-738
                 URL: https://issues.apache.org/jira/browse/CLK-738
             Project: Click
          Issue Type: Improvement
          Components: core
    Affects Versions: 2.4.0
            Reporter: Han
            Priority: Trivial


It will be good if there is a mechanism to map Page classes within a particular 
package to a specific URL.
For example, I have Page classes sitting in the following packages:

com.mycorp.page.admin
com.mycorp.page.workspace
com.mycorp.page.public

I would like to be able to configure the following mapping:

/secured/user_admin.htm                        --> 
com.mycorp.page.admin.UserAdminPage.java
/secured/workspace_admin.htm            --> 
com.mycorp.page.admin.WorkspaceAdminPage.java
/secured/workspace_dashboard.htm    --> 
com.mycorp.page.workspace.WorkspaceDashboardPage.java
/public_notice.htm                                      --> 
com.mycorp.page.public.PublicNoticePage.htm

So basically, I would like to map all the pages in  'com.mycorp.page.admin' and 
'com.mycorp.page.workspace' to the path '/secured', 
and map all the pages in 'com.mycorp.page.public' to the root directory of the 
webapp. 

By doing so, this would provide me the following benefits:
1. Maintain independence between the URL path and the package structure
2. Easily configure security framework such as Shiro or Acegi to protect URL 
path







-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Reply via email to