
examples.BasicExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sunbot-http Show documentation
Show all versions of sunbot-http Show documentation
A plugin to turn your Suneidesis Chatbot into a HTTP Server
The newest version!
package examples;
import com.harium.suneidesis.chat.Parser;
import com.harium.suneidesis.chat.box.EchoBox;
import com.harium.suneidesis.http.SunbotHttp;
/**
* Simulate client
* curl -XPOST -d '{"message":"Hello World!"}' localhost:11883
*/
public class BasicExample {
public static void main(String[] args) {
Parser bot = new EchoBox();
SunbotHttp http = new SunbotHttp();
http.port(11883);
http.addParser(bot);
http.init();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy