WO2011113265A1 - 一种实现数据共享访问的方法、装置及系统 - Google Patents

一种实现数据共享访问的方法、装置及系统 Download PDF

Info

Publication number
WO2011113265A1
WO2011113265A1 PCT/CN2010/077045 CN2010077045W WO2011113265A1 WO 2011113265 A1 WO2011113265 A1 WO 2011113265A1 CN 2010077045 W CN2010077045 W CN 2010077045W WO 2011113265 A1 WO2011113265 A1 WO 2011113265A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
access
http
request message
sharing server
Prior art date
Application number
PCT/CN2010/077045
Other languages
English (en)
French (fr)
Inventor
许培华
陆剑峰
崔振峰
梁斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011113265A1 publication Critical patent/WO2011113265A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for implementing data sharing access. Background technique
  • the present invention provides a method, device, and system for implementing data sharing access, which are used to solve the problem that data users in the prior art directly interact with various data sources, which is not conducive to unified maintenance and security of data, and performance of data access. There is also no guarantee of the problem.
  • the method for implementing data sharing access includes: receiving, by a data sharing server, a data access request message based on a HyperText Transfer Protocol (HTTP) sent by a data visitor, according to a message type of the request message
  • HTTP HyperText Transfer Protocol
  • the data source performs data access and sends the access result to the data visitor via an HTTP response message.
  • the method provided by the invention further has the following characteristics: After receiving the HTTP data access request message, the data sharing server further includes: the data sharing server determining, according to the pre-configured access policy, whether the data visitor has access rights, and if so, the data source according to the message type of the request message. Make data access.
  • the data sharing server After receiving the HTTP data access request message, the data sharing server further includes: the data sharing server parsing the HTTP data access request message to obtain a message type, and determining, according to a pre-configured access policy, whether the data visitor has the item The access permission of the message type, if yes, data access to the data source according to the message type of the request message.
  • the message type of the above HTTP data access request message includes one or more of the following types:
  • HTTP GET data query HTTP PUT data update
  • HTTP DELETE data deletion The types of data sources mentioned above include databases, Extensible Markup Language documents, and Directory Access Protocol servers.
  • the invention also provides a data sharing server, comprising:
  • a request message receiving unit configured to receive an HTTP data access request message sent by the data visitor
  • a data access unit configured to perform data access to the data source according to the message type of the HTTP data access request message received by the request message receiving unit;
  • the access result feedback unit is configured to receive an access result sent by the data source, and send the access result to the data visitor by using an HTTP response message.
  • the data sharing server provided by the present invention further has the following features:
  • the request message receiving unit is further configured to: after receiving the HTTP data access request message, determine, according to the pre-configured access policy, whether the data visitor has access rights, and if so, trigger the data access unit.
  • the data sharing server further includes:
  • the access authority determining unit is configured to parse the HTTP data access request message received by the request message receiving unit, obtain a message type, and determine, according to the pre-configured access policy, whether the data visitor has access to the message type Permission, if yes, triggers the data access unit.
  • the present invention also provides a system for implementing data sharing access, including at least one data visitor and a data source, the system further comprising: at least one data sharing server;
  • the data visitor is configured to send an HTTP data access request message to the data sharing server;
  • the data sharing server is configured to receive the HTTP data access request message, and perform data access to the data source according to the message type of the request message, and send the access result to the data visitor by using an HTTP response message;
  • the data source is configured to receive an access request message of the data sharing server, obtain an access result according to the type of the access request message, and feed back the access result to the data sharing server.
  • the message type of the HTTP data access request message includes one or more of the following types:
  • the method of the invention provides a unified data sharing access point-one data sharing server, which can simplify data visitor access to data, shield different data sources from data access parties, facilitate unified maintenance and management of data, and improve The security and performance of data access; and the extension of the application in the distributed application system architecture, the newly added application service, only need to access the data sharing access server according to the standard HTTP protocol, data source adjustment and change , also transparent to the data consumer, will not affect the current data usage.
  • FIG. 1 is a flowchart of a method for implementing data sharing access according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for implementing data sharing access according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart for implementing data according to Embodiment 3 of the present invention
  • FIG. 4 is a flowchart of a method for implementing data sharing access according to Embodiment 4 of the present invention
  • FIG. 5 is a structural diagram of a data sharing server according to the present invention.
  • FIG. 6 is a structural diagram of a data sharing access system provided by the present invention. detailed description
  • the present invention solves the problem that the data users in the prior art directly interact with various data sources, have high requirements on data users, and are not conducive to unified maintenance and security of data, and the performance of data access cannot be guaranteed.
  • a method, device and system for implementing data sharing access based on the HTTP protocol are provided.
  • the method of the invention uses the HTTP protocol commonly used in the Internet, and the data user unifies the data access to the data sharing server, realizes the independence of the application and the data, and shields different types of data sources from the upper layer application, greatly simplifying
  • the data access of the upper application is more conducive to the unified maintenance of data, security control and query performance.
  • Embodiment 1 As shown in FIG. 1 , a flowchart of a method for implementing a data sharing access based on an HTTP protocol provided by the present invention includes the following steps:
  • Step 101 The data visitor sends an HTTP data access request to the data sharing server.
  • Step 102 After receiving the HTTP data access request, the data sharing server performs data access to the data source according to the message type of the request message.
  • the message type of the HTTP data access request message includes one or more of the following: an HTTP GET data query, an HTTP PUT data update, and an HTTP DELETE data deletion.
  • the data sharing server sends an access request to the data source according to the received message type, and the types of the access request message include: data query, data update, and data deletion.
  • the implementation process according to different message types in step 102 includes: the data sharing server sending a data query request message to the data source when the HTTP data access request message is an HTTP GET data query message; or
  • the data sharing server sends a data update request message to the data source when the HTTP data access request message is an HTTP PUT data update message;
  • the data sharing server sends a data deletion request message to the data source when the HTTP data access request message is an HTTP DELETE data deletion message.
  • Step 103 The data source obtains the access result according to the access request of the data sharing server, and feeds the access result to the data sharing server.
  • Step 104 The data access server returns the access result to the data visitor via the HTTP response.
  • the second embodiment is still another flowchart of the method for implementing data sharing based on the HTTP protocol provided by the present invention, which specifically includes the following steps:
  • Step 201 The data visitor sends an HTTP data access request to the data sharing server.
  • Step 202 The data sharing server determines, according to the pre-configured access policy, whether the data visitor has access rights. If yes, step 204 is performed; otherwise, step 203 is performed.
  • the data sharing server preferably authenticates different data visitors by the IP address of the data visitor.
  • the data sharing server can set the data visitor with high trust to have access rights, and can also be set according to other requirements.
  • the present invention is not limited to the specific implementation manner.
  • Step 203 The data sharing server feeds back the request failure response message to the data visitor, and the process ends.
  • Step 204 The data sharing server performs data access to the data source according to the message type of the received HTTP data access request message.
  • the message type of the HTTP data access request message includes one or more of the following: specifically: an HTTP GET data query, an HTTP PUT data update, and an HTTP DELETE data deletion.
  • the data sharing server sends an access request to the data source according to the received message type, and the types of the access request message include: data query, data update, and data deletion.
  • Step 205 The data source obtains the access result according to the access request of the data sharing server, and feeds the access result to the data sharing server.
  • Step 206 The data access server returns the access result to the data visitor via the HTTP response.
  • the third embodiment is still another flowchart of the method for implementing data sharing based on the HTTP protocol provided by the present invention, which specifically includes the following steps: Step 301: The data visitor sends an HTTP data access request to the data sharing server. Step 302: The data sharing server determines whether the data visitor has access rights. If yes, go to step 304; otherwise, go to step 303.
  • Step 303 The data sharing server feeds back the request failure response message to the data visitor, and the process ends.
  • Step 304 The data sharing server parses the received HTTP data access request message, obtains the message type, and determines whether the current data visitor has the access right of the message type based on the pre-configured access policy. If yes, go to step 306; otherwise, Go to step 305.
  • Step 305 The data sharing server feeds back the request failure response message to the data visitor.
  • Step 306 The data sharing server performs data access to the corresponding data source based on the message type of the HTTP data access request message.
  • Step 307 The data source obtains the access result according to the access request of the data sharing server, and feeds the access result to the data sharing server.
  • Step 308 The data access server returns the access result to the data visitor through the HTTP response.
  • the fourth embodiment is still another flowchart of the method for implementing data sharing based on the HTTP protocol provided by the present invention, which specifically includes the following steps:
  • Step 401 The data visitor sends an HTTP data access request to the data sharing server.
  • Step 402 After receiving the HTTP data access request, the data sharing server parses the HTTP data access request message to obtain a message type.
  • the message type of the HTTP data access request message includes one or more of the following: an HTTP GET data query, an HTTP PUT data update, and an HTTP DELETE data deletion.
  • Step 403 The data sharing server determines, according to the pre-configured access policy, whether the data visitor has the access right of the message type. If yes, go to step 405; otherwise, go to step 404.
  • Step 404 The data sharing server feeds back the request failure response message to the data visitor.
  • Step 405 The data sharing server performs data access to the corresponding data source based on the message type of the HTTP data access request message.
  • Step 406 The data source obtains the access result according to the access request of the data sharing server, and feeds the access result to the data sharing server.
  • Step 407 The data access server returns the access result to the data visitor through the HTTP response.
  • the technical solution of the present invention provides a unified data sharing access point, which can simplify data visitor access to data, and provides a unified HTTP data access method (data query HTTP GET, data update HTTP PUT, data deletion HTTP DELETE) ), shielding different data sources from data accessors, facilitating unified maintenance and management of data, and improving the security and performance of data access. It is easy to extend the application in the distributed application system architecture. The newly added application service only needs to access the data sharing access server according to the standard HTTP protocol. The data source adjustment and change are transparent to the data user. Will affect the current data usage.
  • the technical solution of the present invention can also provide security control of data access, and provide data access services only to trusted data visitors according to a pre-configured access policy, thereby improving the security of data access.
  • the present invention further provides a data sharing server, which specifically includes: a request message receiving unit 510, configured to receive an HTTP data access request message sent by a data visitor;
  • the data access unit 520 is configured to perform data access to the data source according to the message type of the HTTP data access request message received by the request message receiving unit 510;
  • the access result feedback unit 530 is configured to receive an access result sent by the data source, and send the access result to the data visitor by using an HTTP response message.
  • the request message receiving unit 510 is further configured to: after receiving the HTTP data access request message, determine, according to the pre-configured access policy, whether the data visitor has access rights If so, the data access unit 520 is triggered.
  • the data sharing server further includes:
  • the access authority determining unit 540 is configured to parse the HTTP data access request message received by the request message receiving unit 510, obtain a message type, and determine, according to the pre-configured access policy, whether the data visitor has access to the message type. The authority, if so, triggers the data access unit 520.
  • the present invention further provides a data sharing access system.
  • the system specifically includes: at least one data visitor, at least one data sharing server, and at least one data source.
  • the data visitor which is a data consumer, is configured to send an HTTP data access request message to the data sharing server;
  • a data sharing server configured to receive the HTTP data access request message, and perform data access to the data source according to the message type of the request message, and send the access result to the data visitor by using an HTTP response message;
  • the message type of the HTTP data access request message includes one or more of the following types: an HTTP GET data query, an HTTP PUT data update, and an HTTP DELETE data deletion.
  • the data source is an actual physical data source, and its type includes a database, an XML file, and an LDAP server.
  • the above types are merely exhaustive, and the types of the data sources are not limited to the above three types.
  • the data source is configured to receive an access request message of the data sharing server, obtain an access result according to the type of the access request message, and feed back the access result to the data sharing server.
  • the data sharing server determines, according to the pre-configured access policy, whether the data visitor has access rights, and if so, performs data source according to the message type of the request message. data access. and / or, After receiving the HTTP data access request message, the data sharing server parses the HTTP data access request message to obtain a message type, and determines, according to its pre-configured access policy, whether the data visitor has access rights of the message type, and if so, Data access is made to the data source according to the message type of the request message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

本发明公开了一种实现数据共享访问的方法、装置及系统,所述方法包括:数据共享服务器接收数据访问者发送的HTTP数据访问请求消息,根据该请求消息的消息类型对数据源进行数据访问,并将访问结果通过HTTP响应消息发送给所述数据访问者。本发明所述的方法提供统一的数据共享访问接入点和标准的数据访问,大大方便数据使用者的数据访问,同时也更利于数据的统一维护管理、安全控制及数据访问性能的提高。

Description

一种实现数据共享访问的方法、 装置及系统 技术领域
本发明涉及通信技术领域, 尤其涉及一种实现数据共享访问的方法、 装置及系统。 背景技术
在互联网越来越普及的今天, 许多基于互联网的服务均釆用分布系统 布置架构, 即多个应用服务器提供相同的服务, 以提高服务性能。 但是, 目前的很多分布式系统, 数据使用者直接访问数据源, 由于数据源也可能 是分布布置, 即可能会有多个, 且数据源的类型也不尽相同 (如数据库、 可扩展标己语言 (XML, Extensible Markup Language )文件、 目录访问协 议( LDAP, Lightweight Directory Access Protocol )服务器等), 数据使用 者直接与各种数据源进行交互, 对数据使用者要求较高, 且不利于数据的 统一维护和安全, 数据访问的性能也无法保障。 发明内容
本发明提供一种实现数据共享访问的方法、 装置及系统, 用以解决现 有技术中存在的数据使用者直接与各种数据源进行交互, 不利于数据的统 一维护和安全, 数据访问的性能也无法保障的问题。
具体的, 本发明提供的实现数据共享访问的方法, 包括: 数据共享服 务器接收数据访问者发送的基于超文本传输协议( HTTP, HyperText Transfer Protocol )数据访问请求消息, 根据该请求消息的消息类型对数据源进行数 据访问, 并将访问结果通过 HTTP响应消息发送给所述数据访问者。
本发明提供的方法进一步具有以下特点: 所述数据共享服务器接收到 HTTP数据访问请求消息后还包括: 所述数据共享服务器基于预先配置的访问策略判断所述数据访问者是 否具有访问权限, 若是, 则根据请求消息的消息类型对数据源进行数据访 问。
所述数据共享服务器接收到 HTTP数据访问请求消息后还包括: 所述数据共享服务器解析所述 HTTP数据访问请求消息获取消息类型, 并基于预先配置的访问策略判断所述数据访问者是否具有该项消息类型的 访问权限, 若是, 根据该请求消息的消息类型对数据源进行数据访问。
上述 HTTP数据访问请求消息的消息类型包括下述类型中的一种或多 种:
HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。 上述数据源的类型包括数据库、 可扩展标记语言文档和目录访问协议 服务器。
本发明还提供一种数据共享服务器, 包括:
请求消息接收单元, 用于接收数据访问者发送的 HTTP数据访问请求 消息;
数据访问单元, 用于根据所述请求消息接收单元接收到的 HTTP数据 访问请求消息的消息类型, 对数据源进行数据访问;
访问结果反馈单元, 用于接收所述数据源发送的访问结果, 并将该访 问结果通过 HTTP响应消息发送给所述数据访问者。
本发明提供的数据共享服务器进一步具有以下特点:
所述请求消息接收单元, 还用于在接收到 HTTP数据访问请求消息后, 基于预先配置的访问策略判断所述数据访问者是否具有访问权限, 若是, 触发所述数据访问单元。
基于上述技术特征, 所述数据共享服务器还包括: 访问权限判断单元, 用于对所述请求消息接收单元接收到的 HTTP数 据访问请求消息进行解析, 获取消息类型, 并基于预先配置的访问策略判 断所述数据访问者是否具有该项消息类型的访问权限, 若是, 触发所述数 据访问单元。
本发明还提供一种实现数据共享访问的系统, 包括至少一个数据访问 者和数据源, 所述系统还包括: 至少一个数据共享服务器;
所述数据访问者, 用于向数据共享服务器发送 HTTP数据访问请求消 息;
所述数据共享服务器, 用于接收所述 HTTP数据访问请求消息, 并根 据该请求消息的消息类型对数据源进行数据访问, 将访问结果通过 HTTP 响应消息发送给所述数据访问者;
所述数据源, 用于接收数据共享服务器的访问请求消息, 根据所述访 问请求消息的类型获取访问结果, 并将访问结果反馈给所述数据共享服务 器。
所述 HTTP数据访问请求消息的消息类型包括下述类型中的一种或多 种:
HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。 与现有技术相比, 本发明的有益效果如下:
本发明所述方法提供了统一的数据共享访问接入点一一数据共享服务 器, 可以简化数据访问者对数据的访问, 对数据访问方屏蔽不同的数据源, 方便了数据的统一维护管理, 提高了数据访问的安全和性能; 并且便于分 发式应用系统架构中应用的扩展, 新增加的应用服务, 只需要按标准的 HTTP 协议到数据共享访问服务器进行数据访问即可, 数据源的调整及变 化, 对数据使用方也透明, 不会影响当前的数据使用。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为本发明实施例一提供的实现数据共享访问方法的流程图; 图 2为本发明实施例二提供的实现数据共享访问方法的流程图; 图 3为本发明实施例三提供的实现数据共享访问方法的流程图; 图 4为本发明实施例四提供的实现数据共享访问方法的流程图; 图 5为本发明提供的数据共享服务器的结构图;
图 6为本发明提供的实现数据共享访问系统的结构图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
为了解决现有技术中存在的数据使用者直接与各种数据源进行交互, 对数据使用者要求较高, 且不利于数据的统一维护和安全, 数据访问的性 能也无法保障的问题, 本发明提供一种基于 HTTP协议实现数据共享访问 的方法、 装置及系统。 本发明所述方法釆用互联网中普遍使用的 HTTP协 议, 数据使用方统一到数据共享服务器上进行数据访问, 实现了应用与数 据的无关性, 对上层应用屏蔽了不同类型的数据源, 大大简化了上层应用 的数据访问, 同时更利于数据的统一维护、 安全控制与查询性能的提高。 实施例一, 如图 1所示, 为本发明提供的基于 HTTP协议实现数据共 享访问方法的流程图, 具体包括以下步骤:
步骤 101 : 数据访问者发送 HTTP数据访问请求到数据共享服务器。 步骤 102: 数据共享服务器接收到 HTTP数据访问请求后, 根据该请 求消息的消息类型对数据源进行数据访问。
其中, HTTP数据访问请求消息的消息类型包括下述中的一种或多种: HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。
对应的, 该步骤中数据共享服务器根据接收到的消息类型向数据源发 送访问请求中, 访问请求消息的类型包括: 数据查询、 数据更新和数据删 除。
基于上述特征, 步骤 102中根据不同的消息类型的实施过程包括: 数据共享服务器在 HTTP数据访问请求消息为 HTTP GET数据查询消 息时, 向所述数据源发送数据查询请求消息; 或者,
数据共享服务器在 HTTP数据访问请求消息为 HTTP PUT数据更新消 息时, 向数据源发送数据更新请求消息; 或者,
数据共享服务器在 HTTP数据访问请求消息为 HTTP DELETE数据删 除消息时, 向数据源发送数据删除请求消息。
步骤 103 : 数据源根据数据共享服务器的访问请求, 获取访问结果, 并将访问结果反馈给数据共享服务器。
步骤 104: 数据访问服务器将访问结果通过 HTTP响应返回给数据访 问者。
进一步的, 本发明提供的方法中, 数据访问者与数据共享服务器、 数 据共享服务器与数据源间均釆用网络进行数据传递。 实施例二, 如图 2所示, 为本发明提供的基于 HTTP协议实现数据共 享访问方法的又一流程图, 具体包括以下步骤:
步骤 201 : 数据访问者发送 HTTP数据访问请求到数据共享服务器。 步骤 202: 数据共享服务器基于预先配置的访问策略判断数据访问者 是否具有访问权限, 若有, 执行步骤 204; 否则, 执行步骤 203。
其中,数据共享服务器优选的通过数据访问者的 IP地址来鉴别不同的 数据访问者。 数据共享服务器可以将信任度高的数据访问者设置为具有访 问权限, 当然也可以根据其他要求进行设定, 本发明不限定其具体实施方 式。
步骤 203 : 数据共享服务器向数据访问者反馈请求失败响应消息, 流 程结束。
步骤 204: 数据共享服务器根据接收到的 HTTP数据访问请求消息的 消息类型对数据源进行数据访问。
其中, HTTP数据访问请求消息的消息类型包括下述中的一种或多种, 具体为: HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数 据删除。
对应的, 该步骤中数据共享服务器根据接收到的消息类型向数据源发 送访问请求中, 访问请求消息的类型包括: 数据查询、 数据更新和数据删 除。
步骤 205: 数据源根据数据共享服务器的访问请求, 获取访问结果, 并将访问结果反馈给数据共享服务器。
步骤 206: 数据访问服务器将访问结果通过 HTTP响应返回给数据访 问者。
实施例三, 如图 3所示, 为本发明提供的基于 HTTP协议实现数据共 享访问方法的又一流程图, 具体包括以下步骤: 步骤 301 : 数据访问者发送 HTTP数据访问请求到数据共享服务器。 步骤 302: 数据共享服务器判断数据访问者是否具有访问权限, 若有, 执行步骤 304; 否则, 执行步骤 303。
步骤 303 : 数据共享服务器向数据访问者反馈请求失败响应消息, 流 程结束。
步骤 304: 数据共享服务器解析接收到的 HTTP数据访问请求消息, 获取消息类型, 基于预先配置的访问策略, 判断当前数据访问者是否具有 该项消息类型的访问权限, 若是, 执行步骤 306; 否则, 执行步骤 305。
步骤 305: 数据共享服务器向数据访问者反馈请求失败响应消息。 步骤 306: 数据共享服务器基于 HTTP数据访问请求消息的消息类型 对相应的数据源进行数据访问。
步骤 307: 数据源根据数据共享服务器的访问请求, 获取访问结果, 并将访问结果反馈给数据共享服务器。
步骤 308: 数据访问服务器将访问结果通过 HTTP响应返回给数据访 问者。
实施例四, 如图 4所示, 为本发明提供的基于 HTTP协议实现数据共 享访问方法的又一流程图, 具体包括以下步骤:
步骤 401 : 数据访问者发送 HTTP数据访问请求到数据共享服务器。 步骤 402: 数据共享服务器接收到 HTTP数据访问请求后, 解析所述 HTTP数据访问请求消息获取消息类型。
其中, HTTP数据访问请求消息的消息类型包括下述中的一种或多种: HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。
步骤 403 : 数据共享服务器基于预先配置的访问策略判断所述数据访 问者是否具有该项消息类型的访问权限, 若是, 执行步骤 405; 否则, 执行 步骤 404。 步骤 404: 数据共享服务器向数据访问者反馈请求失败响应消息。 步骤 405: 数据共享服务器基于 HTTP数据访问请求消息的消息类型 对相应的数据源进行数据访问。
步骤 406: 数据源根据数据共享服务器的访问请求, 获取访问结果, 并将访问结果反馈给数据共享服务器。
步骤 407: 数据访问服务器将访问结果通过 HTTP响应返回给数据访 问者。
本发明的技术方案, 提供了统一的数据共享访问接入点, 可以简化数 据访问者对数据的访问,提供了统一的 HTTP数据访问方法 (数据查询 HTTP GET, 数据更新 HTTP PUT, 数据删除 HTTP DELETE), 对数据访问方屏蔽 不同的数据源, 方便了数据的统一维护管理, 提高了数据访问的安全和性 能。 便于分发式应用系统架构中应用的扩展, 新增加的应用服务, 只需要 按标准的 HTTP协议到数据共享访问服务器进行数据访问即可, 数据源的 调整及变化, 对数据使用方也透明, 不会影响当前的数据使用。 另外, 本 发明的技术方案还可以提供数据访问的安全控制, 根据预先配置的访问策 略, 只对信任的数据访问者提供数据访问服务, 提高了数据访问的安全性。
如图 5所示, 本发明还提供一种数据共享服务器, 具体包括: 请求消息接收单元 510,用于接收数据访问者发送的 HTTP数据访问请 求消息;
数据访问单元 520,用于根据请求消息接收单元 510接收到的 HTTP数 据访问请求消息的消息类型, 对数据源进行数据访问;
访问结果反馈单元 530, 用于接收数据源发送的访问结果, 并将该访问 结果通过 HTTP响应消息发送给所述数据访问者。
进一步的, 请求消息接收单元 510,还用于在接收到 HTTP数据访问请 求消息后, 基于预先配置的访问策略判断所述数据访问者是否具有访问权 限, 若是, 触发数据访问单元 520。
基于上述技术特征, 所述数据共享服务器还包括:
访问权限判断单元 540 , 用于对请求消息接收单元 510接收到的 HTTP 数据访问请求消息进行解析, 获取消息类型, 并基于预先配置的访问策略 判断所述数据访问者是否具有该项消息类型的访问权限, 若是, 触发数据 访问单元 520。
本发明还提供一种实现数据共享访问系统, 如图 6所示, 该系统具体 包括: 至少一个数据访问者, 至少一个数据共享服务器以及至少一个数据 源。
其中,数据访问者, 为数据使用方, 用于向数据共享服务器发送 HTTP 数据访问请求消息;
数据共享服务器, 用于接收所述 HTTP数据访问请求消息, 并根据该 请求消息的消息类型对数据源进行数据访问, 将访问结果通过 HTTP响应 消息发送给所述数据访问者;
其中, 所述 HTTP数据访问请求消息的消息类型包括下述类型中的一 种或多种: HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数 据删除。
数据源,为实际的物理数据源,其类型包括数据库、 XML文件和 LDAP 服务器; 当然, 上述类型只是列举并非穷举, 该数据源的类型并不限于上 述三种。 具体的, 数据源, 用于接收数据共享服务器的访问请求消息, 根 据所述访问请求消息的类型获取访问结果, 并将访问结果反馈给所述数据 共享服务器。
进一步的, 上述数据共享服务器在接收到所述 HTTP数据访问请求消 息后, 基于自身预先配置的访问策略判断所述数据访问者是否具有访问权 限, 若是, 则根据请求消息的消息类型对数据源进行数据访问。 和 /或, 数据共享服务器接收所述 HTTP数据访问请求消息后,解析所述 HTTP 数据访问请求消息获取消息类型, 并基于自身预先配置的访问策略判断所 述数据访问者是否具有该消息类型的访问权限, 若是, 根据该请求消息的 消息类型对数据源进行数据访问。
需要说明的是, 上述数据访问者与数据共享服务器、 数据共享服务器 与数据源间均釆用网络进行数据传递。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权利要求书
1、 一种实现数据共享访问的方法, 其特征在于, 包括:
数据共享服务器接收来自数据访问者的基于超文本传输协议 HTTP数 据访问请求消息, 根据该请求消息的消息类型对数据源进行数据访问, 并 将访问结果通过 HTTP响应消息发送给所述数据访问者。
2、 如权利要求 1所述的方法, 其特征在于, 所述数据共享服务器接收 到 HTTP数据访问请求消息后, 该方法还包括:
所述数据共享服务器基于预先配置的访问策略, 判断所述数据访问者 是否具有访问权限, 若是, 则根据所述请求消息的消息类型对数据源进行 数据访问。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述数据共享服务器 接收到 HTTP数据访问请求消息后, 该方法还包括:
所述数据共享服务器解析所述 HTTP数据访问请求消息获取消息类型, 并基于预先配置的访问策略, 判断所述数据访问者是否具有该项消息类型 的访问权限, 若是, 根据该请求消息的消息类型对数据源进行数据访问。
4、 如权利要求 1或 2所述的方法, 其特征在于, 所述 HTTP数据访问 请求消息的消息类型包括下述类型中的一种或多种:
HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。
5、 如权利要求 1或 2所述的方法, 其特征在于, 所述数据源的类型包 括: 数据库、 可扩展标记语言文档和目录访问协议服务器。
6、 一种数据共享服务器, 其特征在于, 包括:
请求消息接收单元, 用于接收数据访问者发送的 HTTP数据访问请求 消息;
数据访问单元, 用于根据所述请求消息接收单元接收到的 HTTP数据 访问请求消息的消息类型, 对数据源进行数据访问; 访问结果反馈单元, 用于接收所述数据源发送的访问结果, 并将该访 问结果通过 HTTP响应消息发送给所述数据访问者。
7、 如权利要求 6所述的数据共享服务器, 其特征在于,
所述请求消息接收单元, 还用于在接收到所述 HTTP数据访问请求消 息后, 基于预先配置的访问策略判断所述数据访问者是否具有访问权限, 若是, 触发所述数据访问单元。
8、 如权利要求 6或 7所述的数据共享服务器, 其特征在于, 还包括: 访问权限判断单元, 用于对所述请求消息接收单元接收到的 HTTP数 据访问请求消息进行解析, 获取消息类型, 并基于预先配置的访问策略判 断所述数据访问者是否具有该项消息类型的访问权限, 若是, 触发所述数 据访问单元。
9、一种实现数据共享访问的系统,包括至少一个数据访问者和数据源, 其特征在于, 所述系统还包括: 至少一个数据共享服务器;
所述数据访问者, 用于向数据共享服务器发送 HTTP数据访问请求消 息;
所述数据共享服务器, 用于接收所述 HTTP数据访问请求消息, 并根 据该请求消息的消息类型对数据源进行数据访问, 将访问结果通过 HTTP 响应消息发送给所述数据访问者;
所述数据源, 用于接收数据共享服务器的访问请求消息, 根据所述访 问请求消息的类型获取访问结果, 并将访问结果反馈给所述数据共享服务 器。
10、 如权利要求 9所述的系统, 其特征在于, 所述 HTTP数据访问请 求消息的消息类型包括下述类型中的一种或多种:
HTTP GET数据查询、 HTTP PUT数据更新和 HTTP DELETE数据删除。
PCT/CN2010/077045 2010-03-18 2010-09-17 一种实现数据共享访问的方法、装置及系统 WO2011113265A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010126879A CN101815094A (zh) 2010-03-18 2010-03-18 一种实现数据共享访问的方法、装置及系统
CN201010126879.6 2010-03-18

Publications (1)

Publication Number Publication Date
WO2011113265A1 true WO2011113265A1 (zh) 2011-09-22

Family

ID=42622209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/077045 WO2011113265A1 (zh) 2010-03-18 2010-09-17 一种实现数据共享访问的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN101815094A (zh)
WO (1) WO2011113265A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815094A (zh) * 2010-03-18 2010-08-25 中兴通讯股份有限公司 一种实现数据共享访问的方法、装置及系统
JP5249368B2 (ja) * 2011-01-31 2013-07-31 株式会社バッファロー ネットワーク装置
CN104424405B (zh) * 2013-09-09 2017-12-29 联想(北京)有限公司 一种信息处理方法和装置
CN104598840A (zh) * 2015-02-04 2015-05-06 新余兴邦信息产业有限公司 基于Http协议的多数据源的数据处理方法及系统
CN104820803B (zh) * 2015-04-01 2017-11-07 朱威 企业移动应用之间的数据共享方法
CN108306974A (zh) * 2018-02-08 2018-07-20 中国科学院重庆绿色智能技术研究院 一种用户自定义数据接口的数据共享系统与方法
CN115242879B (zh) * 2022-06-29 2024-04-02 浪潮通信技术有限公司 数据共享系统及方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645799A (zh) * 2005-01-31 2005-07-27 北京北大方正电子有限公司 基于远程代理的分布式统一数据存取系统
CN1695145A (zh) * 2002-11-15 2005-11-09 西门子公司 提供数据访问的设备
CN101354696A (zh) * 2008-09-08 2009-01-28 北京航空航天大学 基于电信领域共享信息模型的数据整合与应用服务系统
CN101446965A (zh) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 一种数据查询方法及系统
CN101505247A (zh) * 2009-03-09 2009-08-12 成都市华为赛门铁克科技有限公司 一种共享接入主机数目的检测方法和装置
CN101815094A (zh) * 2010-03-18 2010-08-25 中兴通讯股份有限公司 一种实现数据共享访问的方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AT412378B (de) * 2003-04-29 2005-01-25 Siemens Ag Oesterreich Verbindungssteuerung in einem transit-telekommunikationsnetz
CN100403315C (zh) * 2006-09-25 2008-07-16 华为技术有限公司 一种实现负荷分担的数据库访问方法及系统
CN101329658B (zh) * 2007-06-21 2012-12-05 西门子(中国)有限公司 加密、解密方法,及应用所述方法的plc系统
CN101321179A (zh) * 2008-01-08 2008-12-10 华为技术有限公司 一种实现资源共享的方法、设备及系统
CN100589079C (zh) * 2008-05-09 2010-02-10 华为技术有限公司 一种数据共享的方法、系统和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1695145A (zh) * 2002-11-15 2005-11-09 西门子公司 提供数据访问的设备
CN1645799A (zh) * 2005-01-31 2005-07-27 北京北大方正电子有限公司 基于远程代理的分布式统一数据存取系统
CN101354696A (zh) * 2008-09-08 2009-01-28 北京航空航天大学 基于电信领域共享信息模型的数据整合与应用服务系统
CN101446965A (zh) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 一种数据查询方法及系统
CN101505247A (zh) * 2009-03-09 2009-08-12 成都市华为赛门铁克科技有限公司 一种共享接入主机数目的检测方法和装置
CN101815094A (zh) * 2010-03-18 2010-08-25 中兴通讯股份有限公司 一种实现数据共享访问的方法、装置及系统

