CN111930445A - Calling method for supporting mainstream browser to component - Google Patents
Calling method for supporting mainstream browser to component Download PDFInfo
- Publication number
- CN111930445A CN111930445A CN202010598804.1A CN202010598804A CN111930445A CN 111930445 A CN111930445 A CN 111930445A CN 202010598804 A CN202010598804 A CN 202010598804A CN 111930445 A CN111930445 A CN 111930445A
- Authority
- CN
- China
- Prior art keywords
- layer control
- middle layer
- control
- application
- service
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000005538 encapsulation Methods 0.000 claims description 3
- 238000009434 installation Methods 0.000 claims description 3
- 238000004806 packaging method and process Methods 0.000 abstract description 3
- 238000011161 development Methods 0.000 description 6
- 238000011900 installation process Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000013475 authorization Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
Abstract
The invention discloses a method for supporting a mainstream browser to call a component, which comprises the steps of packaging a bottom layer control through an intermediate layer control, providing an HTTP (hyper text transport protocol) protocol interface externally, only installing the intermediate layer control, supporting the calling of the bottom layer control by the mainstream browser through the intermediate layer control, and not installing plug-ins of different browsers, so that the problem that plug-ins aiming at different browsers need to be installed before different browsers are called in the prior art is solved.
Description
Technical Field
The application relates to the field of computer systems and data transmission, in particular to a method for supporting calling of a mainstream browser to a component.
Background
In software products, the application system structure based on the B/S structure of the browser is high in proportion, and software products in different industries and different types have own realization modes in the technology; different development environments, development environments and operating systems, which are dependent on the operation of programs, of different development languages, and the like are also different. For some dynamic library components at the bottom layer, the calling of the dynamic library components by the outer layer often needs to depend on the plug-in form of the client browser, so that certain requirements are made on the kernel and version of the browser.
At present, standard interfaces provided by the main browser kernel are mainly divided into two types, one type is a COM standard component interface supported by an IE browser, and the other type is an NPAPI standard component interface supported by Chrome and Firefox browsers. The lower layers of the two types of standard component interfaces are respectively realized by an ActiveX Core module and an Npapi Core module. In the plug-in implementation method for supporting multiple browsers, the implementation mode of supporting different browser kernels is as follows: a unified development interface is provided for a third party developer, a bottom layer service interface is registered in browser plug-ins of different kernels, and meanwhile, by combining software technologies such as CMake and the like, a software framework is transplanted between different operating systems and different development environments, so that the flexibility is increased, and the bottom layer development is ensured to be more convenient to call the interface to register in the browser plug-ins. Thereby ensuring that the system is compatible with the access of browsers of different kernels.
In many software systems, it is very common to implement corresponding functions based on components, and many components or plug-ins need to complete registration and installation at a client or a server before the system is used, so as to ensure normal use of system software.
Disclosure of Invention
The application provides a method for supporting a mainstream browser to call a component, and solves the problem that in the prior art, a plug-in for different browsers needs to be installed before different browsers are called.
The application provides a method for supporting a mainstream browser to call a component, which comprises the following steps:
the application layer is used for sending an access request to the middle layer control according to the service function and receiving data returned by the middle layer control;
the middle layer control is used for receiving an access request of the application layer through an HTTP protocol interface and acquiring data from the bottom layer control according to the access request; returning the data of the bottom layer control to the application layer through the HTTP protocol interface, so that the calling of the mainstream browser to the bottom layer control is supported through the middle layer control;
and the bottom layer control is used for providing the requested data to the service of the application layer.
Preferably, the application layer is configured to send an access request to the middle layer control according to the service function, and receive data returned by the middle layer control, and the method includes:
the application program positioned in the application layer sends an HTTP request to the middle layer control through a foreground or a background according to the service function;
and receiving data returned by the middle-layer control according to the HTTP request.
Preferably, the middle layer control provides an HTTP protocol interface through encapsulation of the bottom layer control.
Preferably, the middle layer control adds the service to the system service in the installation process, starts the listening port and starts the service.
Preferably, the service of the middle layer control is automatically started when the operating system is started.
Preferably, the functions of the middle layer control further include:
and encryption is carried out in the data transmission process, so that the data security is ensured.
Preferably, the functions of the middle layer control further include:
and authorizing the access of the middle layer control, wherein an authorized user or application program can access the data of the bottom layer control through the middle layer.
Preferably, the middle layer control detects the version of the middle layer control when being started, and if the middle layer control has a new version, the middle layer control can be upgraded.
The application provides a method for supporting calling of a mainstream browser to a component, a bottom layer control is packaged through an intermediate layer control, an HTTP protocol interface is provided externally, only the intermediate layer control needs to be installed, calling of the bottom layer control by the mainstream browser is supported through the intermediate layer control, plug-ins of different browsers do not need to be installed, and the problem that plug-ins aiming at different browsers need to be installed before different browsers are called in the prior art is solved.
Drawings
FIG. 1 is a block diagram of a method for supporting calling of a component by a mainstream browser according to the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
Fig. 1 is a block diagram of a structure of a method for supporting a mainstream browser to invoke a component, which is described in detail below with reference to fig. 1. The method provided by the application comprises the following steps:
the application layer is used for sending an access request to the middle layer control according to the service function and receiving data returned by the middle layer control;
the middle layer control is used for receiving an access request of the application layer through an HTTP protocol interface and acquiring data from the bottom layer control according to the access request; returning the data of the bottom layer control to the application layer through the HTTP protocol interface, so that the calling of the mainstream browser to the bottom layer control is supported through the middle layer control;
and the bottom layer control is used for providing the requested data to the business function of the application layer.
As can be seen from fig. 1, the application layer is composed of a client and an application server, and an application program located in the application layer sends an HTTP request to the middle layer control through a foreground or a background according to a service function, that is, the client or the application server, and receives data returned by the middle layer control according to the HTTP request, and the received data is also transmitted through an HTTP protocol.
And the middle layer control provides an HTTP protocol interface through packaging the bottom layer control. And the middle layer control adds the service into the system service in the installation process, starts the monitoring port and starts the service, and automatically starts the monitoring port when the operating system is started. And encryption is carried out in the data transmission process, so that the safety of the data is ensured, meanwhile, the access of the middle layer control is authorized, and an authorized user or application program can access the data of the bottom layer control through the middle layer. And when the middle layer control is started, the version of the middle layer control is detected, and if the middle layer control has a new version, the middle layer control can be upgraded.
And the bottom layer control is used for providing the requested data to the service of the application layer. Including reading data stored in an external hardware (tax disk, ukey, etc.) device upon request by the application layer.
The method for supporting the calling of the mainstream browser to the component specifically realizes the service to be provided and the use flow of the calling of the application system to the component is divided into the following steps:
1. encapsulation of middle layer controls to bottom layer controls
The bottom layer control provides access to external hardware equipment (tax disks, ukey and the like), reads certificates and other information in the hardware equipment, and obtains random parameters and enterprise-related information stored in the certificates. The middle layer control further packages the optical fiber, and provides an interface for the outside after packaging. Meanwhile, the middle layer can be further encrypted and authorized, and the legality of the application system for calling the middle layer control is guaranteed.
2. Interface service provided by middle layer control
After the middle layer control is installed, a service is started locally at the client side and an HTTP protocol interface is provided externally, so that direct calling of the bottom layer control is avoided, and the application system accesses the bottom layer control by accessing the middle control service. The intermediate control can be made into exe or other forms, and adds the service to the system service in the installation process, starts the monitoring port and starts the service, and then the service is automatically started along with the start of the operating system.
3. Installation of middle layer controls by application layer system
The application layer system provides an environment detection function on a home page or in a proper position, and detects whether the environment of the local machine meets the requirement of system access. The interface provides a control connection address required to be installed for accessing for the first time, a user finds that the control is not installed during environment detection, the required control can be installed according to requirements, normal access in the later stage of the system can be guaranteed only by installing once under normal conditions, if the plug-in needs to be upgraded, a version update prompt prompting the middle control can be given in the application system, or the middle control is upgraded through an upgrade interface method externally provided by the middle control.
4. Use of underlying controls by application layer systems
For an application system with a B/S structure, two common calling modes for an HTTP interface are provided, wherein one mode is called through a foreground terminal, and the other mode is called through a background server terminal. And neither calling method needs to completely depend on the version and the kernel of the client browser. The network connection of the intermediate control service is only required to be ensured, the application program sends an HTTP request through a foreground or a background to access the intermediate control service, and specifically, the calling of the bottom layer control and the calling of the bottom layer control to the hardware are completed by the intermediate control.
In the process that the application system calls the bottom layer control to obtain the certificate and other related information, the certificate and the like are obtained by calling the middle layer control service, and direct calling of the bottom layer control is avoided. The application layer adopts an HTTP protocol, supports a foreground and background calling mode, does not depend on browser plug-ins and kernel versions, ensures that a system can be accessed by a mainstream browser, meets user requirements, and improves universality and user experience.
In the process that the middle layer control calls the bottom layer control, the complete record of a call log can be added, the data is encrypted in the interface implementation process, and meanwhile, the authorized access interface, the control upgrading interface and other interfaces are added. And the authority processing and more authorization schemes are provided, so that the control on the authority is more flexible and the safety is higher.
For the bottom layer control, the bottom layer control is registered and accessed and called in the implementation process of the interface of the middle layer control, and meanwhile, the calling of the bottom layer control can be further optimized and status is rewritten. More solutions are provided for the registration mode of the bottom-layer component, and the flexibility of the system for component processing is enhanced.
The method provided by the application solves the problem of browser compatibility in the process of calling the bottom layer control by the application system. By adding the intermediate control service to provide an HTTP interface for the outside, the calling of the application system to the bottom layer is converted into accessing the intermediate control service, and meanwhile, the dependence on browser plug-ins is avoided, so that all mainstream browsers are supported. Besides ensuring the support of the main stream browser, the added intermediate control service can also carry out encryption transmission on data acquired from the bottom layer in the program, and ensure the safety, authorization check and the like of information.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the invention.
Claims (8)
1. A method for supporting calling of a component by a mainstream browser, comprising:
the application layer is used for sending an access request to the middle layer control according to the service function and receiving data returned by the middle layer control;
the middle layer control is used for receiving an access request of the application layer through an HTTP protocol interface and acquiring data from the bottom layer control according to the access request; returning the data of the bottom layer control to the application layer through the HTTP protocol interface, so that the calling of the mainstream browser to the bottom layer control is supported through the middle layer control;
and the bottom layer control is used for providing the requested data to the service of the application layer.
2. The method of claim 1, wherein the application layer is configured to send an access request to the middle layer control according to the business function, and receive data returned by the middle layer control, and the method includes:
the application program positioned in the application layer sends an HTTP request to the middle layer control through a foreground or a background according to the service function;
and receiving data returned by the middle-layer control according to the HTTP request.
3. The method of claim 1, wherein the middle layer control provides an HTTP protocol interface through encapsulation of the bottom layer control.
4. The method of claim 1, wherein the middle tier control adds a service to the system service during installation, activates the listening port, and activates the service.
5. The method of claim 3, wherein the services of the middle tier controls are automatically launched upon startup of the operating system.
6. The method of claim 1, wherein the functionality of the middle tier control further comprises:
and encryption is carried out in the data transmission process, so that the data security is ensured.
7. The method of claim 1, wherein the functionality of the middle tier control further comprises:
and authorizing the access of the middle layer control, wherein an authorized user or application program can access the data of the bottom layer control through the middle layer.
8. The method of claim 1, wherein the middle layer control detects the version of the middle layer control when it is started, and if there is a new version, it can be upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010598804.1A CN111930445A (en) | 2020-06-28 | 2020-06-28 | Calling method for supporting mainstream browser to component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010598804.1A CN111930445A (en) | 2020-06-28 | 2020-06-28 | Calling method for supporting mainstream browser to component |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111930445A true CN111930445A (en) | 2020-11-13 |
Family
ID=73317235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010598804.1A Pending CN111930445A (en) | 2020-06-28 | 2020-06-28 | Calling method for supporting mainstream browser to component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111930445A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840348A (en) * | 2009-12-24 | 2010-09-22 | 陕西移数通电讯有限公司 | Database middleware system |
CN102999337A (en) * | 2012-11-20 | 2013-03-27 | 上海中信信息发展股份有限公司 | Browser packaging system and method |
CN107066295A (en) * | 2017-03-30 | 2017-08-18 | 青岛海信电器股份有限公司 | A kind of method and apparatus for the plug-in unit that terminal network application is loaded based on browser |
CN110764846A (en) * | 2019-12-30 | 2020-02-07 | 南京壹证通信息科技有限公司 | Method for realizing cross-browser calling of computer external equipment based on local proxy service |
-
2020
- 2020-06-28 CN CN202010598804.1A patent/CN111930445A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840348A (en) * | 2009-12-24 | 2010-09-22 | 陕西移数通电讯有限公司 | Database middleware system |
CN102999337A (en) * | 2012-11-20 | 2013-03-27 | 上海中信信息发展股份有限公司 | Browser packaging system and method |
CN107066295A (en) * | 2017-03-30 | 2017-08-18 | 青岛海信电器股份有限公司 | A kind of method and apparatus for the plug-in unit that terminal network application is loaded based on browser |
CN110764846A (en) * | 2019-12-30 | 2020-02-07 | 南京壹证通信息科技有限公司 | Method for realizing cross-browser calling of computer external equipment based on local proxy service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8381271B2 (en) | Method and system for providing user access to a secure application | |
US10636084B2 (en) | Methods and systems for implementing on-line financial institution services via a single platform | |
KR100898849B1 (en) | Method and apparatus for gifting over a data network | |
CN110764846B (en) | Method for realizing cross-browser calling of computer external equipment based on local proxy service | |
US8661420B2 (en) | System and method for runtime interface versioning | |
US8230415B1 (en) | On-demand advertising of software packages | |
EP2589179B1 (en) | Apparatus and method for controlling access to multiple services | |
CN102034058B (en) | Method for controlling safety of application software and terminal | |
US20180091355A1 (en) | Single sign-on system and single sign-on method | |
JP5543010B1 (en) | Login request apparatus and method for requesting login to predetermined server, and program used therefor | |
US10211991B1 (en) | Method for downloading preauthorized applications to desktop computer using secure connection | |
CN112612327A (en) | Docking station access control method, device and system and electronic equipment | |
WO2023116150A1 (en) | Software updating methods and apparatus, and electronic device | |
CN112738021A (en) | Single sign-on method, terminal, application server, authentication server and medium | |
CN113472735B (en) | Big data service single sign-on method, device and storage medium | |
CN112966257A (en) | Authorization method and device for application program | |
CN112163193A (en) | Broadcast registration control method, device, equipment and medium | |
CN111930445A (en) | Calling method for supporting mainstream browser to component | |
CN111243715A (en) | Login method for unifying business system to integrated platform | |
EP1903741A1 (en) | Method and system for providing user access to a secure application | |
CN107566211B (en) | Method, device and system for accessing test equipment | |
KR20050051425A (en) | Method and system for re-downloading mobile platform based application | |
US8875300B1 (en) | Method and apparatus for authenticating a request between tasks in an operating system | |
CN113765876B (en) | Report processing software access method and device | |
US11818183B2 (en) | System and method for workspace sharing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |