CN106776074A - A kind of web plug-in units call method and system based on http - Google Patents

A kind of web plug-in units call method and system based on http Download PDF

Info

Publication number
CN106776074A
CN106776074A CN201611216467.5A CN201611216467A CN106776074A CN 106776074 A CN106776074 A CN 106776074A CN 201611216467 A CN201611216467 A CN 201611216467A CN 106776074 A CN106776074 A CN 106776074A
Authority
CN
China
Prior art keywords
plug
unit
http
browser
units
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
CN201611216467.5A
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.)
Hubei Digital Certificate Management Center Co Ltd
Original Assignee
Hubei Digital Certificate Management Center 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 Hubei Digital Certificate Management Center Co Ltd filed Critical Hubei Digital Certificate Management Center Co Ltd
Priority to CN201611216467.5A priority Critical patent/CN106776074A/en
Publication of CN106776074A publication Critical patent/CN106776074A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of web plug-in units call method based on http and system, the web plug-in unit call methods that should be based on http include:Obtain the http request of browser;According to the http request of browser, show that plug-in unit calls demand;Call the corresponding plug-in unit in plugin library;Call result is returned into browser by the form of http.Implement the embodiment of the present invention, have the advantages that:The present invention realizes a kind of control, is adapted to the purpose of various browsers, while solve the difference because browser plug-in technology, the plug-in unit malloc failure malloc of appearance, situations such as the page is stuck.On the code maintenance in later stage, also only need to safeguard a code, greatly reduce repetitive operation, also reduce the fault rate of plug-in unit product.

Description