Also Published As

Publication number Publication date
CN101815094A (zh) 2010-08-25

Similar Documents

Publication Publication Date Title
CN109587228B (zh) 一种公有协议物联网平台系统的设备接入方法
CN109639687B (zh) 用于提供基于云的身份和访问管理的系统、方法和介质
CN110557975B (zh) 用于多租户身份云服务的租户数据比较
US10402578B2 (en) Management of encrypted data storage
EP3794797B1 (en) Replication of resource type and schema metadata for a multi-tenant identity cloud service
US10263947B2 (en) LDAP to SCIM proxy service
US7370075B2 (en) Method and apparatus for managing web services within a computer network system
WO2011113265A1 (zh) 一种实现数据共享访问的方法、装置及系统
EP3053323B1 (en) Systems and methods for caching content with notification-based invalidation
US20180083915A1 (en) SCIM to LDAP Mapping Using Subtype Attributes
US11601414B2 (en) Contact consolidation across multiple services
US9015212B2 (en) System and method for exposing cloud stored data to a content delivery network
US8732258B2 (en) Method and system for transporting telemetry data across a network
US7240100B1 (en) Content delivery network (CDN) content server request handling mechanism with metadata framework support
JP2019532418A (ja) マルチテナントアイデンティティおよびデータセキュリティ管理クラウドサービスのためのテナントおよびサービス管理
US9706007B2 (en) System and method for querying disparate data sources in real time
US20040132428A1 (en) Method and system for privacy preferences management using a synchronisation protocol
WO2001082023A2 (en) Differentiated content and application delivery via internet
US9590853B1 (en) Configuration of applications for distributed computing systems
GB2418037A (en) Monitoring or controlling Internet access in accordance with URL category
US8825811B2 (en) Connection management and optimization for services delivered over networks
US20060259523A1 (en) System and method of synchronization of internal data cache with wireless device application data repositories
US20090327479A1 (en) User-based wide area network optimization
US20160337456A1 (en) Probabilistic federated agent discovery for pervasive device management system
WO2023024057A1 (zh) 跨域授权处理方法及跨域调用处理方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10847734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10847734

Country of ref document: EP

Kind code of ref document: A1