CN104079594A - Method and device used for implementing downloading of network resources in closed system - Google Patents

Method and device used for implementing downloading of network resources in closed system Download PDF

Info

Publication number
CN104079594A
CN104079594A CN201310099611.1A CN201310099611A CN104079594A CN 104079594 A CN104079594 A CN 104079594A CN 201310099611 A CN201310099611 A CN 201310099611A CN 104079594 A CN104079594 A CN 104079594A
Authority
CN
China
Prior art keywords
internet resources
downloaded
buffer memory
application
download
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.)
Granted
Application number
CN201310099611.1A
Other languages
Chinese (zh)
Other versions
CN104079594B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310099611.1A priority Critical patent/CN104079594B/en
Publication of CN104079594A publication Critical patent/CN104079594A/en
Application granted granted Critical
Publication of CN104079594B publication Critical patent/CN104079594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and a device used for implementing downloading of network resources in a closed system. The method comprises the following steps of: establishing a link application corresponding to the network resources locally when the network resources in a webpage are triggered to download; and downloading the network resources and distributing the network resources to a cache of the link application. In comparison with the prior art, downloading of the network resources in the closed system is implemented, so that off-line browser of the network resources is implemented.

Description

For realize the method and apparatus that Internet resources are downloaded in closed system
Technical field
The present invention relates to field of computer technology, relate in particular to the method and apparatus of downloading for realize Internet resources in closed system.
Background technology
In open system, in form (windows) serial system, there is the method for the Internet resources in downloading web pages, for example, user only needs the download link in webpage clicking, or selects to preserve the Internet resources such as the document that presents with form web page, can realize Internet resources and download.
But, in closed system, in apple Mobile operating system (IOS) system of apple on mobile terminal, all resources only can be by the particular clients of system specialization, as the application shop in IOS system (App Store), download, user cannot directly obtain the Internet resources in webpage.
Summary of the invention
The object of this invention is to provide a kind of method and apparatus of downloading for realize Internet resources in closed system.
According to an aspect of the present invention, provide a kind of method of downloading for realize Internet resources in closed system, wherein, the method comprises the following steps:
A is when the described Internet resources in webpage are triggered while downloading, sets up link application that should Internet resources in this locality;
B is downloaded to described Internet resources in the buffer memory of distributing to described link application.
According to another aspect of the present invention, also provide a kind of device of downloading for realize Internet resources in closed system, wherein, this device comprises:
Apparatus for establishing, while download, sets up in this locality link application that should Internet resources for being triggered when the described Internet resources of webpage;
The first download apparatus, for being downloaded to described Internet resources the buffer memory of distributing to described link application.
Compared with prior art, the present invention has the following advantages: 1) by setting up the link application of map network resource, and by Internet resources being downloaded in the buffer memory of distributing to this link application, realize the Internet resources download in closed system, thereby realized the off-line browsing of Internet resources; 2) image that can be based on unified, the personalized labels of generating network resource, the problem that the image of having avoided the link label based in head element to obtain cannot be changed; 3) can realize the breakpoint transmission of Internet resources; 4) for user may be in the time that Internet resources not be downloaded or are not all downloaded the problem of off-line, the present embodiment can provide corresponding solution, so that Internet resources can intactly be downloaded; 5) problem that may be cleared for the buffer memory of distributing to application, the present embodiment can obtain by link application itself the resource downloading address information of the Internet resources that the network equipment provides, thereby realize Internet resources, and this resource address Download Info still can be kept in buffer memory, uses for subsequent download; 6) owing to may comprising the link that links to other Internet resources in Internet resources, the present embodiment can stop these links, thereby avoids these links to be clicked by user and cause exiting link and apply and jump to the problem of other application such as browser.
Brief description of the drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is the method flow diagram of downloading for realize Internet resources in closed system of a preferred embodiment of the invention;
Fig. 2 is the method flow diagram of downloading for realize Internet resources in closed system of another preferred embodiment of the present invention;
Fig. 3 is the apparatus structure schematic diagram of downloading for realize Internet resources in closed system of a preferred embodiment of the invention;
Fig. 4 is the apparatus structure schematic diagram of downloading for realize Internet resources in closed system of another preferred embodiment of the present invention.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the method flow diagram of downloading for realize Internet resources in closed system of a preferred embodiment of the invention.Comprise step S1 and step S2 according to the method for the present embodiment.Wherein, the method for the present embodiment mainly realizes by the device being contained in the subscriber equipment with closed system; Preferably, this subscriber equipment is mobile device, such as iPhone, iPad etc.The residing network of described subscriber equipment includes but not limited to the Internet, wide area network, metropolitan area network, local area network (LAN), VPN (virtual private network) (VPN, Virtual Private Network) network etc.
It should be noted that, described subscriber equipment and network are only for giving an example, and other subscriber equipmenies existing or that may occur from now on or network, as applicable to the present invention, also should be included in protection range of the present invention, and are contained in this with way of reference.
Wherein, device of the present invention can be included in webpage, and is loaded in subscriber equipment with this webpage.For example, the device of the present embodiment can show as in webpage codes such as Javascript, and it is medium to be loaded on subscriber equipment with webpage.
Webpage in the present invention comprises Internet resources.Preferably, the Internet resources in the present embodiment include but not limited to document, audio frequency and video etc.More preferably, the Internet resources in the present embodiment are document.It should be noted that, " webpage comprises Internet resources " represents that this webpage itself can directly comprise this Internet resources, or, this webpage can comprise the resource downloading address information of these Internet resources, and, in the time that subscriber equipment need to present this webpage, can carry out down loading network resource by this resource downloading address information, and be presented in webpage.
Particularly, in the present embodiment, subscriber equipment has loaded the webpage that comprises Internet resources.It should be noted that, webpage can only present the Internet resources that it comprises now being, and for example, the Internet resources that webpage comprises are Word or PDF document, can directly present this Word or PDF document.
As a kind of example, following embodiment mainly describes with the webpage based on HTML (HTML), title (title) label/element, head (head) label/element, painting canvas (canvas), link (link) label/element, hypertext related in giving an example as following are quoted (href) attribute etc., all can carry out clear and definite its implication by inquiry HTML specification; But, those skilled in the art are to be understood that, webpage of the present invention is not limited to html web page, and can correspondingly expand to other webpages, as expanded hypertext markup language (XHTML) webpage, extend markup language (XML) webpage etc.
In step S1, when the Internet resources in webpage are triggered while downloading, set up in this locality link application that should Internet resources.
Wherein, the download that can be triggered in multiple situation of the Internet resources in webpage.For example, subscriber equipment is iPad, and closed system is IOS system, and the Internet resources in webpage are document; User carries out the operation of " being added into main screen " to the webpage that is directly rendered as document, the download that is triggered of the document in webpage.It should be noted that, should be for example only for technical scheme of the present invention be described better, but not limitation of the present invention, those skilled in the art should understand that, Internet resources in any webpage be triggered download implementation, for example, the mode of webpage shortcut link or Internet resources shortcut link etc. is set up in other triggerings, all should be within the scope of the present invention.
Wherein, the link information that comprises the webpage that comprises Internet resources is applied in described link, and can be used in and link to the webpage that comprises these Internet resources.For example, in upper example, when user carries out after the operation of " being added into main screen " being directly rendered as the webpage of document, the link information that comprises this webpage is applied in the link of setting up, and this link application start, for example user clicks this link application, and it can be for triggering browser, as the apple browser (Safari) in IOS system etc., the webpage that access comprises these Internet resources.
Particularly, when the Internet resources in webpage are triggered while downloading, set up in this locality to the mode of link application that should Internet resources include but not limited to following any one:
1) set up icon and be rendered as the link application of text message.
For example, Internet resources are document, by searching the title label of head part, determine that document title is " XXX ", and device, by canvas, generates base64 data, and these base64 data, in the time being moved to represent to user, are rendered as text " XXX "; And, device generates link label, and be generated base64 data by the href setup of attribute of this label, thereby the icon information using these base64 data as link application, and, device is the attribute that closed system can be identified as application by the rel setup of attribute of link label, as is set to IOS system and can be identified as " apple-touch-icon " attribute etc. of desktop application.
2) obtain the icon information of link application, and set up described link application in this locality, this link application is rendered as described icon information while not being activated.
Wherein, the mode of obtaining the icon information of link application include but not limited to following any one:
A), according to the link label in the head part of webpage, obtain the icon information of link application.
B), according to the image links address information comprising in the configuration file of webpage, download original image information; And according to the resource identification relevant information of Internet resources, process described original image information, obtain the icon information of described link application.Wherein, described resource identification relevant information comprises any information that can be used in these Internet resources of identification; For example, Internet resources title, type etc.Preferably, this resource identification relevant information can be contained in webpage; For example, Internet resources title can be contained in the title part in webpage etc., and this title part can be determined by title label.
For example, the image links address information of the original image information comprising in access-profile, and download original image information based on this image links address information; Then, pass through canvas, on this original image information, add Internet resources title, and the small icon of drawing expression network resource type, then, call the application programming interface (API) that canvas provides, image after treatment is converted to base64 coding, as the icon information of link application.
Because the image that the link label based in head element obtains cannot be changed, therefore, if the link label of employing based in head element obtains the mode of icon information, and need to set up individual icon for different Internet resources, need in advance for different Internet resources generate individual icon, and obtaining by the link label in head element the individual icon that this generates in advance, this is comparatively loaded down with trivial details undoubtedly; And in this implementation, for different Internet resources, also only need obtain identical original image information and it is processed, can generate the individual icon for heterogeneous networks resource, thus, the image of having avoided the link label based in head element to obtain cannot be changed and need to be the problem that different Internet resources set in advance different individual icons.
Wherein, be set to the icon information of its acquisition by the icon of link application, set up the described link application that is rendered as described icon information while not being activated in this locality.Preferably, the operation of the interpolation application that can carry out according to user, as the operation of performed " being added into main screen ", will set up the described link application that is rendered as described icon information in this locality.
For example, closed system is IOS system, device generates link label, and be generated icon information by its href setup of attribute, and be " apple-touch-icon " by its rel setup of attribute, thereby carry out user after the operation of " being added into main screen ", generate the link application that is rendered as on the table obtained icon information while startup.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any icon information that obtains link application, and set up the implementation that is rendered as the described link application of described icon information while not being activated in this locality, all should be within the scope of the present invention.
Then,, in step S2, Internet resources are downloaded in the buffer memory of distributing to link application.
In the present embodiment, do not limit Internet resources being downloaded to the opportunity of distributing in the buffer memory that links application, for instance, can be after link application be set up, immediately Internet resources are downloaded in the buffer memory of distributing to link application, also can, in the time that link application is started first, Internet resources be downloaded in the buffer memory of distributing to link application.
For example, after link application is set up, resource downloading address informations that comprise in access-profile, Internet resources, are downloaded to Internet resources in Web page structural query language (WEB SQL) database of distributing to link application.
Wherein, in the time that Internet resources are document, can, using " document id " and " document number of pages " as associating major key, document be inserted in cache database.And before this link application start, download section is divided the document of number of pages, can continue to download the document of all the other numbers of pages after local links application start, thereby realize breakpoint transmission.
Preferably, when can be used in the buffer memory of distributing to link application, the part of storage networking resource is full, and for example the data in WEB SQL database completely time, can first empty this partial buffering or delete the partial content in this partial buffering, then down loading network resource.
It should be noted that, in the process of carrying out in step of the present invention, the device of carrying out said method can add this locality, distributes in the buffer memory of link application, so that device also can executable operations after webpage is closed as added.And those skilled in the art will be understood that as adapting to different memory locations and for realizing corresponding function, adding the device in buffer memory that corresponding change can occur.
Preferably, the configuration file of webpage also can be loaded in the buffer memory of distributing to link application, for follow-up use.
As one of preferred version of the present embodiment, the method for the present embodiment is further comprising the steps of: in the time that link application is activated, obtain described Internet resources, in order to present to user from distribute to the buffer memory of link application.
For example, Internet resources are audio frequency, according to the audio identification (ID) of the corresponding audio frequency of link application, obtain this audio frequency from cache database, use for closed system and play.
Again for example, when Internet resources are document, according to the document id of the document corresponding with linking application and the document number of pages that current needs present, from cache database, read this page of document, present to user.
Preferably, can first judge whether current be off-line state, whether for example independence (standalone) determined property by browser (navigator) global variable is current is off-line state, and when in off-line state, just from buffer memory, obtain Internet resources and present to user.
Preferably, in the time that Internet resources are document, the number of pages that user accesses while closing link application can be recorded in the data (cookie) of user terminal, while once starting link application on user, can, according to the record in cookie, directly present this page of document.
As one of preferred version of the present embodiment, the method for the present embodiment is further comprising the steps of: in the time detecting that Internet resources are not downloaded or part does not download, the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to link application.
Wherein, the whether all or part of mode of not downloading of Sampling network resource includes but not limited to:
1) whether active detecting Internet resources are not downloaded or not download of part.
For example, Internet resources are document, and when link application start, whether all numbers of pages of active detecting document are all downloaded.
2), when subnetwork resource need to be now, just detect this subnetwork resource and whether do not download.
Whether for example, Internet resources are document, in the time that user browses certain one page document, just detect this page of document and download.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, the whether all or part of implementation of not downloading of any Sampling network resource, all should be within the scope of the present invention.
Wherein, the mode Internet resources of not downloading or part is not downloaded being downloaded in the buffer memory of distributing to link application includes but not limited to:
1) access links is applied the link information of the webpage comprising, to obtain the resource downloading address information of Internet resources, and based on this resource downloading address information, the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
For example, access links is applied the link information of the webpage comprising, for providing the network equipment of service, webpage corresponding to this link information can identify this access from link application, thereby provide the configuration file of this webpage that link application is pointed to subscriber equipment, and be loaded in the buffer memory of distributing to link application, from configuration file, obtain the resource downloading address information of Internet resources, thereby access this resource downloading address information, and the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
2) when detecting that Internet resources are not downloaded or part is not downloaded, and distribute to while not comprising the resource downloading address information of Internet resources in the buffer memory of link application, access described link and apply the link information of the described webpage comprising, to obtain the resource downloading address information of described Internet resources, and based on this resource downloading address information, the described Internet resources of not downloading or partly do not download are downloaded in the buffer memory of distributing to described link application; When detecting that described Internet resources are not downloaded or part is not downloaded, and while distributing to the resource downloading address information that comprises described Internet resources in the buffer memory of described link application, attaching is based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application.
For example, in the time detecting that Internet resources are not downloaded or part does not download, first access cache, and attempting from wherein obtaining the resource downloading address information of Internet resources is searched configuration file to obtain resource downloading address information in this configuration file etc. in buffer memory as attempted, and, when finding configuration file and when wherein obtaining resource downloading address information, directly based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application, when not finding configuration file and when wherein obtaining resource downloading address information, access links is applied the link information of the webpage comprising, for providing the network equipment of service, webpage corresponding to this link information can identify this access from link application, thereby provide the configuration file of this webpage that link application is pointed to subscriber equipment, and be loaded in the buffer memory of distributing to link application, from configuration file, obtain the resource downloading address information of Internet resources, thereby access this resource downloading address information, and the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
It should be noted that, in the time that buffer memory is cleared, the part being stored in device in buffer memory also can be eliminated, but this part can, with resource downloading address information, be provided by the network equipment, and rejoin in buffer memory.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any the Internet resources of not downloading or part is not downloaded are downloaded to the implementation in the buffer memory of distributing to link application, all should be within the scope of the present invention.
In the present embodiment, by setting up the link application of map network resource, and by Internet resources being downloaded in the buffer memory of distributing to this link application, having realized the Internet resources in closed system and downloaded, thus, user can off-line browsing Internet resources.
And, for user may be in the time that Internet resources not be downloaded or are not all downloaded the problem of off-line, the present embodiment can provide corresponding solution, so that Internet resources can intactly be downloaded.
And, the problem that may be cleared for the buffer memory of distributing to application, the present embodiment can obtain by link application itself the resource downloading address information of the Internet resources that the network equipment provides, thereby realize Internet resources, and this resource address Download Info still can be kept in buffer memory, uses for subsequent download.
Fig. 2 is the method flow diagram of downloading for realize Internet resources in closed system of another preferred embodiment of the present invention.The method of the present embodiment comprises step S1 and step S2 and the step S3 carrying out before step S2; Wherein, step S2 comprises step S2 '.
Wherein, step S1 is described in detail with reference to the embodiment shown in FIG. 1, does not repeat them here.
In step S3, device judges whether the Set For Current of closed system allows writing information in the buffer memory of distributing to application.
For example, user can arrange and allow or do not allow writing information in the buffer memory of application, and the interface that device provides by access closed system, judges whether the Set For Current of closed system allows writing information in the buffer memory of distributing to application.
In step S2 ', in the time judging that the Set For Current of described closed system allows distributing in the buffer memory of application writing information, device is downloaded to Internet resources in the buffer memory of distributing to described link application.
Wherein, in this step, device is downloaded to Internet resources the mode in the buffer memory of distributing to described link application, that Internet resources are downloaded to the mode of distributing in the described buffer memory that links application is same or similar with device in step S2 with reference in embodiment illustrated in fig. 1, does not repeat them here.
Preferably, when judging that Set For Current does not allow in the buffer memory of application when writing information, in the time that link application is activated, device is downloaded to described Internet resources in the internal memory of temporarily distributing to described link application, in order to present to user.
For example, the link information that subscriber equipment comprises according to link application, access Web page loading, device is loaded in subscriber equipment with webpage, and the Internet resources in webpage are downloaded in the internal memory of temporarily distributing to described link application, in order to present to user.
As one of preferred version of the present embodiment and last embodiment, when Internet resources are now, device stops the link that can cause jumping to other application in Internet resources.
Owing to may comprising the link that links to other Internet resources in Internet resources, for example, link to certain webpage etc., device stops these links, causes exiting link apply and jump to other application such as browser to avoid these links to be clicked by user.
Fig. 3 is the apparatus structure schematic diagram of downloading for realize Internet resources in closed system of a preferred embodiment of the invention.The device of the present embodiment comprises apparatus for establishing 1 and the first download apparatus 2.
When the Internet resources in webpage are triggered while downloading, apparatus for establishing 1 is set up in this locality link application that should Internet resources.
Wherein, the download that can be triggered in multiple situation of the Internet resources in webpage.For example, subscriber equipment is iPad, and closed system is IOS system, and the Internet resources in webpage are document; User carries out the operation of " being added into main screen " to the webpage that is directly rendered as document, the download that is triggered of the document in webpage.It should be noted that, should be for example only for technical scheme of the present invention be described better, but not limitation of the present invention, those skilled in the art should understand that, Internet resources in any webpage be triggered download implementation, for example, the mode of webpage shortcut link or Internet resources shortcut link etc. is set up in other triggerings, all should be within the scope of the present invention.
Wherein, the link information that comprises the webpage that comprises Internet resources is applied in described link, and can be used in and link to the webpage that comprises these Internet resources.For example, in upper example, when user carries out after the operation of " being added into main screen " being directly rendered as the webpage of document, the link information that comprises this webpage is applied in the link of setting up, and after this link application start, for example user clicks this link application, and it can be for triggering browser, as the Safari in IOS system etc., the webpage that access comprises these Internet resources.
Particularly, when the Internet resources in webpage are triggered while downloading, apparatus for establishing 1 set up in this locality to the mode of link application that should Internet resources include but not limited to following any one:
1) apparatus for establishing 1 is directly set up icon and is rendered as the link application of text message.
For example, Internet resources are document, apparatus for establishing 1 is by searching the title label of head part, determine that document title is " XXX ", apparatus for establishing 1 passes through canvas, generate the data of base64 form, the data of this base64 form, in the time being moved to represent to user, are rendered as text " XXX "; And, apparatus for establishing 1 generates link label, and be generated base64 data by the href setup of attribute of this label, thereby the icon information using these base64 data as link application, and, apparatus for establishing 1 is the attribute that closed system can be identified as application by the rel setup of attribute of link label, as is set to IOS system and can be identified as " apple-touch-icon " attribute of desktop application etc.
2) apparatus for establishing 1 comprises icon acquisition device (not shown) and sub-apparatus for establishing (not shown).Icon acquisition device obtains the icon information of link application, and sub-apparatus for establishing is set up described link application in this locality, and this link application is rendered as described icon information while not being activated.
Wherein, the mode that icon acquisition device obtains the icon information of link application include but not limited to following any one:
A) icon acquisition device, according to the link label in the head part of webpage, obtains the icon information of link application.
B) icon acquisition device comprises the second download apparatus (not shown) and processing unit (not shown).The second download apparatus, according to the image links address information comprising in the configuration file of webpage, is downloaded original image information; Processing unit, according to the resource identification relevant information of Internet resources, is processed described original image information, obtains the icon information of described link application.Wherein, described resource identification relevant information comprises any information that can be used in these Internet resources of identification; For example, Internet resources title, type etc.Preferably, this resource identification relevant information can be contained in webpage; For example, Internet resources title can be contained in the title part in webpage etc., and this title part can be determined by title label.
For example, the image links address information of the original image information comprising in the second download apparatus access-profile, and download original image information based on this image links address information; Then, processing unit, by canvas, adds Internet resources title on this original image information, and draw the small icon that represents network resource type, then, processing unit calls the API that canvas provides, image after treatment is converted to base64 coding, as the icon information of link application.
Because the image that the link label based in head element obtains cannot be changed, therefore, if the link label of employing based in head element obtains the mode of icon information, and need to set up individual icon for different Internet resources, must be that each Internet resources generate individual icon in advance, and obtaining by the link label based in head element the individual icon that this generates in advance, this is comparatively loaded down with trivial details undoubtedly; And in this implementation, for different Internet resources, also only need obtain identical original image information and it is processed, can generate the individual icon for heterogeneous networks resource, thus, the image of having avoided the link label based in head element to obtain cannot be changed and need to be the problem that different Internet resources set in advance different individual icons.
Wherein, sub-apparatus for establishing is set to by the icon of link application the icon information that icon acquisition device obtains, and sets up the described link application that is rendered as described icon information while not being activated in this locality.Preferably, the operation of the interpolation application that sub-apparatus for establishing can be carried out according to user, as the operation of performed " being added into main screen ", will set up the described link application that is rendered as described icon information in this locality ".
For example, closed system is IOS system, sub-apparatus for establishing generates link label, and be the icon information that icon acquisition device generates by its href setup of attribute, and be " apple-touch-icon " by its rel setup of attribute, thereby carry out user after the operation of " being added into main screen ", generate the link application that is rendered as on the table obtained icon information while startup.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any icon information that obtains link application, and set up the implementation that is rendered as the described link application of described icon information while not being activated in this locality, all should be within the scope of the present invention.
Then, the first download apparatus 2 is downloaded to Internet resources in the buffer memory of distributing to link application.
In the present embodiment, do not limit Internet resources being downloaded to the opportunity of distributing in the buffer memory that links application, for instance, the first download apparatus 2 can be after link application be set up, immediately Internet resources are downloaded in the buffer memory of distributing to link application, also can, in the time that link application is started first, Internet resources be downloaded in the buffer memory of distributing to link application.
For example, after link application is set up, resource downloading address information that comprise, Internet resources in the first download apparatus 2 access-profiles, is downloaded to Internet resources in the WEB SQL database of distributing to link application.
Wherein, in the time that Internet resources are document, the first download apparatus 2 can, using " document id " and " document number of pages " as associating major key, insert document in cache database.And download section is divided the document of number of pages before this link application start, the first download apparatus 2 can continue to download the document of all the other numbers of pages after local links application start, thereby realizes breakpoint transmission.
Preferably, full when can be used in the part of storage networking resource in the buffer memory of distributing to link application, for example, when the data in WEB SQL database have expired, the first download apparatus 2 can first empty this partial buffering or delete the partial content in this partial buffering, then down loading network resource.
It should be noted that, in the process that the solution of the present invention is carried out, device of the present invention can add this locality, distributes in the buffer memory of link application, so that device also can executable operations after webpage is closed as added.And those skilled in the art will be understood that as adapting to different memory locations and for realizing corresponding function, adding the device in buffer memory that corresponding change can occur.
Preferably, the configuration file of webpage also can be loaded in the buffer memory of distributing to link application, for follow-up use.
As one of preferred version of the present embodiment, the device of the present embodiment also comprises that first presents device (not shown).In the time that link application is activated, first presents device obtains described Internet resources from distribute to the buffer memory that links application, in order to present to user.
For example, Internet resources are audio frequency, and first presents device according to the audio frequency ID of the corresponding audio frequency of link application, obtains this audio frequency from cache database, uses for closed system and plays.
Again for example, when Internet resources are document, first presents device according to the document id of the document corresponding with linking application and the document number of pages that current needs present, and reads this page of document from cache database, presents to user.
Preferably, first presents device can first judge whether current be off-line state, whether for example standalone determined property by navigator global variable is current is off-line state, and when in off-line state, just from buffer memory, obtains Internet resources and present to user.
Preferably, in the time that Internet resources are document, the number of pages that user accesses while closing link application can be recorded in cookie, and while once starting link application on user, first presents device can, according to the record in cookie, directly present this page of document.
As one of preferred version of the present embodiment, the device of the present embodiment also comprises the 3rd download apparatus.In the time detecting that Internet resources are not downloaded or part does not download, the 3rd download apparatus is downloaded to the Internet resources of not downloading or part is not downloaded in the buffer memory of distributing to link application.
Wherein, the whether all or part of mode of not downloading of the 3rd download apparatus Sampling network resource includes but not limited to:
1) whether the 3rd download apparatus active detecting Internet resources are not downloaded or not download of part.
For example, Internet resources are document, and when link application start, whether all numbers of pages of the 3rd download apparatus active detecting document are all downloaded.
2), when subnetwork resource need to be now, whether the 3rd download apparatus just detects this subnetwork resource and does not download.
For example, Internet resources are document, and in the time that user browses certain one page document, whether the 3rd download apparatus just detects this page of document and download.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, the whether all or part of implementation of not downloading of any Sampling network resource, all should be within the scope of the present invention.
Wherein, the mode that the 3rd download apparatus is downloaded to the Internet resources of not downloading or part is not downloaded in the buffer memory of distributing to link application includes but not limited to:
1) the 3rd download apparatus access links is applied the link information of the webpage comprising, to obtain the resource downloading address information of Internet resources, and based on this resource downloading address information, the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
For example, the 3rd download apparatus access links is applied the link information of the webpage comprising, for providing the network equipment of service, webpage corresponding to this link information can identify this access from link application, thereby provide the configuration file of this webpage that link application is pointed to subscriber equipment, and configuration file is loaded in the buffer memory of distributing to link application, the 3rd download apparatus obtains the resource downloading address information of Internet resources from configuration file, thereby access this resource downloading address information, and the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
2) the 3rd download apparatus comprises the 4th download apparatus (not shown) and the 5th download apparatus (not shown).When detecting that Internet resources are not downloaded or part is not downloaded, and distribute to while not comprising the resource downloading address information of Internet resources in the buffer memory of link application, the 4th download apparatus is accessed described link and applies the link information of the described webpage comprising, to obtain the resource downloading address information of described Internet resources, and based on this resource downloading address information, the described Internet resources of not downloading or partly do not download are downloaded in the buffer memory of distributing to described link application; When detecting that described Internet resources are not downloaded or part is not downloaded, and while distributing to the resource downloading address information that comprises described Internet resources in the buffer memory of described link application, the 5th download apparatus is directly based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application.
For example, in the time detecting that Internet resources are not downloaded or part does not download, the first access cache of the 3rd download apparatus, and attempting from wherein obtaining the resource downloading address information of Internet resources is searched configuration file to obtain resource downloading address information in this configuration file etc. in buffer memory as attempted, and, when finding configuration file and when wherein obtaining resource downloading address information, the 5th download apparatus is directly based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application, when not finding configuration file and when wherein obtaining resource downloading address information, the 4th download apparatus access links is applied the link information of the webpage comprising, for providing the network equipment of service, webpage corresponding to this link information can identify this access from link application, thereby provide the configuration file of this webpage that link application is pointed to subscriber equipment, and be loaded in the buffer memory of distributing to link application, the 4th download apparatus obtains the resource downloading address information of Internet resources from configuration file, thereby access this resource downloading address information, and the Internet resources of not downloading or part is not downloaded are downloaded in the buffer memory of distributing to described link application.
It should be noted that, in the time that buffer memory is cleared, the part being stored in device in buffer memory also can be eliminated, but this part can, with resource downloading address information, be provided by the network equipment, and rejoin in buffer memory.
It should be noted that, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any the Internet resources of not downloading or part is not downloaded are downloaded to the implementation in the buffer memory of distributing to link application, all should be within the scope of the present invention.
In the present embodiment, by setting up the link application of map network resource, and by Internet resources being downloaded in the buffer memory of distributing to this link application, having realized the Internet resources in closed system and downloaded, thus, user can off-line browsing Internet resources.
And, for user may be in the time that Internet resources not be downloaded or are not all downloaded the problem of off-line, the present embodiment can provide corresponding solution, so that Internet resources can intactly be downloaded.
And, the problem that may be cleared for the buffer memory of distributing to application, the present embodiment can obtain by link application itself the resource downloading address information of the Internet resources that the network equipment provides, thereby realize Internet resources, and this resource address Download Info still can be kept in buffer memory, uses for subsequent download.
Fig. 4 is the apparatus structure schematic diagram of downloading for realize Internet resources in closed system of another preferred embodiment of the present invention.The device of the present embodiment comprises apparatus for establishing 1, the first download apparatus 2 and judgment means 3; Wherein, the first download apparatus 2 comprises sub-download apparatus 21.
Wherein, apparatus for establishing 1 is described in detail with reference to the embodiment shown in FIG. 3, does not repeat them here.
Judgment means 3 judges whether the Set For Current of closed system allows writing information in the buffer memory of distributing to application.
For example, user can arrange and allow or do not allow writing information in the buffer memory of application, and the interface that judgment means 3 provides by access closed system, judges whether the Set For Current of closed system allows writing information in the buffer memory of distributing to application.
In the time that judgment means 3 judges that the Set For Current of described closed system allows distributing in the buffer memory of application writing information, sub-download apparatus 21 is downloaded to Internet resources in the buffer memory of distributing to described link application.
Wherein, sub-download apparatus 21 is downloaded to Internet resources the mode in the buffer memory of distributing to described link application, it is same or similar that Internet resources are downloaded to the mode of distributing in the described buffer memory that links application by the first download apparatus 2 in embodiment illustrated in fig. 3 with reference, do not repeat them here.
Preferably, the device of the present embodiment also comprises that second presents device (not shown).Do not allow in the buffer memory of application when writing information when judgment means 3 judges Set For Current, in the time that link application is activated, second presents device is downloaded to described Internet resources in the internal memory of temporarily distributing to described link application, in order to present to user.
For example, the link information that subscriber equipment comprises according to link application, access Web page loading, device of the present invention is loaded in subscriber equipment with webpage, and second presents device is downloaded to the Internet resources in webpage in the internal memory of temporarily distributing to described link application, in order to present to user.
As one of preferred version of the present embodiment and last embodiment, the device of the present embodiment also comprises holdout device (not shown).When Internet resources are now, holdout device stops the link that can cause jumping to other application in Internet resources.
Owing to may comprising the link that links to other Internet resources in Internet resources, for example, link to certain webpage etc., by stoping these links, can avoid these links to be clicked by user and cause exiting link and apply and jump to other application such as browser.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, is therefore intended to all changes that drop in the implication and the scope that are equal to important document of claim to be included in the present invention.Any Reference numeral in claim should be considered as limiting related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.Multiple unit of stating in system claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (18)

