CN105207878A - Instant communication method and system - Google Patents

Instant communication method and system Download PDF

Info

Publication number
CN105207878A
CN105207878A CN201410240339.9A CN201410240339A CN105207878A CN 105207878 A CN105207878 A CN 105207878A CN 201410240339 A CN201410240339 A CN 201410240339A CN 105207878 A CN105207878 A CN 105207878A
Authority
CN
China
Prior art keywords
request
content
request message
client
user name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410240339.9A
Other languages
Chinese (zh)
Inventor
曹海红
程仁波
聂运富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FOUNDER DIGITAL PUBLISHING TECHNOLOGY (SHANGHAI) CO LTD
Peking University Founder Information Industry Group Co Ltd
Peking University Founder Group Co Ltd
Original Assignee
FOUNDER DIGITAL PUBLISHING TECHNOLOGY (SHANGHAI) CO LTD
Peking University Founder Information Industry Group Co Ltd
Peking University Founder Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FOUNDER DIGITAL PUBLISHING TECHNOLOGY (SHANGHAI) CO LTD, Peking University Founder Information Industry Group Co Ltd, Peking University Founder Group Co Ltd filed Critical FOUNDER DIGITAL PUBLISHING TECHNOLOGY (SHANGHAI) CO LTD
Priority to CN201410240339.9A priority Critical patent/CN105207878A/en
Publication of CN105207878A publication Critical patent/CN105207878A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides an instant communication method and system, and relates to the communication field. The instant communication method is applied to a real-time cooperation Openfire server and comprises the steps of: receiving a request message having a grammar rule from a client end, wherein the request information includes a user name and request content, and the request content carries the service type of the request message, a service name corresponding to the service type and an access parameter corresponding to the service name; judging whether the grammar rule of the request message is consistent with a message grammar rule predefined by the Openfire server, wherein the predefined message grammar rule includes a preset service type, a preset service name corresponding to the preset service type and a preset access parameter corresponding to the preset service name; when the grammar rule of the request message is consistent with the predefined message grammar rule, analyzing the request message of the client end; and packaging the analyzed request message, searching corresponding content, and returning a request result to the client end after obtaining the corresponding request result.

Description