A kind of web plug-in units call method and system based on http
Technical field
The present invention relates to a kind of plug-in unit call method, more particularly to a kind of web plug-in units call method based on http and it is System.
Background technology
Current browser plug-in technology, respectively in order to be based on the ActiveX plug-in part technologies of Microsoft, based on Mozilla's NPAPI plug-in part technologies and the PPAPI plug-in part technologies based on Google.For ActiveX plug-in part technologies, at present only in IE11 And supported in following browser;For NPAPI technologies, Mozilla officials have announced, Firefox browser will be 2016 The end of the year thoroughly abandons the support to NPAPI class plug-in units;And for NPAPI technologies on the Chrome browsers of main flow, Chrome No longer supported on browser more than 45 versions.So, at present for, there is no a kind of plug-in part technology can be while meeting Use in various browsers.And for different browsers, due to realizing that technology is different, to the jurisdictions mandate of plug-in unit It is different, cause application system when plug-in unit is called, there is malloc failure malloc, situations such as the page is stuck.Furthermore, to reality Show the plug-in unit compatibling problem of various browsers, it is necessary to develop and safeguard three kinds of plug-in codes of different technologies version, in code In maintenance, the problem of repeated work is there is also, virtually increased the probability of bug appearance.
The content of the invention
Embodiment of the present invention technical problem to be solved is, for the problem that existing browser plug-in is incompatible, Propose a kind of web plug-in unit call methods based on http.
In order to solve the above-mentioned technical problem, a kind of web plug-in unit call methods based on http are the embodiment of the invention provides, The web plug-in unit call methods for being based on http include:Obtain the http request of browser;According to the http request of browser, obtain Go out plug-in unit and call demand;Call the corresponding plug-in unit in plugin library;Call result is returned into browser by the form of http.
Wherein, be stored with ActiveX plug-in units, NPAPI plug-in units and PPAPI plug-in units in plugin library.
Wherein, included in the http request of browser and demand is called to plug-in unit.
In order to solve the above-mentioned technical problem, a kind of web plug-in unit calling systems based on http be the embodiment of the invention provides Including the web plug-in unit calling systems that should be based on http include:Host program module, for carrying out information mutual communication with browser, connects Receive the http request of browser and plug-in unit call result is sent to browser in the form of http;Card module, with host's journey Sequence module is communicated to connect, and is stored with plug-in unit to treat that host program module is called.
Wherein, be stored with ActiveX plug-in units, NPAPI plug-in units and PPAPI plug-in units in card module.
Wherein, card module further completes plug-in unit function in itself, realizes the input/output function of plug-in unit.
Implement the embodiment of the present invention, have the advantages that:The present invention realizes a kind of control, is adapted to various browsers Purpose, while solve the difference because browser plug-in technology, the plug-in unit malloc failure malloc of appearance, the feelings such as the page is stuck Condition.On the code maintenance in later stage, also only need to safeguard a code, greatly reduce repetitive operation, also reduce slotting The fault rate of part product.
Brief description of the drawings
Fig. 1 is the flow chart of the web plug-in unit call methods based on http of first embodiment of the invention;
Fig. 2 is the structural representation of the web plug-in unit calling systems based on http of second embodiment of the invention.
Specific embodiment
The technical scheme in the embodiment of the present invention will be clearly and completely described below, it is clear that described implementation Example is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model of present invention protection Enclose.
Referring to Fig. 1, Fig. 1 is the flow chart of the web plug-in unit call methods based on http of first embodiment of the invention.This hair It is bright there is provided a kind of web plug-in unit call methods based on http, the web plug-in units call method that should be based on http includes step:
In step s 11, the http request of browser is obtained.Wherein, included to plug-in unit in the http request of browser Call demand.
In step s 12, according to the http request of browser, show that plug-in unit calls demand.
In step s 13, the corresponding plug-in unit in plugin library is called.Be stored with plugin library ActiveX plug-in units, NPAPI insert Part and PPAPI plug-in units.Certainly, other plug-in units can also be stored in plugin library, only this three kinds of plug-in applications are wider, therefore Tightly list this three kinds of plug-in units.
In step S14, call result is returned into browser by the form of http.Host program module
Fig. 2 is referred to, Fig. 2 is the structural representation of the web plug-in unit calling systems based on http of second embodiment of the invention Figure.The web plug-in units calling system for being based on http includes host program module 22 and card module 21.
Host program module 22 is used to carry out information mutual communication with browser, receives the http request of browser and adjusts plug-in unit Sent to browser in the form of http with result.
Card module 21 is communicated to connect with host program module 22, is stored with plug-in unit to treat that host program module 22 is adjusted With.Wherein, be stored with ActiveX plug-in units, NPAPI plug-in units and PPAPI plug-in units in card module 21.Card module 21 can be with Plug-in unit function in itself is further completed, the input/output function of plug-in unit is realized, to improve efficiency.
Specifically, whole invoked procedure can be divided into three modules.First module is the part of browser script 10, should The function of module is exactly the function that Http requests can be sent using browser script 10 itself, and calling for plug-in unit is sent into this Ground process.Second module is card module 21, and the module completes plug-in unit function in itself, realizes the input and output work(of plug-in unit Energy.3rd module is host program module 22, and the module can load card module 21, plug-in unit is called, solve Browser can only load the problem of the plug-in unit developed under particular technology;Meanwhile, hosting module can receive browser script 10 and send out The Http call requests brought, and call result is returned into browser by the form of Http.
Under such design pattern, common browser is loaded the mode of plug-in unit, be changed to be loaded by host program Plug-in unit, solves because browser is different and plug-in part technology is different, and caused plug-in unit loads failure problem.And host program It is controllable, improve the success rate of plug-in unit loading.Then, browser script 10 is make use of to send the principle of Http requests, by plug-in unit Call request is sent to host program, between solving the problems, such as that striding course is called.
For example, under traditional B/S application models, if having used plug-in unit, then for different browsers, identical Pin function, it is necessary to develop the ACTIVEX controls suitable for IE respectively, it is adaptable to the plug-in unit of the NPAPI of FireFox, it is adaptable to The PPAPI plug-in units of Chrome.Different browsers is also directed under system simultaneously, the code adaptation work of browser is done. In system later maintenance and escalation process, it is also desirable to while safeguarding three kinds of plug-in units of different technologies, virtually increased and be The complexity and maintenance cost of system.If using the present invention, only with one dynamic link library file of exploitation, then in host program The function of middle this dynamic link library of addition, under B/S application models, all functions relevant with plug-in unit, by browser and place The communication of main program is completed, and the plug-in card program of each browser technology is based on without overlapping development, can not only reduce system Construction cycle and development cost, moreover it is possible to reduce the maintenance cost in system later stage.
Implement the embodiment of the present invention, have the advantages that:The present invention realizes a kind of control, is adapted to various browsers Purpose, while solve the difference because browser plug-in technology, the plug-in unit malloc failure malloc of appearance, the feelings such as the page is stuck Condition.On the code maintenance in later stage, also only need to safeguard a code, greatly reduce repetitive operation, also reduce slotting The fault rate of part product.
These are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (6)

1. a kind of web plug-in unit call methods based on http, it is characterised in that the web plug-in unit call methods based on http Including:
Obtain the http request of browser;
According to the http request of the browser, show that plug-in unit calls demand;
Call the corresponding plug-in unit in plugin library;
Call result is returned into the browser by the form of http.
2. web plug-in unit call methods based on http according to claim 1, it is characterised in that deposited in the plugin library Contain ActiveX plug-in units, NPAPI plug-in units and PPAPI plug-in units.
3. web plug-in unit call methods based on http according to claim 1, it is characterised in that the browser Included in http request and demand is called to plug-in unit.
4. a kind of web plug-in unit calling systems based on http, it is characterised in that the web plug-in unit calling systems based on http Including:
Host program module, for carrying out information mutual communication with browser, receives the http request of the browser and adjusts plug-in unit Sent to the browser in the form of http with result;
Card module, with host program module communication connection, is stored with plug-in unit to treat that the host program module is adjusted With.
5. web plug-in unit calling systems based on http according to claim 4, it is characterised in that in the card module Be stored with ActiveX plug-in units, NPAPI plug-in units and PPAPI plug-in units.
6. web plug-in unit calling systems based on http according to claim 4, it is characterised in that the card module enters One step completes plug-in unit function in itself, realizes the input/output function of plug-in unit.
CN201611216467.5A 2016-12-26 2016-12-26 A kind of web plug-in units call method and system based on http Pending CN106776074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611216467.5A CN106776074A (en) 2016-12-26 2016-12-26 A kind of web plug-in units call method and system based on http

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611216467.5A CN106776074A (en) 2016-12-26 2016-12-26 A kind of web plug-in units call method and system based on http

Publications (1)

Publication Number Publication Date
CN106776074A true CN106776074A (en) 2017-05-31

Family

ID=58925741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611216467.5A Pending CN106776074A (en) 2016-12-26 2016-12-26 A kind of web plug-in units call method and system based on http

Country Status (1)

Country Link
CN (1) CN106776074A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279888A (en) * 2017-12-19 2018-07-13 中国电子科技集团公司第三十研究所 A kind of plug-in implement method for supporting more money browsers
CN109343906A (en) * 2018-10-15 2019-02-15 江西金格科技股份有限公司 A kind of method of browser load ActiveX control
CN109558181A (en) * 2018-11-26 2019-04-02 高新兴国迈科技有限公司 Method, computer storage medium and the equipment of the compatible OCX control of non-IE browser
CN109992264A (en) * 2017-12-29 2019-07-09 浙江宇视科技有限公司 Window management method
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064886A (en) * 2012-12-07 2013-04-24 百度在线网络技术(北京)有限公司 Method for supporting multiple browsers and plug-in
CN103226474A (en) * 2013-05-10 2013-07-31 北京奇虎科技有限公司 Method, device and system for interaction between webpage script and browser program
CN105320503A (en) * 2014-06-24 2016-02-10 深圳市茁壮网络股份有限公司 Middleware and plug-in frame designing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064886A (en) * 2012-12-07 2013-04-24 百度在线网络技术(北京)有限公司 Method for supporting multiple browsers and plug-in
CN103226474A (en) * 2013-05-10 2013-07-31 北京奇虎科技有限公司 Method, device and system for interaction between webpage script and browser program
CN105320503A (en) * 2014-06-24 2016-02-10 深圳市茁壮网络股份有限公司 Middleware and plug-in frame designing system and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279888A (en) * 2017-12-19 2018-07-13 中国电子科技集团公司第三十研究所 A kind of plug-in implement method for supporting more money browsers
CN109992264A (en) * 2017-12-29 2019-07-09 浙江宇视科技有限公司 Window management method
CN109343906A (en) * 2018-10-15 2019-02-15 江西金格科技股份有限公司 A kind of method of browser load ActiveX control
CN109343906B (en) * 2018-10-15 2021-06-25 江西金格科技股份有限公司 Method for loading ActiveX control by browser
CN109558181A (en) * 2018-11-26 2019-04-02 高新兴国迈科技有限公司 Method, computer storage medium and the equipment of the compatible OCX control of non-IE browser
CN109558181B (en) * 2018-11-26 2022-07-01 高新兴国迈科技有限公司 Method for enabling non-IE browser to be compatible with OCX control, computer storage medium and equipment
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment
CN115291968B (en) * 2022-08-01 2024-02-23 国投智能科技有限公司 Service processing method, system and computer equipment

Similar Documents

Publication Publication Date Title
CN106776074A (en) A kind of web plug-in units call method and system based on http
CN103605498B (en) The multithreading of mono-thread tasks performs method and system
CN102855178B (en) Method and device for generating Mock base during unit test
CN102508437B (en) Multifunctional electromechanical system simulation method for simulation of airplane power supply control management system
CN105913316A (en) Rule configuration method and apparatus
CN103186455B (en) Page automatic test script generates method and system
CN102147747A (en) Enhanced upgrade path
CN109670128A (en) A kind of web application implementation method and device based on WebAssembly
CN105867944A (en) Web front-end terminal operating layer and implementing method thereof
CN106648674A (en) Big data computing management method and system
CN103530740A (en) Method and device for carrying out node control on task flow
CN102902576A (en) Method, server and system for rendering webpages
CN104991817A (en) Configurable integration method and system for information system
CN103544016A (en) Service registering configuration method and system based on JAVA reflection technology
CN102486749A (en) Method and system for data driving test
CN104462243A (en) Data verification combined ETL scheduling system and method
CN104991810B (en) Method and processing system in automatic addition APK to Android system
CN106201605A (en) FPGA start-up loading FLASH upgrade-system based on FPGA and PowerPC and method
CN106775668A (en) The mobile applications Development Framework and implementation method of cross operating system
CN103593199A (en) Method and systems for data conversion
CN104111843A (en) Sandbox based script updating method and system
CN102662962B (en) Dynamic display method based on webpage elements
CN104331287A (en) Method and system for releasing applications
CN102945264A (en) Method for intelligently starting distributed transaction
CN110389871A (en) A kind of safety computer platform having system integrity confirmation function

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication