CN104079594B - The method and apparatus downloaded for realizing Internet resources in closed system - Google Patents

The method and apparatus downloaded for realizing Internet resources in closed system Download PDF

Info

Publication number
CN104079594B
CN104079594B CN201310099611.1A CN201310099611A CN104079594B CN 104079594 B CN104079594 B CN 104079594B CN 201310099611 A CN201310099611 A CN 201310099611A CN 104079594 B CN104079594 B CN 104079594B
Authority
CN
China
Prior art keywords
internet resources
downloaded
caching
application
connectivity application
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.)
Active
Application number
CN201310099611.1A
Other languages
Chinese (zh)
Other versions
CN104079594A (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 present invention provides the method and apparatus downloaded for realizing Internet resources in closed system.In the present invention, when the Internet resources in webpage are triggered download, in the connectivity application that the corresponding Internet resources are locally created;And the Internet resources are downloaded in the caching for distributing to the connectivity application.Compared with prior art, the present invention realizes the download of the Internet resources in closed system, to realize the off-line browsing of Internet resources.

Description

The method and apparatus downloaded for realizing Internet resources in closed system
Technical field
The present invention relates to field of computer technology, realize what Internet resources were downloaded more particularly, in closed system Method and apparatus.
Background technology
In open system, in form (windows) serial system, there is the side for downloading the Internet resources in webpage Method, for example, user only needs the download link in webpage clicking, or selection to preserve the networks such as the document presented in the form of web pages money Source, you can realize that Internet resources are downloaded.
However, in closed system, in apple Mobile operating system (IOS) system of apple on mobile terminals, All resources are only capable of the particular clients limited by system, such as the application shop (App Store) in IOS systems, into Row is downloaded, and user can not directly acquire the Internet resources in webpage.
Invention content
The method and apparatus that the object of the present invention is to provide a kind of to download for realizing Internet resources in closed system.
According to an aspect of the present invention, a kind of side downloaded for realizing Internet resources in closed system is provided Method, wherein this approach includes the following steps:
A is scooped out when the Internet resources in webpage are triggered download in the chain that the corresponding Internet resources are locally created With;
The Internet resources are downloaded in the caching for distributing to the connectivity application by b.
According to another aspect of the present invention, it additionally provides a kind of for realizing that Internet resources are downloaded in closed system Device, wherein the device includes:
Device is established, for when the Internet resources in webpage are triggered download, the corresponding network to be locally created The connectivity application of resource;
First download apparatus, for the Internet resources to be downloaded in the caching for distributing to the connectivity application.
Compared with prior art, the present invention has the following advantages:1) by establishing the connectivity application of corresponding network resource, and By the way that Internet resources are downloaded in the caching for distributing to the connectivity application, realize under the Internet resources in closed system It carries, to realize the off-line browsing of Internet resources;2) personalized labels of Internet resources can be generated based on unified image, Avoid the problem of image obtained based on the link labels in head elements can not be changed;3) the disconnected of Internet resources can be realized Point resumes;4) offline problem, the present embodiment can carry when may not download in Internet resources for user or not download all For corresponding solution, so that Internet resources can be downloaded completely;It 5) may be clear for distributing to the caching of application Empty problem, the present embodiment can obtain the resource downloading of the Internet resources of network equipment offer by connectivity application itself Location information, to realize Internet resources, and the resource address download information still is able to preserve in the buffer, so that subsequent download makes With;6) since in Internet resources such link may can be prevented comprising the link for linking to other Internet resources, the present embodiment, To avoid the problem that such link is clicked by user and is caused to exit connectivity application and is jumped to the other applications such as browser.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the method stream downloaded for realizing Internet resources in closed system of a preferred embodiment of the invention Cheng Tu;
Fig. 2 is the method for another preferred embodiment of the invention downloaded for realizing Internet resources in closed system Flow chart;
Fig. 3 is the device knot downloaded for realizing Internet resources in closed system of a preferred embodiment of the invention Structure schematic diagram;
Fig. 4 is the device of another preferred embodiment of the invention downloaded for realizing Internet resources in closed system Structural schematic diagram.
Same or analogous reference numeral represents same or analogous component in attached drawing.
Specific implementation mode
Present invention is further described in detail below in conjunction with the accompanying drawings.
Fig. 1 is the method stream downloaded for realizing Internet resources in closed system of a preferred embodiment of the invention Cheng Tu.Method according to the present embodiment includes step S1 and step S2.Wherein, the method for the present embodiment is mainly by being contained in tool There is the device in the user equipment of closed system to realize;Preferably, the user equipment be mobile device, such as iPhone, IPad etc..Network residing for the user equipment includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, virtual private Network (VPN, Virtual Private Network) network etc..
It should be noted that the user equipment and network are only for example, other use that are existing or being likely to occur from now on Family equipment or network are such as applicable to the present invention, should also be included within the scope of the present invention, and are contained in by reference This.
Wherein, the device of the invention may include in webpage, and is loaded in user equipment with the webpage.For example, this The device of embodiment can behave as the codes such as Javascript in webpage, and it is medium with webpage to be loaded on user equipment.
Webpage in the present invention includes Internet resources.Preferably, the Internet resources in the present embodiment include but not limited to text Shelves, audio and video etc..It is highly preferred that the Internet resources in the present embodiment are document.It should be noted that " webpage is provided comprising network Source " indicates that the webpage itself can directly include the Internet resources, alternatively, the webpage is with may include the resource downloading of the Internet resources Location information, also, when user equipment needs that the webpage is presented, network money can be downloaded by the resource downloading address information Source, and be presented in webpage.
Specifically, in the present embodiment, user equipment is loaded with the webpage comprising Internet resources.It should be noted that webpage Present when can only present it includes Internet resources, for example, webpage included Internet resources be Word or PDF document, then The Word or PDF document can directly be presented.
As an example, following embodiments are mainly said with webpage based on hypertext markup language (HTML) It is bright, as involved title (title) label/element in following citings, head (head) label/element, painting canvas (canvas), (link) label/element, hypertext reference (href) attribute etc. are linked, it can be by inquiring HTML specifications come its clear meaning; However, it is understood by those of ordinary skill in the art that webpage of the invention is not limited to html web page, and can correspondingly expand to other nets Page, such as expansible hypertext markup language (XHTML) webpage, extensible markup language (XML) webpage.
In step sl, when the Internet resources in webpage are triggered download, the corresponding Internet resources are being locally created Connectivity application.
Wherein, the Internet resources in webpage can be triggered download in several cases.For example, user equipment is iPad, envelope Closed system is IOS systems, and the Internet resources in webpage are document;User executes " addition to the webpage for being directly rendered as document To main screen " operation, then the document in webpage be triggered download.It should be noted that the citing is only that this is better described The technical solution rather than limitation of the present invention of invention, it should be appreciated by those skilled in the art that the Internet resources in any webpage Be triggered the realization method of download, for example, the mode etc. of webpage shortcut link or Internet resources shortcut link is established in other triggerings, It should be included in the scope of the present invention.
Wherein, the connectivity application includes the link information of the webpage of Internet resources, and can be used in linking to packet Webpage containing the Internet resources.For example, in upper example, " main screen is added to when user executes the webpage for being directly rendered as document After the operation of curtain ", the connectivity application established includes the link information of the webpage, and the connectivity application starts, such as user's point The connectivity application is hit, can be used for triggering the apple browser (Safari) in browser, such as IOS systems, access includes The webpage of the Internet resources.
Specifically, when the Internet resources in webpage are triggered download, in the link that the corresponding Internet resources are locally created The mode of application include but not limited to it is following any one:
1) connectivity application that icon is rendered as text message is established.
For example, Internet resources are document, by searching for the title labels of the parts head, determine that document title is " XXX ", Then device generates base64 data by canvas, which is rendered as text when being run to be presented to user “XXX”;Also, device generates link labels, and sets the href attributes of the label to generated base64 data, to Using the base64 data as the icon information of connectivity application, also, the rel attributes of link labels are set as closed by device System can be identified as the attribute of application, and " the apple- of desktop application can be identified as by being such as set as IOS systems Touch-icon " attributes etc..
2) icon information of connectivity application is obtained, and the connectivity application is being locally created, which is not activated When be rendered as the icon information.
Wherein, the mode for obtaining the icon information of connectivity application include but not limited to it is following any one:
A) according to the link labels in the parts head of webpage, the icon information of connectivity application is obtained.
B) according to the image link address information for including in the configuration file of webpage, original image information is downloaded;And according to The resource identification relevant information of Internet resources, handles the original image information, obtains the icon information of the connectivity application.Its In, the resource identification relevant information includes any information that can be used in identifying the Internet resources;For example, Internet resources name Title, type etc..Preferably, which may be included in webpage;For example, Internet resources title may be included in net Parts title in page etc., the parts the title can be determined by title labels.
For example, accessing the image link address information for the original image information for including in configuration file, and it is based on the image Link address information downloads original image information;Then, by canvas, Internet resources name is added on the original image information Claim, and draws the small icon for indicating network resource type, then, the application programming interface (API) for calling canvas to provide, By treated, image is converted to base64 codings, the icon information as connectivity application.
Since the image obtained based on the link labels in head elements can not be changed, according to based on head members Link labels in element obtain the mode of icon information, and need to establish individual icon for different Internet resources, then need To be that different Internet resources generate individual icon, and obtain the pre- Mr. by the link labels in head elements in advance At individual icon, this is undoubtedly relatively complicated;And in this realization method, for different Internet resources, also only need to obtain Identical original image information is simultaneously handled it, you can is generated the individual icon for heterogeneous networks resource, is kept away as a result, Exempt from not changing based on the image that the link labels in head elements obtain and need to pre-set for different Internet resources The problem of different individual icon.
Wherein, by setting the icon of connectivity application to the icon information of its acquisition, not to be activated being locally created When be rendered as the connectivity application of the icon information.It preferably, can be according to the operation for the addition application that user executes, such as institute The operation of " being added to main screen " for executing, will be locally created the connectivity application for being rendered as the icon information.
For example, closed system is IOS systems, device generates link labels, and its href attribute is set as being generated Icon information, and its rel attribute is set to " apple-touch-icon ", to execute " being added to main screen " in user Operation after, the connectivity application of obtained icon information is rendered as when generating not actuated on the table.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that any icon information for obtaining connectivity application, and be in being locally created the when of not being activated It is now the realization method of the connectivity application of the icon information, should be included in the scope of the present invention.
Then, in step s 2, Internet resources are downloaded in the caching for distributing to connectivity application.
It does not limit Internet resources are downloaded to the opportunity in the caching for distributing to connectivity application, illustrates in the present embodiment For, Internet resources can be downloaded to immediately in the caching for distributing to connectivity application, can also linked after connectivity application foundation When using being started for the first time, Internet resources are downloaded in the caching for distributing to connectivity application.
For example, after connectivity application is established, resource downloading address informations that include in configuration file, Internet resources are accessed, Internet resources are downloaded in Web page structural query language (WEB SQL) database for distributing to connectivity application.
Wherein, when Internet resources are document, " document id " and " document number of pages " can be used as joint major key, it will be literary Shelves are inserted into cache database.Also, it, can before this connectivity application startup in the case of the document of download part number of pages The document for continuing to download remaining number of pages after local links application starts, to realize breakpoint transmission.
Preferably, when the part that can be used in storing Internet resources in the caching for distribute to connectivity application has been expired, such as WEB When data in SQL database have expired, it can first empty part caching or delete the partial content in the caching of the part, then download Internet resources.
It should be noted that during the step of the present invention executes, local can be added by executing the device of the above method, As being added in the caching for distributing to connectivity application, so that device is also able to carry out operation after webpage closing.Also, this field skill Art personnel will be understood that the device being added in caching can occur to adapt to different storage locations and be to realize corresponding function It is corresponding to change.
Preferably, the configuration file of webpage can be also loaded onto in the caching for distributing to connectivity application, for subsequently using.
One of preferred embodiment as the present embodiment, the method for the present embodiment are further comprising the steps of:When connectivity application quilt When startup, the Internet resources are obtained from the caching for distribute to connectivity application, to be presented to the user.
For example, Internet resources are audio, the audio identification (ID) of the audio corresponding to connectivity application, from data cached The audio is obtained in library, is played with for closed system.
In another example when Internet resources are document, according to the document id of document corresponding with connectivity application and current needs The document number of pages of presentation, this page of document is read from cache database, is presented to the user.
Preferably, can first judge whether be currently off-line state, such as pass through browser (navigator) global variable Whether independent (standalone) determined property is currently off-line state, and in off-line state, net is just obtained from caching Network resource is simultaneously presented to the user.
Preferably, when Internet resources are document, user closes the number of pages accessed when connectivity application and is recordable in user In the data (cookie) of terminal, when user starts connectivity application next time, directly can be according to the record in cookie then Now this page of document.
One of preferred embodiment as the present embodiment, the method for the present embodiment are further comprising the steps of:When detecting network When resource is not downloaded or part is not downloaded, the Internet resources that do not download or part is not downloaded are downloaded to and distribute to connectivity application In caching.
Wherein, the whether all or part of mode that do not download of detection Internet resources includes but not limited to:
1) whether active detecting Internet resources are not downloaded or part is not downloaded.
For example, Internet resources are document, when connectivity application starts, all numbers of pages of active detecting document whether under It carries.
2) when partial network resource needs to present, just detect whether the partial network resource is not downloaded.
For example, Internet resources are document just detects whether this page of document has been downloaded when user browses certain page of document.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that the whether all or part of realization method that do not download of any detection Internet resources, it should all Within the scope of the present invention.
Wherein, the mode Internet resources that do not download or part is not downloaded being downloaded in the caching for distributing to connectivity application Including but not limited to:
1) link information for accessing the webpage that connectivity application includes, to obtain the resource downloading address information of Internet resources, And it is based on the resource downloading address information, it will not download or the Internet resources do not downloaded of part are downloaded to and distribute to the chain and scoop out In caching.
For example, accessing the link information for the webpage that connectivity application includes, service is provided for the corresponding webpage of the link information The network equipment can identify that the access comes from connectivity application, to provide the webpage that the connectivity application is directed toward to user equipment Configuration file, and be loaded into the caching for distributing to connectivity application, then the resource of Internet resources is obtained from configuration file Download address information to access the resource downloading address information, and the Internet resources that do not download or part is not downloaded is downloaded Into the caching for distributing to the connectivity application.
2) when detect Internet resources do not download or part do not download, and distribute in the caching of connectivity application do not include net When the resource downloading address information of network resource, the link information for the webpage that the connectivity application includes is accessed, to obtain State the resource downloading address information of Internet resources, and be based on the resource downloading address information, by it is described do not download or part not under The Internet resources of load are downloaded in the caching for distributing to the connectivity application;When detecting that the Internet resources do not download or part Do not download, and distribute in the caching of the connectivity application include the Internet resources resource downloading address information when, attaching Based on the resource downloading address information, do not downloaded described or resource downloading that part is not downloaded is to distributing to the connectivity application Caching in.
For example, when detecting that Internet resources are not downloaded or part is not downloaded, first access cache, and attempt from wherein obtaining The resource downloading address information of Internet resources such as attempts to search configuration file in the buffer to obtain the resource in the configuration file Download address information etc.;Also, when configuration file can be found and from when wherein obtaining resource downloading address information, direct base In the resource downloading address information, do not downloaded described or resource downloading that part is not downloaded is to distributing to the connectivity application In caching, when configuration file cannot be found and from when wherein obtaining resource downloading address information, accessing connectivity application includes The link information of webpage, the network equipment of service is provided for the corresponding webpage of the link information can identify the access from link Using to provide the configuration file for the webpage that the connectivity application is directed toward to user equipment, and being loaded into and distribute to link In the caching of application, then the resource downloading address information of Internet resources is obtained from configuration file, to access the resource downloading Address information, and the Internet resources that do not download or part is not downloaded are downloaded in the caching for distributing to the connectivity application.
It should be noted that when caching is emptied, the part being stored in device in caching can be also eliminated, but the portion Divide and can be provided by the network equipment, and rejoin in caching with resource downloading address information.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that any be downloaded to the Internet resources that do not download or part is not downloaded distributes to link Realization method in the caching of application, should be included in the scope of the present invention.
In the present embodiment, by establishing the connectivity application of corresponding network resource, and by the way that Internet resources are downloaded to distribution It is downloaded to the Internet resources in the caching of the connectivity application, realized in closed system, user can off-line browsing network as a result, Resource.
Also, offline problem, the present embodiment energy when may not download in Internet resources for user or not download all Corresponding solution is enough provided, so that Internet resources can be downloaded completely.
Also, the problem of caching for distributing to application may be emptied, the present embodiment can pass through connectivity application sheet Body obtains the resource downloading address information of the Internet resources of network equipment offer, to realize Internet resources, and the resource Location download information still is able to preserve in the buffer, so that subsequent download uses.
Fig. 2 is the method for another preferred embodiment of the invention downloaded for realizing Internet resources in closed system Flow chart.The method of the present embodiment includes step S1 and step S2 and the step S3 that is executed before step S2;Wherein, step S2 includes step S2 '.
Wherein, step S1 is described in detail with reference to the embodiment shown in FIG. 1, and details are not described herein.
In step s3, device judges whether the current setting of closed system allows to write in the caching for distributing to application Enter information.
For example, user can be arranged permission or not allow that information is written in the caching of application, device is closed by accessing The interface that system provides, to judge whether the current setting of closed system allows that letter is written in the caching for distributing to application Breath.
In step S2 ', when judging that the current setting of the closed system allows to write in the caching for distributing to application When entering information, Internet resources are downloaded in the caching for distributing to the connectivity application by device.
Wherein, Internet resources are downloaded to the mode in the caching for distributing to the connectivity application by device in this step, with Internet resources are downloaded in the caching for distributing to the connectivity application by device in the step S2 in illustrated embodiment referring to Fig.1 Mode is same or similar, and details are not described herein.
Preferably, it when judging current setting not and allowing information is written in the caching of application, is activated in connectivity application When, the Internet resources are downloaded in the memory for being allocated temporarily to the connectivity application by device, to be presented to the user.
For example, the link information that user equipment includes according to connectivity application, accesses and load webpage, device is loaded with webpage It is downloaded in the memory for being allocated temporarily to the connectivity application into user equipment, and by the Internet resources in webpage, to be in Now give user.
As the present embodiment and one of the preferred embodiment of previous embodiment, when Internet resources are presented, device prevents net It can result in the link for jumping to other application in network resource.
Due to that may include the link for linking to other Internet resources in Internet resources, for example, some webpage etc. is linked to, Then device prevents such link, is clicked by user to avoid such link and causes to exit connectivity application and jump to browser etc. Other application.
Fig. 3 is the device knot downloaded for realizing Internet resources in closed system of a preferred embodiment of the invention Structure schematic diagram.The device of the present embodiment includes establishing device 1 and the first download apparatus 2.
When the Internet resources in webpage are triggered download, device 1 is established in the chain that the corresponding Internet resources are locally created Scoop out use.
Wherein, the Internet resources in webpage can be triggered download in several cases.For example, user equipment is iPad, envelope Closed system is IOS systems, and the Internet resources in webpage are document;User executes " addition to the webpage for being directly rendered as document To main screen " operation, then the document in webpage be triggered download.It should be noted that the citing is only that this is better described The technical solution rather than limitation of the present invention of invention, it should be appreciated by those skilled in the art that the Internet resources in any webpage Be triggered the realization method of download, for example, the mode etc. of webpage shortcut link or Internet resources shortcut link is established in other triggerings, It should be included in the scope of the present invention.
Wherein, the connectivity application includes the link information of the webpage of Internet resources, and can be used in linking to packet Webpage containing the Internet resources.For example, in upper example, " main screen is added to when user executes the webpage for being directly rendered as document After the operation of curtain ", after the connectivity application established includes the link information of the webpage, and the connectivity application starts, such as user The connectivity application is clicked, can be used for triggering the Safari in browser, such as IOS systems, it includes the Internet resources to access Webpage.
Specifically, it when the Internet resources in webpage are triggered download, establishes device 1 and corresponding network money is being locally created The mode of the connectivity application in source include but not limited to it is following any one:
1) it establishes device 1 and directly establishes the connectivity application that icon is rendered as text message.
For example, Internet resources are document, device 1 is established by searching for the title labels of the parts head, determines document title For " XXX ", then device 1 is established by canvas, generates the data of base64 formats, the data of the base64 formats are being run When being presented to user, it is rendered as text " XXX ";Also, it establishes device 1 and generates link labels, and the href of the label is belonged to Property be set as generated base64 data, to using the base64 data be used as the icon information of connectivity application, also, foundation Device 1, which sets the rel attributes of link labels to closed system, can be identified as the attribute of application, such as be set as IOS System can be identified as " apple-touch-icon " attribute of desktop application etc..
2) it includes that icon acquisition device (not shown) and son establish device (not shown) to establish device 1.Icon obtains dress The icon information for obtaining connectivity application is set, son establishes device and the connectivity application is being locally created, which is not activated When be rendered as the icon information.
Wherein, the mode that icon acquisition device obtains the icon information of connectivity application includes but not limited to following any one Kind:
A) icon acquisition device obtains the icon information of connectivity application according to the link labels in the parts head of webpage.
B) icon acquisition device includes the second download apparatus (not shown) and processing unit (not shown).It is carried under second The image link address information for including in the configuration file according to webpage is set, original image information is downloaded;Processing unit is according to net The resource identification relevant information of network resource, handles the original image information, obtains the icon information of the connectivity application.Its In, the resource identification relevant information includes any information that can be used in identifying the Internet resources;For example, Internet resources name Title, type etc..Preferably, which may be included in webpage;For example, Internet resources title may be included in net Parts title in page etc., the parts the title can be determined by title labels.
For example, the second download apparatus accesses the image link address information for the original image information for including in configuration file, And original image information is downloaded based on the image link address information;Then, processing unit is by canvas, in the original image Internet resources title is added in information, and draws the small icon for indicating network resource type, and then, processing unit calls canvas The API of offer, by treated, image is converted to base64 codings, the icon information as connectivity application.
Since the image obtained based on the link labels in head elements can not be changed, according to based on head members Link labels in element obtain the mode of icon information, and need to establish individual icon for different Internet resources, then must Must be each Internet resources generation individual icon in advance, and by obtaining this in advance based on the link labels in head elements The individual icon of generation, this is undoubtedly relatively complicated;And in this realization method, for different Internet resources, also only need to obtain It obtains identical original image information and it is handled, you can generate the individual icon for heterogeneous networks resource, as a result, Avoiding the image obtained based on the link labels in head elements can not change and need to set in advance for different Internet resources The problem of setting different individual icons.
Wherein, son establish device by by the icon of connectivity application be set as icon acquisition device acquisition icon information, Come in the connectivity application for the when of not being activated is locally created being rendered as the icon information.Preferably, son establish device can root According to the operation for the addition application that user executes, such as operation of performed " being added to main screen " will be rendered as being locally created The connectivity application of the icon information ".
For example, closed system is IOS systems, son establishes device and generates link labels, and sets its href attribute to The icon information that icon acquisition device generates, and set its rel attribute to " apple-touch-icon ", to be held in user After the operation of row " being added to main screen ", the chain for being rendered as obtained icon information when generating not actuated on the table scoops out With.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that any icon information for obtaining connectivity application, and be in being locally created the when of not being activated It is now the realization method of the connectivity application of the icon information, should be included in the scope of the present invention.
Then, Internet resources are downloaded in the caching for distributing to connectivity application by the first download apparatus 2.
It does not limit Internet resources are downloaded to the opportunity in the caching for distributing to connectivity application, illustrates in the present embodiment For, Internet resources can be downloaded to the caching for distributing to connectivity application by the first download apparatus 2 immediately after connectivity application foundation In, Internet resources can be also downloaded in the caching for distributing to connectivity application when connectivity application is started for the first time.
For example, after connectivity application is established, the first download apparatus 2 accesses resources that include in configuration file, Internet resources Internet resources are downloaded in the WEB SQL databases for distributing to connectivity application by download address information.
Wherein, when Internet resources are document, the first download apparatus 2 can be by " document id " and " document number of pages " as connection Major key is closed, document is inserted into cache database.Also, the text of download part number of pages before this connectivity application startup In the case of shelves, the first download apparatus 2 can continue to download the document of remaining number of pages after local links application starts, to realize Breakpoint transmission.
Preferably, when the part that can be used in storing Internet resources in the caching for distribute to connectivity application has been expired, such as WEB When data in SQL database have expired, the first download apparatus 2 can first empty part caching or delete the portion in the caching of the part Divide content, then down loading network resource.
It should be noted that during the solution of the present invention executes, local can be added in the device of the invention, be such as added and divide In the caching of dispensing connectivity application, so that device is also able to carry out operation after webpage closing.Also, those skilled in the art answer It can understand, to adapt to different storage locations and being to realize corresponding function, the device being added in caching can occur accordingly to change.
Preferably, the configuration file of webpage can be also loaded onto in the caching for distributing to connectivity application, for subsequently using.
The device of one of preferred embodiment as the present embodiment, the present embodiment further includes the first presentation device (not shown). When connectivity application is activated, the first presentation device obtains the Internet resources from the caching for distribute to connectivity application, to It is presented to the user.
For example, Internet resources are audio, first is presented the audio ID of audio of the device corresponding to connectivity application, postpones The audio is obtained in deposit data library, is played with for closed system.
In another example when Internet resources are document, first is presented document id of the device according to document corresponding with connectivity application And the document number of pages presented is currently needed, this page of document is read from cache database, is presented to the user.
Preferably, the first presentation device can first judge whether be currently off-line state, such as be become by the navigator overall situations Whether the standalone determined properties of amount are currently off-line state, and in off-line state, network is just obtained from caching Resource is simultaneously presented to the user.
Preferably, when Internet resources are document, user closes the number of pages accessed when connectivity application and is recordable in In cookie, then when user starts connectivity application next time, the first presentation device directly can be according to the record in cookie Now this page of document.
The device of one of preferred embodiment as the present embodiment, the present embodiment further includes third download apparatus.When detecting When Internet resources are not downloaded or part is not downloaded, the Internet resources that do not download or part is not downloaded are downloaded to by third download apparatus In the caching for distributing to connectivity application.
Wherein, the whether all or part of mode that do not download of third download apparatus detection Internet resources includes but not limited to:
1) whether third download apparatus active detecting Internet resources are not downloaded or part is not downloaded.
For example, Internet resources are document, and when connectivity application starts, all numbers of pages of third download apparatus active detecting document Whether download.
2) when partial network resource need present when, third download apparatus just detect the partial network resource whether not under It carries.
For example, Internet resources are document, when user browses certain page of document, third download apparatus just detects this page of document Whether download.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that the whether all or part of realization method that do not download of any detection Internet resources, it should all Within the scope of the present invention.
Wherein, the Internet resources that do not download or part is not downloaded are downloaded to and distribute to connectivity application by third download apparatus Mode in caching includes but not limited to:
1) third download apparatus accesses the link information of the connectivity application webpage that includes, under the resource to obtain Internet resources Set address information, and it is based on the resource downloading address information, the Internet resources that do not download or part is not downloaded are downloaded to distribution To in the caching of the connectivity application.
For example, third download apparatus accesses the link information for the webpage that connectivity application includes, it is corresponding for the link information The network equipment that webpage provides service can identify that the access comes from connectivity application, to provide the connectivity application to user equipment The configuration file of the webpage of direction, and configuration file is loaded onto in the caching for distributing to connectivity application, then third download apparatus The resource downloading address information that Internet resources are obtained from configuration file, to access the resource downloading address information, and will not The Internet resources downloaded or partly do not downloaded are downloaded in the caching for distributing to the connectivity application.
2) third download apparatus includes the 4th download apparatus (not shown) and the 5th download apparatus (not shown).When detecting Internet resources are not downloaded or part is not downloaded, and with distributing to the resource downloading for not including Internet resources in the caching of connectivity application When the information of location, the 4th download apparatus accesses the link information for the webpage that the connectivity application includes, to obtain the network The resource downloading address information of resource, and it is based on the resource downloading address information, by the net that do not download or part is not downloaded In network resource downloading to the caching for distributing to the connectivity application;When detect the Internet resources do not download or part not under Carry, and distribute in the caching of the connectivity application include the Internet resources resource downloading address information when, the 5th download Device is directly based upon the resource downloading address information, and the resource downloading do not downloaded or partly do not downloaded is described to distributing to In the caching of connectivity application.
For example, when detecting that Internet resources are not downloaded or part is not downloaded, third download apparatus elder generation access cache, and taste It tries, from the resource downloading address information for wherein obtaining Internet resources, such as to attempt to search configuration file in the buffer to obtain the configuration Resource downloading address information in file etc.;Also, when configuration file can be found and from wherein obtaining resource downloading address When information, the 5th download apparatus is directly based upon the resource downloading address information, by the resource that do not download or part is not downloaded It is downloaded in the caching for distributing to the connectivity application, when configuration file cannot be found and from wherein obtaining resource downloading address When information, the 4th download apparatus accesses the link information for the webpage that connectivity application includes, and is carried for the corresponding webpage of the link information It can identify that the access comes from connectivity application for the network equipment of service, to provide what the connectivity application was directed toward to user equipment The configuration file of webpage, and be loaded into the caching for distributing to connectivity application, then the 4th download apparatus is from configuration file Obtain Internet resources resource downloading address information, to access the resource downloading address information, and will not download or part not The Internet resources of download are downloaded in the caching for distributing to the connectivity application.
It should be noted that when caching is emptied, the part being stored in device in caching can be also eliminated, but the portion Divide and can be provided by the network equipment, and rejoin in caching with resource downloading address information.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to the limit of the present invention System, it should be appreciated by those skilled in the art that any be downloaded to the Internet resources that do not download or part is not downloaded distributes to link Realization method in the caching of application, should be included in the scope of the present invention.
In the present embodiment, by establishing the connectivity application of corresponding network resource, and by the way that Internet resources are downloaded to distribution It is downloaded to the Internet resources in the caching of the connectivity application, realized in closed system, user can off-line browsing network as a result, Resource.
Also, offline problem, the present embodiment energy when may not download in Internet resources for user or not download all Corresponding solution is enough provided, so that Internet resources can be downloaded completely.
Also, the problem of caching for distributing to application may be emptied, the present embodiment can pass through connectivity application sheet Body obtains the resource downloading address information of the Internet resources of network equipment offer, to realize Internet resources, and the resource Location download information still is able to preserve in the buffer, so that subsequent download uses.
Fig. 4 is the device of another preferred embodiment of the invention downloaded for realizing Internet resources in closed system Structural schematic diagram.The device of the present embodiment includes establishing device 1, the first download apparatus 2 and judgment means 3;Wherein, under first It includes sub- download apparatus 21 to carry and set 2.
Wherein, it establishes device 1 to be described in detail with reference to the embodiment shown in FIG. 3, details are not described herein.
Judgment means 3 judge whether the current setting of closed system allows that letter is written in the caching for distributing to application Breath.
For example, user can be arranged permission or not allow that information is written in the caching of application, judgment means 3 are sealed by accessing The interface that closed system provides, to judge whether the current setting of closed system allows to be written in the caching for distributing to application Information.
When judgment means 3 judge that the current setting of the closed system allows that letter is written in the caching for distributing to application When breath, Internet resources are downloaded in the caching for distributing to the connectivity application by sub- download apparatus 21.
Wherein, Internet resources are downloaded to the mode in the caching for distributing to the connectivity application by sub- download apparatus 21, with Internet resources are downloaded in the caching for distributing to the connectivity application with reference to the first download apparatus 2 in embodiment illustrated in fig. 3 Mode it is same or similar, details are not described herein.
Preferably, the device of the present embodiment further includes the second presentation device (not shown).When judgment means 3 judge currently to set Set do not allow in the caching of application be written information when, when connectivity application is activated, second presentation device the network is provided Source is downloaded in the memory for being allocated temporarily to the connectivity application, to be presented to the user.
For example, the link information that user equipment includes according to connectivity application, access and load webpage, the device of the invention with Webpage is loaded onto in user equipment, and the Internet resources in webpage are downloaded to and are allocated temporarily to the link by the second presentation device In the memory of application, to be presented to the user.
As the present embodiment and one of the preferred embodiment of previous embodiment, the device of the present embodiment further includes preventing device (not shown).When Internet resources are presented, device is prevented to prevent to can result in the link for jumping to other application in Internet resources.
Due to that may include the link for linking to other Internet resources in Internet resources, for example, some webpage etc. is linked to, Then by preventing such link, such link can be avoided to be caused to exit connectivity application by user's click and jumping to browser Etc. other applications.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation includes within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second equal words are used for table Show title, and does not represent any particular order.

