You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/05/23 07:20:15 UTC
[camel-spring-boot] branch camel-spring-boot-3.x updated: CAMEL-19377: camel-platform-http-vertx - When suspended then return 503 like the other http components
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-spring-boot-3.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/camel-spring-boot-3.x by this push:
new 31991b09273 CAMEL-19377: camel-platform-http-vertx - When suspended then return 503 like the other http components
31991b09273 is described below
commit 31991b09273f61344f1b040029acae5496f5a484
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue May 23 09:19:41 2023 +0200
CAMEL-19377: camel-platform-http-vertx - When suspended then return 503 like the other http components
---
.../platform/http/springboot/SpringBootPlatformHttpConsumer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
index ec3d454bbc9..0e9c6e41dee 100644
--- a/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
+++ b/components-starter/camel-platform-http-starter/src/main/java/org/apache/camel/component/platform/http/springboot/SpringBootPlatformHttpConsumer.java
@@ -19,6 +19,8 @@ package org.apache.camel.component.platform.http.springboot;
import org.apache.camel.Exchange;
import org.apache.camel.ExchangePattern;
import org.apache.camel.Processor;
+import org.apache.camel.Suspendable;
+import org.apache.camel.SuspendableService;
import org.apache.camel.component.platform.http.PlatformHttpEndpoint;
import org.apache.camel.http.common.DefaultHttpBinding;
import org.apache.camel.http.common.HttpHelper;
@@ -31,7 +33,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
-public class SpringBootPlatformHttpConsumer extends DefaultConsumer {
+public class SpringBootPlatformHttpConsumer extends DefaultConsumer implements Suspendable, SuspendableService {
private static final Logger LOG = LoggerFactory.getLogger(SpringBootPlatformHttpConsumer.class);