注意: NexTalk架构上采用跨域JSONP/WebSocket,所有插件开发包依赖NexTalk消息服务器。您可以本站注册使用我们的在线消息服务器,或购买消息服务器程序版权本地部署。

WebIM-for-Struts1


立即下载 开源代码

开发说明(README)


webim-for-struts1
====================

This is a webim plugin demo for struts1 web application.

Demo
====

1. Import 'Webim' Project to Eclipse EE.

2. Create Tomcat Server and Run

3. Access: http://localhost:8080/Webim/

Developer Guide
===============

Create Database
---------------

import install.sql

Coding WebimPlugin.java
-----------------------

implements these methods:

```java

1.  public WebimEndpoint endpoint();

2.  public List<WebimEndpoint> buddies(String uid);

3.  List<WebimEndpoint> buddiesByIds(String uid, String[] ids);

4.  public WebimRoom findRoom(String roomId);

5.  public List<WebimRoom> rooms(String uid);

6.  public List<WebimRoom> roomsByIds(String uid, String[] ids);

8.  public List<WebimMember> members(String roomId);

9.  public List<WebimNotification> notifications(String uid);

```

Coding WebimModel.java
-----------------------

1. Histories

2. Settings


Coding Config
-------------

You should change the WebimConfig.java, and load configurations from database or xml.

Webim Javascript
-----------------------

Insert Javascript code below to web pages that need to display Webim:

```javascript

	<script type="text/javascript" src="/Webim/boot.do"></script>

```
 

购买联系

和他聊下

  • QQ: 554351251
  • 手机: 13777441516
  • 邮箱: sale@nextalk.im

技术支持

和他聊下

  • QQ: 1852861655
  • 手机: 18958095588
  • 邮箱: support@nextalk.im