1. a method of downloading for realize Internet resources in closed system, wherein, the method comprises the following steps:
A is when the described Internet resources in webpage are triggered while downloading, sets up link application that should Internet resources in this locality;
B is downloaded to described Internet resources in the buffer memory of distributing to described link application.
2. method according to claim 1, wherein, described step a comprises the following steps:
A1, in the time that the described Internet resources in described webpage are triggered download, obtains the icon information of described link application;
A2 sets up the described link application that is rendered as described icon information while not being activated in this locality.
3. method according to claim 2, wherein, described step a1 comprises the following steps:
-in the time that the described Internet resources in described webpage are triggered download, according to the image links address information comprising in the configuration file of described webpage, download original image information;
-according to the resource identification relevant information of described Internet resources, process described original image information, obtain the icon information of described link application.
4. according to the method in any one of claims 1 to 3, wherein, the method is further comprising the steps of:
-in the time that described link application is activated, from distribute to the buffer memory of described link application, obtain described Internet resources, in order to present to user.
5. method according to claim 4, wherein, the method is further comprising the steps of:
I, in the time detecting that described Internet resources are not downloaded or part does not download, is downloaded to the described Internet resources of not downloading or partly do not download in the buffer memory of distributing to described link application.
6. method according to claim 5, wherein, described step I comprises the following steps:
-when detecting that described Internet resources are not downloaded or part is not downloaded, and distribute to while not comprising the resource downloading address information of described Internet resources in the buffer memory of described link application, access described link and apply the link information of the described webpage comprising, to obtain the download link address information of described Internet resources, and based on this resource downloading address information, the described Internet resources of not downloading or partly do not download are downloaded in the buffer memory of distributing to described link application;
-when detecting that described Internet resources are not downloaded or part is not downloaded, and while distributing to the resource downloading address information that comprises described Internet resources in the buffer memory of described link application, directly based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application.
7. according to the method described in any one in claim 1 to 6, wherein, the method is further comprising the steps of before described step b:
-judge whether the Set For Current of described closed system allows writing information in the buffer memory of distributing to application;
Wherein, described step b comprises the following steps:
In the time judging that the Set For Current of described closed system allows distributing in the buffer memory of application writing information, described Internet resources are downloaded in the buffer memory of distributing to described link application.
8. method according to claim 7, wherein, the method is further comprising the steps of:
-when judge that described Set For Current does not allow when writing information, in the time that described link application is activated, described Internet resources to be downloaded in the internal memory of distributing to described link application, in order to present to user in the buffer memory of application temporarily.
9. according to the method described in claim 4 or 8, wherein, the method is further comprising the steps of:
-when described Internet resources are now, stop the link that can cause jumping to other application in described Internet resources.
10. a device of downloading for realize Internet resources in closed system, wherein, this device comprises:
Apparatus for establishing, while download, sets up in this locality link application that should Internet resources for being triggered when the described Internet resources of webpage;
The first download apparatus, for being downloaded to described Internet resources the buffer memory of distributing to described link application.
11. devices according to claim 10, wherein, described apparatus for establishing comprises:
Icon acquisition device, while download, obtains the icon information of described link application for being triggered when the described Internet resources of described webpage;
Sub-apparatus for establishing, is rendered as the described link application of described icon information for setting up in this locality while not being activated.
12. devices according to claim 11, wherein, described icon acquisition device comprises:
The second download apparatus, while download, according to the image links address information comprising in the configuration file of described webpage, downloads original image information for being triggered when the described Internet resources of described webpage;
Processing unit, for according to the resource identification relevant information of described Internet resources, processes described original image information, obtains the icon information of described link application.
13. according to claim 10 to the device described in any one in 12, and wherein, this device also comprises:
First presents device, in the time that described link application is activated, obtains described Internet resources, in order to present to user from distribute to the buffer memory of described link application.
14. devices according to claim 13, wherein, this device also comprises:
The 3rd download apparatus, in the time detecting that described Internet resources are not downloaded or part does not download, is downloaded to the described Internet resources of not downloading or partly do not download in the buffer memory of distributing to described link application.
15. devices according to claim 14, wherein, described the 3rd download apparatus comprises:
The 4th download apparatus, detect that for working as described Internet resources are not downloaded or part is not downloaded, and distribute to while not comprising the resource downloading address information of described Internet resources in the buffer memory of described link application, access described link and apply the link information of the described webpage comprising, to obtain the resource downloading address information of described Internet resources, and based on this resource downloading address information, the described Internet resources of not downloading or partly do not download are downloaded in the buffer memory of distributing to described link application;
The 5th download apparatus, detect that for working as described Internet resources are not downloaded or part is not downloaded, and while distributing to the resource downloading address information that comprises described Internet resources in the buffer memory of described link application, directly based on this resource downloading address information, by described do not download or resource downloading that part is not downloaded to distributing in the buffer memory of described link application.
16. according to claim 10 to the device described in any one in 15, wherein, this device be also included in executable operations before described the first download apparatus with lower device:
Judgment means, for judging whether the Set For Current of described closed system allows distributing to the buffer memory writing information of application;
Wherein, described the first download apparatus comprises:
Sub-download apparatus, for when judging that the Set For Current of described closed system allows in the time distributing to the buffer memory writing information of application, is downloaded to described Internet resources in the buffer memory of distributing to described link application.
17. devices according to claim 16, wherein, this device also comprises:
Second presents device, in the time judging that described Set For Current does not allow the buffer memory writing information in application, in the time that described link application is activated, described resource downloading is extremely distributed to temporarily in the internal memory of described link application, in order to present to user.
18. according to the device described in claim 13 or 17, and wherein, this device also comprises:
Holdout device, for being now when described Internet resources, stops the link that can cause jumping to other application in described Internet resources.
CN201310099611.1A 2013-03-26 2013-03-26 The method and apparatus downloaded for realizing Internet resources in closed system Active CN104079594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310099611.1A CN104079594B (en) 2013-03-26 2013-03-26 The method and apparatus downloaded for realizing Internet resources in closed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310099611.1A CN104079594B (en) 2013-03-26 2013-03-26 The method and apparatus downloaded for realizing Internet resources in closed system

