项目作者: spapageo

项目描述 :
Asynchronous high throughput kannel client written in Java
高级语言: Java
项目地址: git://github.com/spapageo/jannel.git
创建时间: 2016-04-02T20:34:37Z
项目社区:https://github.com/spapageo/jannel

开源协议:MIT License

下载


Jannel - Java Kannel library

The jannel project implements a client for the bearer-box server using the protocol specified by the Kannel
project. It is implemented using the Netty IO framework for robustness and performance. The design is based on
the well-known cloudhopper-smpp library.

The project is still in beta stages and the API is subject to change.
Will provide releases on the central maven repository and try also to provide snapshots using travis.

Build Status Coverage Status Maven Central
Coverity Scan Build Status

Usage

Include the dependency of your pom file:

  1. <dependency>
  2. <groupId>com.github.spapageo</groupId>
  3. <artifactId>jannel</artifactId>
  4. <version>0.1.1.BETA</version>
  5. </dependency>

Using the library works as follows:

  1. ClientSessionConfiguration config = new ClientSessionConfiguration("awesome_box");
  2. config.setHost("localhost");
  3. config.setPort(12000)
  4. JannelClient jannelClient = new JannelClient(2);
  5. ClientSession session = jannelClient.identify(config, mySessionHandler);
  6. Sms sms = new Sms("hello",
  7. "306975834115",
  8. "Hello World ασδασδ ςαδ`",
  9. SmsType.MOBILE_TERMINATED_PUSH,
  10. DataCoding.DC_UCS2);
  11. WindowFuture<Sms, Ack> future = session.sendSms(sms, 5000, false);
  12. Ack response = future.get();