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:19:50 UTC
[camel-spring-boot] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 54e20ddbbd7 CAMEL-19377: camel-platform-http-vertx - When suspended then return 503 like the other http components
54e20ddbbd7 is described below
commit 54e20ddbbd764af1f9fa78c904959cf00e80aff1
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 438a917b6ae..64dc9eb5145 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
@@ -22,6 +22,8 @@ import jakarta.servlet.http.HttpServletResponse;
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 org.slf4j.LoggerFactory;
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);