camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-10691) HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match
Date Tue, 17 Jan 2017 11:23:26 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen reassigned CAMEL-10691:
-----------------------------------

    Assignee: Claus Ibsen

> HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-10691
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10691
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-http-common
>    Affects Versions: 2.17.3
>            Reporter: Chandra Bose Renganathan
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.19.0
>
>
> HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match.
> The JAX-RS specification has defined strict sorting and precedence rules for matching
URI expressions and is based on a most specific match wins algorithm.
> For camel also it should be same.
> This is an example use case:
> {code}
> @Override
> public final void configure() throws Exception {
> LOG.info("Configuring Camel routes");
> from("jetty:http://localhost:8080/crud?matchOnUriPrefix=true")
> .to("cxfbean:crudService");
> from("jetty:http://localhost:8080/?matchOnUriPrefix=true")
> .process(new StaticProcessor("/", "index.html", staticFileRoot));
> }
> {code}



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

Mime
View raw message