You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/06/27 08:59:13 UTC

[camel] 02/02: camel-platform-http-vertx: Make some methods protected in VertxPlatformHttpConsumer so that they can be overridden

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 5dd3c12e67c55241156d679d758ec7cfea843d51
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Jun 27 08:17:48 2022 +0100

    camel-platform-http-vertx: Make some methods protected in VertxPlatformHttpConsumer so that they can be overridden
---
 .../component/platform/http/vertx/VertxPlatformHttpConsumer.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
index 3679fd97efa..4a8072f8764 100644
--- a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
+++ b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
@@ -161,7 +161,7 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
         return PATH_PARAMETER_PATTERN.matcher(path).replaceAll(":$1");
     }
 
-    private void handleRequest(RoutingContext ctx) {
+    protected void handleRequest(RoutingContext ctx) {
         final Vertx vertx = ctx.vertx();
         final Exchange exchange = toExchange(ctx);
 
@@ -221,7 +221,7 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
                 });
     }
 
-    private Exchange toExchange(RoutingContext ctx) {
+    protected Exchange toExchange(RoutingContext ctx) {
         final Exchange exchange = createExchange(false);
         exchange.setPattern(ExchangePattern.InOut);
 
@@ -240,7 +240,7 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
         return exchange;
     }
 
-    private Message toCamelMessage(RoutingContext ctx, Exchange exchange) {
+    protected Message toCamelMessage(RoutingContext ctx, Exchange exchange) {
         final Message result = exchange.getIn();
 
         final HeaderFilterStrategy headerFilterStrategy = getEndpoint().getHeaderFilterStrategy();
@@ -284,7 +284,7 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
         return result;
     }
 
-    private void populateAttachments(List<FileUpload> uploads, Message message) {
+    protected void populateAttachments(List<FileUpload> uploads, Message message) {
         for (FileUpload upload : uploads) {
             final String name = upload.name();
             final String fileName = upload.fileName();