Publications (2)

Publication Number Publication Date
CN104079594A true CN104079594A (en) 2014-10-01
CN104079594B CN104079594B (en) 2018-08-21

Family

ID=51600636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310099611.1A Active CN104079594B (en) 2013-03-26 2013-03-26 The method and apparatus downloaded for realizing Internet resources in closed system

Country Status (1)

Country Link
CN (1) CN104079594B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446756A (en) * 2018-10-09 2019-03-08 上海二三四五网络科技有限公司 A kind of control method and control device for preventing malice from jumping APP in browser of mobile terminal
CN112416970A (en) * 2020-12-03 2021-02-26 四川长虹电器股份有限公司 Method for reducing query number on relational database

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079057A (en) * 2007-03-14 2007-11-28 腾讯科技(深圳)有限公司 System and method for keeping multiple link object of web page
CN102306077A (en) * 2011-08-04 2012-01-04 深圳市万兴软件有限公司 Method for downloading video in Macintosh (MAC) platform browser and browser
CN102323890A (en) * 2011-08-23 2012-01-18 百度在线网络技术(北京)有限公司 The web page processing method, the Apparatus and system that are used for wireless terminal
CN102523248A (en) * 2011-11-24 2012-06-27 深圳市万兴软件有限公司 Method, client and server for playing webpage flash video
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102737116A (en) * 2012-05-29 2012-10-17 深圳市同洲电子股份有限公司 Method and device for storing webpage resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079057A (en) * 2007-03-14 2007-11-28 腾讯科技(深圳)有限公司 System and method for keeping multiple link object of web page
CN102306077A (en) * 2011-08-04 2012-01-04 深圳市万兴软件有限公司 Method for downloading video in Macintosh (MAC) platform browser and browser
CN102323890A (en) * 2011-08-23 2012-01-18 百度在线网络技术(北京)有限公司 The web page processing method, the Apparatus and system that are used for wireless terminal
CN102523248A (en) * 2011-11-24 2012-06-27 深圳市万兴软件有限公司 Method, client and server for playing webpage flash video
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102737116A (en) * 2012-05-29 2012-10-17 深圳市同洲电子股份有限公司 Method and device for storing webpage resources

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446756A (en) * 2018-10-09 2019-03-08 上海二三四五网络科技有限公司 A kind of control method and control device for preventing malice from jumping APP in browser of mobile terminal
CN112416970A (en) * 2020-12-03 2021-02-26 四川长虹电器股份有限公司 Method for reducing query number on relational database