A kind of method and system of instant messaging
Technical field
The present invention relates to the communications field, particularly relate to a kind of method and system of instant messaging.
Background technology
Person to person needs communication.Recent years, along with popularizing of mobile device, as the extension of conventional internet, the fast development of mobile Internet, gives people more freely, and people obtain and the mode of sharing information becomes whenever and wherever possible, instant messaging moves towards mobile terminal from personal computer pc, become more that word is as its name, the mobile terminal immediate communication tool being representative with micro-letter shoots up, and affects our habits and customs.
EIM (EnterpriseInstantMessaging) enterprise instant communication, based on enterprise staff, one centered by action is linked up and collaboration platform, be different from social class instant messaging IM (towards individual, a kind of loose relation is there is between user), traditional chat provides man-machine simple response.
Summary of the invention
The object of the present invention is to provide a kind of method and system of instant messaging, solve the problem of man-machine simple response.
In order to solve the problems of the technologies described above, the method for a kind of instant messaging that the embodiment of the present invention provides, apply a live collaboration server Openfire server, wherein, described method comprises:
Receive the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request message, described service type and corresponds to the access parameter of described Service name;
Judge that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
When the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolve the described request message of described client;
Encapsulate the described request message be resolved to, search corresponding described request content, after obtaining the request results of a correspondence, described request result is returned to described client.
Further, encapsulate the described request message be resolved to, search corresponding described request content, after obtaining the request results of a correspondence, the concrete steps that described request result returns to described client are comprised:
After resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
After determining the content of the public sphere that described request content provides for described Openfire server, encapsulate the request content of the described request message be resolved to, search corresponding described request content, obtain the request results of a correspondence;
Described request result is encapsulated as the content being adapted to the display of described client, returns to described client.
Further, encapsulate the described request message be resolved to, search corresponding described request content, after obtaining the request results of a correspondence, the concrete steps that described request result returns to described client are comprised:
After resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
After determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Described request result is encapsulated as the content being adapted to the display of described client, returns to described client.
Further, receiving the request message of client, before comprising the request content carrying user name and request service classification in wherein said request message, also comprising:
Receive the logging request from the different mail server of described client, wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
According to the user name of described logging request, judge whether that there are the access rights of accessing described Openfire server;
After judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
Forward described logging request on corresponding mail server, carry out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
Receive from the mailbox authentication result of described mail server, when this mailbox authentication result is by certification, allow described terminal to log in request message that described Openfire server carries out client described in receipt of subsequent.
Further, according to the user name of described logging request, judge whether that the concrete steps with the access rights of accessing described Openfire server comprise:
When receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server according to the user name of described logging request, obtaining a lookup result;
According to described lookup result, judge whether that there are the access rights of accessing described Openfire server.
In order to solve the problems of the technologies described above, the embodiment of the present invention also provides a kind of system of instant messaging, is applied to an Openfire server, and wherein, described system comprises:
First acquisition module, for receiving the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request message, described service type and corresponds to the access parameter of described Service name;
First judge module, for judging that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
First processing module, for when the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolves the described request message of described client;
Second processing module, for encapsulating the described request message be resolved to, searching corresponding described request content, after obtaining the request results of a correspondence, described request result being returned to described client.
Further, described second processing module comprises:
First judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
First processing unit, for after determining the content of the public sphere that described request content provides for described Openfire server, encapsulates the request content of the described request message be resolved to, searches corresponding described request content, obtain the request results of a correspondence;
Second processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
Further, described second processing module comprises:
Second judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
3rd processing unit, for after determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Fourth processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
Further, described system also comprises:
Second acquisition module, for receiving the logging request of the different mail server from described client, wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
Second judge module, for the user name according to described logging request, judges whether to have the access rights of accessing described Openfire server;
3rd judge module, for after judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
First control module, for forwarding described logging request to corresponding mail server, carries out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
3rd processing module, for receiving the mailbox authentication result from described mail server, when this mailbox authentication result is by certification, allow described terminal to log in request message that described Openfire server carries out client described in receipt of subsequent.
Further, described second judge module comprises:
Search unit, for when receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server according to the user name of described logging request, obtaining a lookup result;
3rd judging unit, for according to described lookup result, judges whether to have the access rights of accessing described Openfire server.
The beneficial effect of technique scheme of the present invention is as follows:
In the solution of the present invention, after Openfire server obtains the request message of client, carry out judging that whether the syntax rule of request message is consistent with the syntax rule of the predefined message of Openfire server, when consistent, resolve the described request message of described client, search corresponding described request content, after obtaining the request results of a correspondence, described request result is returned to described client.Like this by the syntax rule of the predefined message of Openfire server, the several functions of customization is provided, client can obtain these information by request message, realize client in instant messaging, obtain more network service, expand range of application to a great extent, achieve the purposes variation of immediate communication platform.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the method for the instant messaging of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the application of the method for the instant messaging of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the concrete example of the method for the instant messaging of the embodiment of the present invention;
Fig. 4 is the structural representation of the system of the instant messaging of the embodiment of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The invention provides a kind of method and system of instant messaging, the syntax rule of message is pre-defined by Openfire server, the several functions of customization is provided, client can obtain these information by request message, realize client in instant messaging, obtain more network service, expand range of application to a great extent, achieve the purposes variation of immediate communication platform.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of instant messaging, is applied to an Openfire server, and wherein, described method comprises:
Step 1, receive the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request, described service type and corresponds to the access parameter of described Service name;
Step 2, judge that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
In above-mentioned steps 2, definition communication syntax rule realizes the access to network service, the default access parameter of the preset service name that the above-mentioned preset service classification of above-mentioned syntax rule, above-mentioned preset service classification are corresponding and correspondence above-mentioned preset service name corresponds to respectively: service type, Service name, access parameter, wherein said access parameter comprises (method parameter, parameter value (... ..)), Openfire server is self-defined by above-mentioned syntax rule, customization enterprise many services.Such as inquire about weather forecast: serviceweathecityName can inquire about the weather forecast on the somewhere same day, increase the weather that parameter value-dyyyy-MM-dd can inquire about the scheduled date.
Step 3, when the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolves the described request message of described client;
Step 4, encapsulates the described request message be resolved to, searches corresponding described request content, after obtaining the request results of a correspondence, described request result is returned to described client.
Received the request message of client by step 1 after, the syntax rule that step 12 judges the request content in request message whether with syntax rule (the preset service classification of the predefined message of Openfire server, the default access parameter of preset service name corresponding to described preset service classification and correspondence described preset service name) whether consistent, when request message is consistent with the syntax rule of Openfire server, the described request message of described client is resolved by step 3, then by step 4 request message be resolved to is encapsulated and searches corresponding request content, and described request result is returned to described client.Like this by the self-defined a set of service message communication syntax rule of Openfire server, make user by the network service obtaining more practicalities in immediate communication platform, as shown in Figure 2, (sending/receiving common message on the existing common function of existing social class instant messaging IM, to reach the standard grade state notifying, file transfer etc.), for enterprise's applied customization departmental service number, questionnaire, work attendance, collaborative work, and more response type service is provided, complete the communication process that human and computer enriches more.
The embodiment of the present invention can be developed in client, and the functional interface provided according to server and service message rule, complete corresponding interface development and functional realiey; Android Android platform mobile terminal uses client class libraries smack exploitation.
Above-mentioned Openfire server assume responsibility for client's side link management simultaneously, the routing function of information record and information; Monitor client's side link, and directly communicate with client application; Communicate with other XMPP server, forward XML and flow element to the client, server etc. of authorizing.Due to using the Openfire that increases income as server platform, the agreement XMPP of Openfire to the subset X ML based on standard generalized markup language provides complete realization and support, has increased oneself expanded function newly simultaneously.
Above-mentioned client is connected to Single-Server (can use safety socket layer ssl) by transmission control protocol/Internet Protocol tcp/ip, tissue/send, reception/parsing extend markup language XML information, the function that acquisition server or other relevant service provide.Complexity is transferred to server end from client by XMPP.XMPP client is communicated at 5222 ports of transmission control protocol (TCP) socket by XML with service end, and does not need directly to communicate between client.Use communication protocol based on XMPP.XMPP is a kind of open real-time communication protocol based on XML, is characterized in open, flexibly, and easily extensible and fail safe (more information is with reference to XMPP); The opening of XML allows to customize more enterprises service according to business demand.Expand the range of application of traditional instant messaging so to a great extent, achieve the purposes variation of immediate communication platform.
In order to increase the operability of client, the Command encapsulate that grammaticalness defines can be become graphical interfaces, user clicks menu and namely may have access to corresponding network service; Simultaneously for advanced level user provides Command Line Interface, user helps to understand order line using method by checking, checks the service list that current platform is supported:
Applicable field: as shown in Figure 2, a. departmental service number: the message of receiving department's service number broadcast, the service (pay close attention to Human Resource Department: inquiry training program, corporate welfare system, inquires about my performance) that simultaneously departmental service number can be used to provide;
B. attendance record: inquiry staff attendance writing function is provided, needs attendance checking system to provide high-performance propulsion system beforehand research plan ws to serve; By identifying fingerprint in local area network (LAN), existing attendance checking system can be replaced gradually, in this system, realizing attendance checking function;
C. survey: enterprise or department can provide questionnaire, to sign or non-tangible mode, understands Employee Attitude and demand;
D. work collaborative: server end or client define or release tasks, and formulate flow of task, this task is circulated between different role or employee according to set flow process, and each role or employee complete the part of oneself, thus jointly accomplish a task.
As shown in Figure 3, the specific embodiment of embodiment of the present invention application is exemplified below.
Instant messaging content one is produced: click in the client of instant messaging " my pay sheet " menu, select in February, 2014, corresponding client Envelope command is: servicesalary-m201402 (or directly at order line terminal input servicesalary-m201402)
<?xmlversion="1.0"encoding="utf-8"?>
<messagefrom="user1example.com"to="serviceexample.net"xml:lang="en">
<body>servicesalary-m201402</body>
</message>。
Then by instant messaging content two: the message body that the Openfire server of instant messaging receives is servicesalary-m201402, current user name user1 is obtained from server, corresponding webserviceURL is found to be http://www.service.com/, designation method path is /user/salary, using user name username and month 201402 as parameter access the method, inquire about the pay sheet in February, 2014, instant communication server by return results be encapsulated as be suitable for client display form after return to instant communication client, result is showed user by client.
<?xmlversion="1.0"encoding="utf-8"?>
<messagefrom="serviceexample.com"to="user1example.net"xml:lang="en">
& lt;Body>& lt;Html>& lt;Head>& lt;Title>& lt;/ title>& lt;Styletype = "text/CSS" & gt;Table. The c1 {width: 100%;} & lt;/ style>& lt;/ head>& lt;Body>& lt;Tableclass = "c1" cellpadding = "2" cellspacing = "0" border = "1" & gt;& lt;Tbody>& lt;Tr>& lt;Td>Employee name & lt;/ td>& lt;Td>Basic salary & lt;/ td>& lt;Td>Bonus & lt;/ td>& lt;Td>The individual income tax & lt;/ td>& lt;Td>Social security & lt;Br>& lt;/ td>& lt;Td>The public accumulation fund for housing construction & lt;/ td>& lt;Td>Date & lt;/ td>& lt;/ tr>& lt;Tr>& lt;Td>Zhou landlord & lt;/ td>& lt;Td>5000.00 & lt;/ td>& lt;Td>1000.00 & lt;/ td>& lt;Td>212.2 & lt;/ td>& lt;Td>523.00 & lt;/ td>& lt;Td>678.25 & lt;/ td>& lt;Td>2014.2 & lt;/ td>& lt;/ tr>& lt;/ tbody>& lt;/ table>& lt;/ body>& lt;/ html>& lt;/ body>
</message>。
Openfire server due to instant messaging provides the function of multiple customization, and in the method for the therefore instant messaging of the embodiment of the present invention, step 14 comprises:
Step 411, after resolving described request message, according to the service type of the described request message of carrying in the described request content of described request message, the Service name that described service type is corresponding and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
Step 421, after determining the content of the public sphere that described request content provides for described Openfire server, encapsulates the request content of the described request message be resolved to, searches corresponding described request content, obtain the request results of a correspondence;
Step 431, is encapsulated as the content being adapted to the display of described client, returns to described client by described request result.
Because client exists, query contents after login Openfire server, Openfire server just can know the form that client shows, when returning to client-requested result, just request results is encapsulated as the form of the content being adapted to client shows, avoid, due to incompatible and cannot Query Information, improving accuracy and the practicality of Query Information.
Due to the existence of multiple user, and because of inquiry content not identical, each user has the field of to one's name privacy, can not share with all, and in the method for therefore instant messaging of the present invention, step 14 comprises:
Step 412, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
Above-mentioned private domain relates to the content needing employee individual to maintain secrecy of employee's privacy or company's setting.
Step 422, after determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Step 432, is encapsulated as the content being adapted to the display of described client, returns to described client by described request result.
The content (as work attendance or emolument etc.) of accessing to one's name privacy user can by sending the request message of oneself, Openfire server can carry out judging whether to belong to private domain, if private domain, then find corresponding message, send it back client.Like this by the self-defined setting of Openfire server, not only can guarantee the fail safe of user profile, provide user and the diversity exchanging content of machine simultaneously, achieve the purposes diversity of immediate communication platform.
Like this based on enterprise (employee), enterprise organization structure and address list are core, realize the instant messaging of mobile terminal-mobile terminal-traditional pc end, core is by the service of self-defining syntax rule customization enterprise, help terminal use in immediate communication platform, obtain the network service of more practicalities, expand the range of application of traditional instant messaging to a great extent, achieve the purposes variation of immediate communication platform.
If when client does not log in Openfire server, Openfire server just cannot receive the request message from client, in the method for the therefore instant messaging of the embodiment of the present invention, also comprises before step 1:
Step 11, receives the logging request of the different mail server from described client, and wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
In step 11, user name wherein can be the user name arranged by the mailbox website domain name addresses correspondence of user, also can be directly use mailbox website domain name addresses.
Different mail server above-mentioned in step 11 refers to that, by Tengxun's mail server, other mail servers with independent authentication identity such as Sina's mail server or Yahoo's mail server carry out proxy authentication.
Step 12, according to the user name of described logging request, judges whether the access rights with this Openfire server of access;
The authority of Openfire server above-mentioned in step 12 refers to employee or the employee of address list on the books in Openfire server before of the same local area network (LAN) can accessing this Openfire server.
Step 13, after judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
The judgement of the mail server type in above-mentioned steps 13 can be can judge it is which concrete mailbox server type by the mailbox website domain name addresses of user name.
Step 14, forwards described logging request on corresponding mail server, carries out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
Step 15, receives the mailbox authentication result from described mail server, when this mailbox authentication result is by certification, and allow described terminal to log in request message that this Openfire server carries out client described in receipt of subsequent.
Realize Openfire certification by step 15, use the certification of existing corporate mail system completing user, realize and existing system integrated.
After there are access rights by user, (can use and be stored in advance in enterprise's address list of enterprise platform system through conventional Email Accounts, user is in login process, the login account whether having coupling can be searched, determine whether logon rights), different mailbox server can be used presetting by sharing information of sign-on access enterprise, register separately new login account without user like this and visit enterprise platform system, also the process that user keeps new account firmly in mind is saved, user can by not belonging on same mailbox platform simultaneously, login identical platform completes to be shared, check and preset by sharing information, convenient for users, add the information mutual communication of enterprise.
Being exemplified below of the specific embodiment of the invention.
Citing one: if user logs in the platform of our company by QQ mailbox, the platform of our company can by the address list of our company, first judge whether the employee A belonging to our company, if employee is A, and then carry out being transmitted to corresponding Tengxun server by the platform of our company and carry out certification, at Tengxun's server authentication by afterwards, the platform of our company receives an authentication result, then the access rights of employee A are judged, such as employee A is only to access the Attendance Sheet of oneself, emolument, and the relevant information that can not obtain other people.Employee A can upload the needs of oneself by the information shared to the public domain of company.
Identify whether have authority, in the method for the therefore instant authentication communication of the embodiment of the present invention, the concrete steps of step 12 comprise if logging in this Openfire server to can accurately search:
Step 121, when receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server, obtaining a lookup result according to the user name of described logging request;
The above-mentioned address list presetting described enterprise database is input in this address list by collecting enterprise staff information, can carry out searching of address list in the process of carrying out certification.
Step 122, according to described lookup result, judges whether to have the access rights of accessing described Openfire server.
Above-mentioned access rights comprise sees whether be the employee preset accessing this enterprise Openfire server by searching.
Realize the configuration of Openfire data source by above-mentioned steps 121 and 122, for Openfire provides user data source, read enterprise's address list, share existing employee's user profile.
As shown in Figure 4, the embodiment of the present invention also provides a kind of system of instant messaging, is applied to an Openfire server, wherein, comprises:
First acquisition module 41, for receiving the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request message, described service type and corresponds to the access parameter of described Service name;
First judge module 42, for judging that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
First processing module 43, for when the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolves the described request message of described client;
Second processing module 44, for encapsulating the described request message be resolved to, searching corresponding described request content, after obtaining the request results of a correspondence, described request result being returned to described client.
After receiving the request message of client by the first acquisition module 41, the syntax rule that first judge module 42 judges the request content in request message whether with the predefined message of Openfire server comprise preset service classification, whether preset service name corresponding to described preset service classification be consistent with the syntax rule of the default access parameter of correspondence described preset service name, when request message is consistent with the syntax rule of Openfire server, first processing module 43 resolves the described request message of described client, then by the second processing module 44 request message be resolved to is encapsulated and searches corresponding request content, described request result is returned to described client.A set of service message communication syntax rule is defined like this by Openfire server, make user by the network service obtaining more practicalities in immediate communication platform, on the existing common function of existing social class instant messaging IM (sending/receiving common message, state notifying of reaching the standard grade, file transfer etc.), for enterprise's applied customization departmental service number, questionnaire, work attendance, collaborative work, and more response type service is provided, realize the communication process that human and computer enriches more.
In the instant communicating system of another embodiment of the present invention, described second processing module 44 comprises:
First judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
First processing unit, for after determining the content of the public sphere that described request content provides for described Openfire server, encapsulates the request content of the described request message be resolved to, searches corresponding described request content, obtain the request results of a correspondence;
Second processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
In the instant communicating system of another embodiment of the present invention, described second processing module 44 comprises:
Second judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
3rd processing unit, for after determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Fourth processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
Also comprise in the instant communicating system of another embodiment of the present invention:
Second acquisition module, for receiving the logging request of the different mail server from described client, wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
Second judge module, for the user name according to described logging request, judges whether to have the access rights of accessing described Openfire server;
3rd judge module, for after judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
First control module, for forwarding described logging request to corresponding mail server, carries out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
3rd processing module, for receiving the mailbox authentication result from described mail server, when this mailbox authentication result is by certification, allow described terminal to log in request message that described Openfire server carries out client described in receipt of subsequent.
In the instant communicating system of another embodiment of the present invention, described second judge module comprises:
Search unit, for when receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server according to the user name of described logging request, obtaining a lookup result;
3rd judging unit, for according to described lookup result, judges whether to have the access rights of accessing described Openfire server.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a method for instant messaging, apply a live collaboration server Openfire server, it is characterized in that, described method comprises:
Receive the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request message, described service type and corresponds to the access parameter of described Service name;
Judge that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
When the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolve the described request message of described client;
Encapsulate the described request message be resolved to, search corresponding described request content, after obtaining the request results of a correspondence, described request result is returned to described client.
2. method according to claim 1, is characterized in that, encapsulates the described request message be resolved to, searches corresponding described request content, after obtaining the request results of a correspondence, the concrete steps that described request result returns to described client comprised:
After resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
After determining the content of the public sphere that described request content provides for described Openfire server, encapsulate the request content of the described request message be resolved to, search corresponding described request content, obtain the request results of a correspondence;
Described request result is encapsulated as the content being adapted to the display of described client, returns to described client.
3. method according to claim 1, is characterized in that, encapsulates the described request message be resolved to, searches corresponding described request content, after obtaining the request results of a correspondence, the concrete steps that described request result returns to described client comprised:
After resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
After determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Described request result is encapsulated as the content being adapted to the display of described client, returns to described client.
4. method according to claim 1, is characterized in that, is receiving the request message of client, before comprising the request content carrying user name and request service classification, is also comprising in wherein said request message:
Receive the logging request from the different mail server of described client, wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
According to the user name of described logging request, judge whether that there are the access rights of accessing described Openfire server;
After judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
Forward described logging request on corresponding mail server, carry out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
Receive from the mailbox authentication result of described mail server, when this mailbox authentication result is by certification, allow described terminal to log in request message that described Openfire server carries out client described in receipt of subsequent.
5. method according to claim 4, is characterized in that, according to the user name of described logging request, judges whether that the concrete steps with the access rights of accessing described Openfire server comprise:
When receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server according to the user name of described logging request, obtaining a lookup result;
According to described lookup result, judge whether that there are the access rights of accessing described Openfire server.
6. a system for instant messaging, be applied to an Openfire server, it is characterized in that, described system comprises:
First acquisition module, for receiving the request message with syntax rule of client, wherein said request message comprises user name and request content, and wherein said request content carries Service name corresponding to the service type of described request message, described service type and corresponds to the access parameter of described Service name;
First judge module, for judging that whether the syntax rule of described request message is consistent with the syntax rule of the predefined message of described Openfire server, the syntax rule of wherein said predefined message comprises: the default access parameter of the preset service name that preset service classification, described preset service classification are corresponding and correspondence described preset service name;
First processing module, for when the syntax rule of described request message is consistent with the syntax rule of described predefined message, resolves the described request message of described client;
Second processing module, for encapsulating the described request message be resolved to, searching corresponding described request content, after obtaining the request results of a correspondence, described request result being returned to described client.
7. system according to claim 6, is characterized in that, described second processing module comprises:
First judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the public sphere that described Openfire server provides;
First processing unit, for after determining the content of the public sphere that described request content provides for described Openfire server, encapsulates the request content of the described request message be resolved to, searches corresponding described request content, obtain the request results of a correspondence;
Second processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
8. system according to claim 6, is characterized in that, described second processing module comprises:
Second judging unit, after resolving described request message, the Service name corresponding according to the service type of the described request message of carrying in the described request content of described request message, described service type and correspond to the access parameter of described Service name, judges that whether described request content is the content of the private domain of the described user name of described request message;
3rd processing unit, for after determining that the request content in described request message is the content of the private domain of described user name, encapsulate user name and the described request content of the described request message be resolved to, search corresponding request content according to described user name, obtain the request results of a correspondence;
Fourth processing unit, for described request result being encapsulated as the content being adapted to the display of described client, returns to described client.
9. system according to claim 6, is characterized in that, also comprises:
Second acquisition module, for receiving the logging request of the different mail server from described client, wherein said logging request comprises the user name and the login password corresponding with the user name of described logging request that carry website domain name addresses;
Second judge module, for the user name according to described logging request, judges whether to have the access rights of accessing described Openfire server;
3rd judge module, for after judging that the user name of described logging request has access rights, the mail server type that the described logging request that judgement receives is corresponding;
First control module, for forwarding described logging request to corresponding mail server, carries out mailbox certification to utilize the user name of described logging request and login password at described mail server place;
3rd processing module, for receiving the mailbox authentication result from described mail server, when this mailbox authentication result is by certification, allow described terminal to log in request message that described Openfire server carries out client described in receipt of subsequent.
10. system according to claim 9, is characterized in that, described second judge module comprises:
Search unit, for when receiving described logging request, searching the user name that whether there is described logging request in the address list presetting enterprise database in described Openfire server according to the user name of described logging request, obtaining a lookup result;
3rd judging unit, for according to described lookup result, judges whether to have the access rights of accessing described Openfire server.
CN201410240339.9A 2014-05-30 2014-05-30 Instant communication method and system Pending CN105207878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410240339.9A CN105207878A (en) 2014-05-30 2014-05-30 Instant communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410240339.9A CN105207878A (en) 2014-05-30 2014-05-30 Instant communication method and system

Publications (1)

Publication Number Publication Date
CN105207878A true CN105207878A (en) 2015-12-30

Family

ID=54955327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410240339.9A Pending CN105207878A (en) 2014-05-30 2014-05-30 Instant communication method and system

Country Status (1)

Country Link
CN (1) CN105207878A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481342A (en) * 2016-06-07 2017-12-15 腾讯科技(深圳)有限公司 Attendance checking system, method, server and terminal
CN109951375A (en) * 2019-02-25 2019-06-28 南京金信通信息服务有限公司 Method and system based on mailing system triggering SAP system business function
CN112017047A (en) * 2020-08-24 2020-12-01 普源精电科技股份有限公司 Option yield distribution method and related device
CN113489634A (en) * 2021-06-16 2021-10-08 中企链信(北京)科技有限公司 Inter-enterprise collaborative instant messaging extension method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500210A (en) * 2009-03-16 2009-08-05 北京北纬点易信息技术有限公司 Instant communication method with low transmission load based on XMPP protocol and system thereof
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP
CN103067259A (en) * 2012-12-24 2013-04-24 符晓友 Method and device used for sending and display and execution of special message instructions and based on instant messaging
CN103118069A (en) * 2012-12-26 2013-05-22 上海现代先进超精密制造中心有限公司 Method of achieving instant messaging among set top boxes based on extensible messaging and presence protocol (XMPP) agreement
CN103338182A (en) * 2013-05-09 2013-10-02 闫凤麒 Health data communication method based on XMPP (extension message and presence protocol)
US20130305029A1 (en) * 2010-12-23 2013-11-14 Claus Rist Method for automatic start up of a communication terminal configured for voice communication on a communication terminal configured for text communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500210A (en) * 2009-03-16 2009-08-05 北京北纬点易信息技术有限公司 Instant communication method with low transmission load based on XMPP protocol and system thereof
US20130305029A1 (en) * 2010-12-23 2013-11-14 Claus Rist Method for automatic start up of a communication terminal configured for voice communication on a communication terminal configured for text communication
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP
CN103067259A (en) * 2012-12-24 2013-04-24 符晓友 Method and device used for sending and display and execution of special message instructions and based on instant messaging
CN103118069A (en) * 2012-12-26 2013-05-22 上海现代先进超精密制造中心有限公司 Method of achieving instant messaging among set top boxes based on extensible messaging and presence protocol (XMPP) agreement
CN103338182A (en) * 2013-05-09 2013-10-02 闫凤麒 Health data communication method based on XMPP (extension message and presence protocol)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
付莎: "基于XMPP协议企业级IM研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481342A (en) * 2016-06-07 2017-12-15 腾讯科技(深圳)有限公司 Attendance checking system, method, server and terminal
CN109951375A (en) * 2019-02-25 2019-06-28 南京金信通信息服务有限公司 Method and system based on mailing system triggering SAP system business function
CN109951375B (en) * 2019-02-25 2021-07-20 南京金信通信息服务有限公司 Method and system for triggering service function of SAP system based on mail system
CN112017047A (en) * 2020-08-24 2020-12-01 普源精电科技股份有限公司 Option yield distribution method and related device
CN113489634A (en) * 2021-06-16 2021-10-08 中企链信(北京)科技有限公司 Inter-enterprise collaborative instant messaging extension method

Similar Documents

Publication Publication Date Title
US7801946B2 (en) Systems and methods for accessing web services via an instant messaging client
CN104335523B (en) A kind of authority control method, client and server
US10108734B2 (en) Architecture to expose internal business data on a website
EP2882157B1 (en) Network accessing method, application server and system
EP2862116B1 (en) System and method to access content of encrypted data items in unsupported digital environments
US20140297759A1 (en) Content-item linking system for messaging services
JP2019133700A (en) System and method for website
WO2020040922A1 (en) Methods, apparatuses and computer program products for a group-based communication system interacting with remote resources for remote data objects
CA2890866A1 (en) System and method of automatic generation and insertion of analytic tracking codes
US20160012074A1 (en) System and method for providing contextual analytics data
CN105207878A (en) Instant communication method and system
US10003592B2 (en) Active directory for user authentication in a historization system
US20160028591A1 (en) Managing cross-premises resources through integrated view
US10200378B2 (en) Systems and methods for access to electronic data
US8683346B2 (en) Client integration of information from a supplemental server into a portal
KR101342407B1 (en) Method for providing intergrated authentication service based on single sign on
JP4944060B2 (en) Groupware server device, groupware server program, and groupware server device operating method
CN105959197A (en) SSL VPN user interface customization method and device
US20150319227A1 (en) Distributed historization system
KR100947495B1 (en) System for providing mobile office service and method thereof
KR101342405B1 (en) Method for providing interactive single sign on service
US10942893B2 (en) Systems and methods for a specialized computer file system
KR20010008206A (en) Method for managing various information and services and performing automatic accessing on Internet and terminal device employing the same
US20150213137A1 (en) Systems and methods for providing a social network enhancement to a website
CN103023908A (en) Website information acquisition method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151230

WD01 Invention patent application deemed withdrawn after publication