FAQ
Hello,

netty4-http strips the starting endpoint path so the target is relative to
the endpoint uri

How can it work with securtiy config based on url in the example below ?
  That doesn't work as expected because the target is empty...

Here is my route defined in rest dsl with netty4-http component :

<rest path="/part">
       <get uri="/list/cities" consumes="application/json"
produces="application/json">


and a constraint url based


  <bean id="constraint"
   class="org.apache.camel.component.netty4.http.SecurityConstraintMapping">
   <property name="exclusions">
    <set>
     <value>/part/*</value>
    </set>
   </property>
   <property name="inclusions">
    <map>
     <entry key="/part/list/cities" value="*" />
    </map>
   </property>
  </bean>

Thanks in advance for your help...

Regards
J-M



--
View this message in context: http://camel.465427.n5.nabble.com/netty4-http-and-security-constraint-don-t-work-as-expected-tp5772712.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedOct 16, '15 at 11:17a
activeOct 16, '15 at 11:17a
posts1
users1
websitecamel.apache.org

1 user in discussion

Jmh: 1 post

People

Translate

site design / logo © 2021 Grokbase