ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Pouwelse (JIRA)" <>
Subject [jira] [Commented] (ACE-532) Use OSGi R6 Http Whiteboard instead of custom http listener
Date Fri, 19 Feb 2016 20:16:18 GMT


Bram Pouwelse commented on ACE-532:

As the bot already noticed, I've added a somewhat bigger PR that not only replaces the org.apache.ace.http.listener
but also binds all Servlets registered by ACE to a custom ServletContext. 

This makes it possible to prefix all ACE servlets (and resources)  with a single configuration
option. This is a lot easier (and less error prone) than the per Servlet endpoint configuration.

For example the RepositoryServlet, by default this is registered at {{}}
by changing the context root for the {{AceServletContextHelper}} to {{/ace}} the repository
servlet will be available at {{}} (all other servlets will move
to {{}} aswel. 

Authentication is also handled in the {{AceServletContextHelper}} so enabling authentication
is also in a single place, and the duplicated authentication code is removed from the Servlets.

What isn't fixed (yet) in this PR is are the "where to find" configurations, there are a lot
of configurations for example to configure the url of the repository servlet. Now you can
move the complete application to another we can change this we just need a place to configure
the location of the server and obr. 

What would be the best way to get this url to all components that need it? Should / can we
use the {{Discovery}} interface for this? 

> Use OSGi R6 Http Whiteboard instead of custom http listener
> -----------------------------------------------------------
>                 Key: ACE-532
>                 URL:
>             Project: ACE
>          Issue Type: Task
>            Reporter: Bram Pouwelse

This message was sent by Atlassian JIRA

View raw message