Claims (14)

1. a kind of method downloaded for realizing Internet resources in closed system, wherein this approach includes the following steps:
A is when the Internet resources in webpage are triggered download, in the connectivity application that the corresponding Internet resources are locally created;
The Internet resources are downloaded in the caching for distributing to the connectivity application by b;
Wherein, this method further includes:
When detecting that the Internet resources are not downloaded or part is not downloaded, and distributes to and do not wrapped in the caching of the connectivity application When resource downloading address information containing the Internet resources, the link information for the webpage that the connectivity application includes is accessed, To obtain the download link address information of the Internet resources, and be based on the resource downloading address information, do not download described or The Internet resources that part is not downloaded are downloaded in the caching for distributing to the connectivity application;
When detecting that the Internet resources are not downloaded or part is not downloaded, and distributes in the caching of the connectivity application and include When the resource downloading address information of the Internet resources, it is directly based upon the resource downloading address information, is not downloaded described or portion Divide in the resource downloading to the caching for distributing to the connectivity application that do not download.
2. according to the method described in claim 1, wherein, the step a includes the following steps:
A1 obtains the icon information of the connectivity application when the Internet resources in the webpage are triggered download;
A2 is rendered as the connectivity application of the icon information the when of not being activated is locally created.
3. according to the method described in claim 2, wherein, the step a1 includes the following steps:
When the Internet resources in the webpage are triggered download, according to the figure for including in the configuration file of the webpage As link address information, original image information is downloaded;
According to the resource identification relevant information of the Internet resources, the original image information is handled, obtains the connectivity application Icon information.
4. according to the method in any one of claims 1 to 3, wherein this method is further comprising the steps of:
When the connectivity application is activated, the Internet resources are obtained from the caching for distributing to the connectivity application, to It is presented to the user.
5. according to the method in any one of claims 1 to 3, wherein this method further includes following before the step b Step:
Judge whether the current setting of the closed system allows that information is written in the caching for distributing to application;
Wherein, the step b includes the following steps:
When judging that the current setting of the closed system allows that information is written in the caching for distributing to application, by the net In network resource downloading to the caching for distributing to the connectivity application.
6. according to the method described in claim 5, wherein, this method is further comprising the steps of:
When judging the current setting not and allowing information is written in the caching of application, when the connectivity application is activated, The Internet resources are downloaded in the memory for being allocated temporarily to the connectivity application, to be presented to the user.
7. according to the method described in claim 4, wherein, this method is further comprising the steps of:
When the Internet resources are presented, prevent to can result in the link for jumping to other application in the Internet resources.
8. a kind of device downloaded for realizing Internet resources in closed system, wherein the device includes:
Device is established, for when the Internet resources in webpage are triggered download, the corresponding Internet resources to be locally created Connectivity application;
First download apparatus, for the Internet resources to be downloaded in the caching for distributing to the connectivity application;
Wherein, which further includes:
4th download apparatus detects that the Internet resources are not downloaded or part is not downloaded for working as, and distributes to the link When not including the resource downloading address information of the Internet resources in the caching of application, access that the connectivity application includes is described The link information of webpage to obtain the resource downloading address information of the Internet resources, and is based on the resource downloading address information, The Internet resources do not downloaded or partly do not downloaded are downloaded in the caching for distributing to the connectivity application;
5th download apparatus detects that the Internet resources are not downloaded or part is not downloaded for working as, and distributes to the link When in the caching of application including the resource downloading address information of the Internet resources, it is directly based upon the resource downloading address information, It will be in the resource downloading to the caching for distributing to the connectivity application that do not downloaded or partly do not download.
9. device according to claim 8, wherein the device of establishing includes:
Icon acquisition device, for when the Internet resources in the webpage are triggered download, obtaining the connectivity application Icon information;
Son establishes device, in the connectivity application for the when of not being activated is locally created being rendered as the icon information.
10. device according to claim 9, wherein the icon acquisition device includes:
Second download apparatus, for when the Internet resources in the webpage be triggered download when, according to matching for the webpage The image link address information for including in file is set, original image information is downloaded;
Processing unit handles the original image information for the resource identification relevant information according to the Internet resources, obtains The icon information of the connectivity application.
11. the device according to any one of claim 8 to 10, wherein the device further includes:
First is presented device, for when the connectivity application is activated, being obtained from the caching for distributing to the connectivity application The Internet resources, to be presented to the user.
12. the device according to any one of claim 8 to 10, wherein the device further includes being carried under described first The following device of operation is executed before setting:
Judgment means, for judging whether the current setting of the closed system allows to be written in the caching for distributing to application Information;
Wherein, first download apparatus includes:
Sub- download apparatus judges that the current setting of the closed system allows to be written in the caching for distributing to application for working as When information, the Internet resources are downloaded in the caching for distributing to the connectivity application.
13. device according to claim 12, wherein the device further includes:
Second is presented device, for when judging the current setting not and allowing the write-in information in the caching of application, described When connectivity application is activated, by the resource downloading to being allocated temporarily in the memory of the connectivity application, to be presented to use Family.
14. according to the devices described in claim 11, wherein the device further includes:
Device is prevented, for when the Internet resources are presented, prevent to can result in the Internet resources and jumps to other and answer Link.
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 CN104079594A (en) 2014-10-01
CN104079594B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN104079594A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN103034517B (en) Browser controls tool loads method and apparatus
CN105022750B (en) Resource file loading method and device
US9418243B2 (en) Invoking a private browsing mode by selection of a visual control element within a browser tab
CN104077387B (en) A kind of web page contents display methods and browser device
CN103853417B (en) The rolling Pagination Display method and apparatus of network dynamic picture
CN108052334A (en) Method for page jump, device, computer equipment and storage medium
US8935798B1 (en) Automatically enabling private browsing of a web page, and applications thereof
CN107229665A (en) A kind of method for page jump and device
US20160364373A1 (en) Method and apparatus for extracting webpage information
CN104035753A (en) Double-WebView customized page display method and system
US20170337168A1 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN104426985B (en) Show the method, apparatus and system of webpage
CN107070870A (en) A kind of data capture method and device
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN104021016B (en) Method and browser for loading browser plug-in icons
CN105701164A (en) Statistical method and device for web hits
CN109471627A (en) Page presentation control method, system and device
CN102959546A (en) Method and apparatus for converting content
CN107391534A (en) The page is shown, pagefile return method and device, computer-readable storage medium
CN106649299A (en) Method and device for lazy loading of webpage block
CN104731897A (en) Method and device for achieving information displaying
CN104079594B (en) The method and apparatus downloaded for realizing Internet resources in closed system
CN110347955A (en) A kind of resource detection method and device
CN109325192A (en) A kind of method and apparatus of the anti-shielding of advertisement
CN109284428A (en) Data processing method, device and storage medium

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