From commits-return-66639-archive-asf-public=cust-asf.ponee.io@camel.apache.org Wed Nov 14 11:52:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 8C3F718066B for ; Wed, 14 Nov 2018 11:52:13 +0100 (CET) Received: (qmail 7159 invoked by uid 500); 14 Nov 2018 10:52:12 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 7137 invoked by uid 99); 14 Nov 2018 10:52:12 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2018 10:52:12 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0253785720; Wed, 14 Nov 2018 10:52:12 +0000 (UTC) Date: Wed, 14 Nov 2018 10:52:12 +0000 To: "commits@camel.apache.org" Subject: [camel-k] 01/08: chore(runtime) : add a java rest example with restlet MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: lburgazzoli@apache.org In-Reply-To: <154219273181.29913.6608781346723278851@gitbox.apache.org> References: <154219273181.29913.6608781346723278851@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: camel-k X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 98675df75a98a41c0fb942120098c7ceb1b29f47 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20181114105212.0253785720@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit 98675df75a98a41c0fb942120098c7ceb1b29f47 Author: lburgazzoli AuthorDate: Wed Nov 14 11:10:41 2018 +0100 chore(runtime) : add a java rest example with restlet --- runtime/examples/RestWithRestlet.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/runtime/examples/RestWithRestlet.java b/runtime/examples/RestWithRestlet.java new file mode 100644 index 0000000..16c77c7 --- /dev/null +++ b/runtime/examples/RestWithRestlet.java @@ -0,0 +1,21 @@ +// +// To run this integrations use: +// +// kamel run --name=rest-with-restlet --dependency=camel-restlet runtime/examples/RestWithRestlet.java +// +public class RestWithRestlet extends org.apache.camel.builder.RouteBuilder { + @Override + public void configure() throws Exception { + restConfiguration() + .component("restlet") + .host("localhost") + .port("8080"); + + rest() + .get("/hello") + .to("direct:hello"); + + from("direct:hello") + .transform().simple("Hello World"); + } +} \ No newline at end of file