[ 
https://issues.apache.org/jira/browse/CAMEL-12955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708837#comment-16708837
 ] 

ASF GitHub Bot commented on CAMEL-12955:
----------------------------------------

dmvolod commented on a change in pull request #2653: CAMEL-12955 Create a 
Camel-ChatScript component changes
URL: https://github.com/apache/camel/pull/2653#discussion_r238695892
 
 

 ##########
 File path: 
components/camel-chatscript/src/main/java/org/apache/camel/component/chatscript/ChatScriptEndpoint.java
 ##########
 @@ -0,0 +1,145 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.chatscript;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import org.apache.camel.Consumer;
+import org.apache.camel.Processor;
+import org.apache.camel.Producer;
+import org.apache.camel.impl.DefaultEndpoint;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriPath;
+import org.apache.camel.util.ObjectHelper;
+
+/**
+ * Represents a ChatScript endpoint.
+ */
+@UriEndpoint(firstVersion = "2.24.0", scheme = "chatscript", title = 
"ChatScript", syntax = "chatscript:hostname:port/botname",  producerOnly = 
true, label = "ai,chatscript")
+public class ChatScriptEndpoint extends DefaultEndpoint {
+
+    public static final int DEFAULT_PORT = 1024;
 
 Review comment:
   It's better to use separate class/enum for constants

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Create a Camel-ChatScript component
> -----------------------------------
>
>                 Key: CAMEL-12955
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12955
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Varun Krish
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: Future
>
>
> Create new component to interact with ChatScript BOTs.
> Chat Script: [https://github.com/bwilcox-1234/ChatScript]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to