Also Published As

Publication number Publication date
CN104079594B (en) 2018-08-21

Similar Documents

Publication Publication Date Title
US10515142B2 (en) Method and apparatus for extracting webpage information
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
CN110096660B (en) Method and device for loading page pictures and electronic equipment
US20160110470A1 (en) Retrieving content from website through sandbox
CN107291759B (en) Method and device for processing browser page resources
CN105302811B (en) Browser page skipping method and device
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
JP2010527051A (en) Document processing for mobile devices
CN104426925A (en) Webpage resource obtaining method and apparatus
CN107038194B (en) Page jump method and device
CN105956136B (en) Method and device for acquiring login information
EP3651421A1 (en) Multimedia display method, apparatus, and device
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
US20210105314A1 (en) Associating browser with application
US20090241017A1 (en) Sharing syndicated feed bookmarks among members of a social network
CN104899212B (en) Web page display method, server and system
CN110968314A (en) Page generation method and device
CN105630310A (en) Method and device for displaying titles during graph group switching
US10095791B2 (en) Information search method and apparatus
CN107341234B (en) Page display method and device and computer readable storage medium
CN103440281A (en) Method, device and equipment for acquiring download file
CN104182402A (en) Browser interface address bar input control method and browser interface address bar input control system
CN104079594A (en) Method and device used for implementing downloading of network resources in closed system
CN109086304B (en) Electronic bookmark updating method, device and storage medium
CN102831144B (en) Based on the bookmark interaction processing method of mobile terminal, 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
GR01 Patent grant
GR01 Patent grant