ace-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/ACE-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154802#comment-15154802
] 

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 {{http://my.host/repository}}
by changing the context root for the {{AceServletContextHelper}} to {{/ace}} the repository
servlet will be available at {{http://my.host/ace/repository}} (all other servlets will move
to {{http://my.host/ace/.....}} 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: https://issues.apache.org/jira/browse/ACE-532
>             Project: ACE
>          Issue Type: Task
>            Reporter: Bram Pouwelse
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message