====================
开发说明(README)
This is a webim plugin demo for struts2 web application.
Demo
====
Import 'Webim' Project to Eclipse EE.
Create Tomcat Server and Run
Access: http://localhost:8080/Webim/
Developer Guide
===============
Create Database
---------------
import install.sql
Coding WebimPlugin.java
-----------------------
implements these methods:
```java
public WebimEndpoint endpoint();
public List<WebimEndpoint> buddies(String uid);
List<WebimEndpoint> buddiesByIds(String uid, String[] ids);
public WebimRoom findRoom(String roomId);
public List<WebimRoom> rooms(String uid);
public List<WebimRoom> roomsByIds(String uid, String[] ids);
public List<WebimMember> members(String roomId);
public List<WebimNotification> notifications(String uid);
```
Coding WebimModel.java
-----------------------
Histories
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>
```
网友评论