This is an automated email from the ASF dual-hosted git repository.
zbendhiba pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new d532686bc60 Platform-http: Remove vert.x specific code from Jetty
example (#8449)
d532686bc60 is described below
commit d532686bc60ce9d66094e74e4953632c9c66b3bc
Author: Zineb BENDHIBA <[email protected]>
AuthorDate: Fri Sep 30 11:39:29 2022 +0200
Platform-http: Remove vert.x specific code from Jetty example (#8449)
---
.../platform/http/JettyCustomPlatformHttpConsumer.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
index ec3bc5c0ce2..f1bb46af1ff 100644
---
a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
+++
b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java
@@ -43,7 +43,7 @@ public class JettyCustomPlatformHttpConsumer extends
DefaultConsumer {
protected void doStart() throws Exception {
super.doStart();
final PlatformHttpEndpoint endpoint = getEndpoint();
- final String path = configureEndpointPath(endpoint);
+ final String path = endpoint.getPath();
JettyServerTest jettyServerTest = CamelContextHelper.mandatoryLookup(
getEndpoint().getCamelContext(),
@@ -113,13 +113,4 @@ public class JettyCustomPlatformHttpConsumer extends
DefaultConsumer {
return (PlatformHttpEndpoint) super.getEndpoint();
}
- private String configureEndpointPath(PlatformHttpEndpoint endpoint) {
- String path = endpoint.getPath();
- if (endpoint.isMatchOnUriPrefix()) {
- path += "*";
- }
- // Transform from the Camel path param syntax /path/{key} to vert.x
web's /path/:key
- return PATH_PARAMETER_PATTERN.matcher(path).replaceAll(":$1");
- }
-
}