camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Diesler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10139) Multiple verbs for same resource not working in camel-undertow (rest dsl)
Date Fri, 15 Jul 2016 10:22:20 GMT

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

Thomas Diesler commented on CAMEL-10139:
----------------------------------------

The httpMethodRestrict parameter seem to be added late

{code}
12:18:17,652 INFO  [org.apache.camel.component.undertow.UndertowRegistry] (pool-3-thread-1)
Adding consumer to consumerRegistry: http://localhost:8080/camel/rest/hello/%7Bname%7D
12:18:17,657 INFO  [org.wildfly.extension.camel] (pool-3-thread-1) Add Camel endpoint: http://127.0.0.1:8080/camel/rest/hello/{name}
12:18:17,658 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-3-thread-1) Route: route1
started and consuming from: Endpoint[http://localhost:8080/camel/rest/hello/%7Bname%7D?httpMethodRestrict=GET]
12:18:17,661 INFO  [org.apache.camel.component.undertow.UndertowRegistry] (pool-3-thread-1)
Adding consumer to consumerRegistry: http://localhost:8080/camel/rest/hello/%7Bname%7D
12:18:17,661 INFO  [org.wildfly.extension.camel] (pool-3-thread-1) Add Camel endpoint: http://127.0.0.1:8080/camel/rest/hello/{name}
12:18:17,661 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-3-thread-1) Route: route2
started and consuming from: Endpoint[http://localhost:8080/camel/rest/hello/%7Bname%7D?httpMethodRestrict=POST]
12:18:17,663 INFO  [org.apache.camel.component.undertow.UndertowRegistry] (pool-3-thread-1)
Adding consumer to consumerRegistry: http://localhost:8080/camel/rest/hello/%7Bname%7D
12:18:17,664 INFO  [org.wildfly.extension.camel] (pool-3-thread-1) Add Camel endpoint: http://127.0.0.1:8080/camel/rest/hello/{name}
12:18:17,664 INFO  [org.apache.camel.impl.DefaultCamelContext] (pool-3-thread-1) Route: route3
started and consuming from: Endpoint[http://localhost:8080/camel/rest/hello/%7Bname%7D?httpMethodRestrict=PUT]
{code}

> Multiple verbs for same resource not working in camel-undertow (rest dsl)
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-10139
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10139
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-undertow
>    Affects Versions: 2.17.1
>            Reporter: Steve Storck
>            Assignee: Claus Ibsen
>
> The camel-undertow component does not seem to support multiple verbs for the same resource
when using the rest dsl.
> {code:title=Rest DSL Example|borderStyle=solid}
> rest("/example")
>   .get("{pathParamHere}").to("bean:exampleBean?method=handleGet")
>   .put("{pathParamHere}").to("bean:exampleBean?method=handlePut");
> {code}
> The above example will result in only the "put" verb working, and the "get" resource
not found.



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

Mime
View raw message