Movatterモバイル変換


[0]ホーム

URL:


CN107870947A - Method and apparatus for updating web page contents - Google Patents

Method and apparatus for updating web page contents
Download PDF

Info

Publication number
CN107870947A
CN107870947ACN201610859697.7ACN201610859697ACN107870947ACN 107870947 ACN107870947 ACN 107870947ACN 201610859697 ACN201610859697 ACN 201610859697ACN 107870947 ACN107870947 ACN 107870947A
Authority
CN
China
Prior art keywords
file
updated
web page
page contents
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610859697.7A
Other languages
Chinese (zh)
Inventor
李强
廖耀华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201610859697.7ApriorityCriticalpatent/CN107870947A/en
Publication of CN107870947ApublicationCriticalpatent/CN107870947A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

This application discloses the method and apparatus for updating web page contents.One embodiment of methods described includes:Whether monitor has the web page contents fresh information sent from service end;In response to listening to the web page contents fresh information sent from the service end, receive the web page contents fresh information, wherein, the web page contents fresh information includes newest web page contents, filename and store path corresponding at least one file to be updated, and at least one file to be updated is that what is be locally stored include the file of history web pages content;According to filename and store path corresponding at least one file to be updated, at least one file to be updated is searched under local path, the history web pages content at least one file to be updated is replaced with the newest web page contents.The embodiment realizes the promptness of web page contents renewal, improves web page contents renewal efficiency.

Description

Method and apparatus for updating web page contents
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly, to more new web pageThe method and apparatus of content.
Background technology
With becoming increasingly popular for informationization, webpage is browsed daily and has become our the daily most common channels of acquisition informationOne of.Here, webpage is one and includes HTML (HyperText Markup Language, HTML) labelText-only file.Meanwhile whole page of throwing the net can be substantially divided into three regions by content, be respectively header contents region, centre inHold region and afterbody content area.
In large-scale Internet firm, in addition to home site, many substation points be present toward contact.For the company of embodyingSpecialty and uniformity, it often may require that substation point webpage and home site webpage show identical web page contents in subregion, thisA little identical web page contents can be webpage header contents (such as some link, navigation bars etc.), webpage afterbody content (such as public affairsTake charge of address, contact method etc.).
For the update method of above-mentioned identical web page contents, existing way be typically each station maintenance it is respective onIdentical web page contents are stated, whether the above-mentioned identical web page contents for artificially inspecting periodically home site webpage change;When depositingIn change, further according to the above-mentioned identical web page contents of home site webpage, change in the above-mentioned identical webpage of local maintenanceHold.
Existing way is although feasible, but can not meet the promptness of web page contents renewal, and low in the presence of renewal efficiencyThe problem of.
The content of the invention
The purpose of the application is to propose a kind of improved method and apparatus for being used to update web page contents, more than solvingThe technical problem that background section is mentioned.
In a first aspect, this application provides a kind of method for being used to update web page contents, methods described includes:Whether monitoringThere is the web page contents fresh information sent from service end;Updated in response to listening to the web page contents sent from the service endInformation, the web page contents fresh information is received, wherein, the web page contents fresh information includes newest web page contents, at leastFilename and store path corresponding to one file to be updated, wherein, at least one file to be updated is locally storedInclude the file of history web pages content;According to filename and store path corresponding at least one file to be updated, at thisAt least one file to be updated is searched under ground path, at least one text to be updated is replaced with the newest web page contentsHistory web pages content in part.
In certain embodiments, the newest web page contents include newest webpage header contents and/or newest webpage afterbodyContent;At least one file to be updated includes the first file to be updated and/or the second file to be updated, wherein, describedOne file to be updated is the file for being stored with history web pages header contents, and second file to be updated is to be stored with history web pagesThe file of afterbody content.
In certain embodiments, whether monitored in first client has the web page contents sent from service end to update letterBefore breath, methods described also includes:The relevant information of at least one file to be updated is registered in the service end, wherein,The relevant information includes file corresponding to local Internet protocol address and port numbers, at least one file to be updatedName and store path.
Second aspect, this application provides a kind of method for being used to update web page contents, methods described includes:Service terminationThe relevant information at least one file to be updated that the first client is sent is received, wherein, the relevant information includes described firstFilename and store path corresponding to the Internet protocol address and port numbers of client, at least one file to be updated,At least one file to be updated is the file for including history web pages content that first client is locally stored;In response toThe Notification of Changes that the second client is sent is received, according to the Internet protocol address and port numbers of first client, toFirst client sends web page contents fresh information, so that first client is according to the web page contents fresh informationTo update the history web pages content in the local at least one file to be updated of first client, wherein, the change is logicalKnow including newest web page contents, the newest web page contents are for replacing the history net at least one file to be updatedThe web page contents of page content, the web page contents fresh information include newest web page contents, described at least one to be updatedFilename corresponding to file and store path.
In certain embodiments, the related letter at least one file to be updated that the first client is sent is received in service endAfter breath, methods described also includes:By the Internet protocol address of first client and port numbers, described at least one treatFilename corresponding to more new file and store path preserve to the database that network connection is carried out with the service end in association.
The third aspect, this application provides a kind of device for being used to update web page contents, described device includes:Monitor singleMember, it is configured to monitor whether have the web page contents fresh information sent from service end;Receiving unit, it is configured in response to prisonHearing has the web page contents fresh information sent from the service end, receives the web page contents fresh information, wherein, the netPage update information on content includes filename and store path corresponding to newest web page contents, at least one file to be updated, wherein,At least one file to be updated is that what is be locally stored include the file of history web pages content;Replacement unit, it is configured to rootAccording to filename and store path corresponding at least one file to be updated, described at least one treat is searched under local pathMore new file, the history web pages content at least one file to be updated is replaced with the newest web page contents.
In certain embodiments, the newest web page contents include newest webpage header contents and/or newest webpage afterbodyContent;At least one file to be updated includes the first file to be updated and/or the second file to be updated, wherein, describedOne file to be updated is the file for being stored with history web pages header contents, and second file to be updated is to be stored with history web pagesThe file of afterbody content.
In certain embodiments, described device also includes:Registering unit, be configured to the service end registration described in extremelyThe relevant information of a few file to be updated, wherein, Internet protocol address and port numbers of the relevant information including local,Filename and store path corresponding at least one file to be updated.
Fourth aspect, this application provides a kind of device for being used to update web page contents, described device includes:Receive singleMember, it is configured to receive the relevant information at least one file to be updated that the first client is sent, wherein, the relevant informationInternet protocol address and port numbers including first client, filename corresponding at least one file to be updatedAnd store path, at least one file to be updated be first client be locally stored comprising history web pages contentFile;Transmitting element, the Notification of Changes sent in response to receiving the second client is configured to, according to first clientInternet protocol address and port numbers, to first client send web page contents fresh information so that it is described first visitorFamily end is updated according to the web page contents fresh information in the local at least one file to be updated of first clientHistory web pages content, wherein, the Notification of Changes includes newest web page contents, and the newest web page contents are described for replacingThe web page contents of history web pages content at least one file to be updated, the web page contents fresh information include described newestFilename and store path corresponding to web page contents, at least one file to be updated.
In certain embodiments, described device also includes:Memory cell, it is configured to the interconnection of first clientFilename and store path corresponding to fidonetFido address and port numbers, at least one file to be updated preserve in association toThe database of network connection is carried out with service end.
What the application provided is used to update the method and apparatus of web page contents, by the net for listening to service end and sendingWeb page contents fresh information, at least one then included according to above-mentioned web page contents fresh information are received during page update information on contentFilename corresponding to individual file to be updated and store path search above-mentioned at least one treat more under the first client local pathNew file, the newest web page contents finally included with above-mentioned web page contents fresh information replace above-mentioned at least one text to be updatedHistory web pages content in part, so as to be effectively utilized the monitoring to above-mentioned web page contents fresh information, realize web page contentsThe promptness of renewal, improve web page contents renewal efficiency.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is otherFeature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart for being used to update one embodiment of the method for web page contents according to the application;
Fig. 3 is the flow chart for being used to update another embodiment of the method for web page contents according to the application;
Fig. 4 is the schematic diagram for being used to update an application scenarios of the method for web page contents according to the application;
Fig. 5 is the structural representation for being used to update one embodiment of the device of web page contents according to the application;
Fig. 6 is the structural representation for being used to update another embodiment of the device of web page contents according to the application;
Fig. 7 is adapted for the structural representation for realizing the terminal device of the embodiment of the present application or the computer system of serverFigure.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order toBe easy to describe, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phaseMutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the method for being used to update web page contents that can apply the application or the dress for updating web page contentsThe exemplary system architecture 100 for the embodiment put.
As shown in figure 1, system architecture 100 can include the first client 101, the second client 102, the kimonos of network 103Business device 104.Network 103 is to the offer communication link between the first client 101, the second client 102 and server 104Medium.Network 103 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can use the first client 101, the second client 102 to be interacted by network 103 with server 104, withReceive or send message etc..Various telecommunication customer end applications can be installed in first client 101 and the second client 102,Such as web browser applications, web page contents more new tool, JICQ, mailbox client, social platform software etc..
First client 101 and the second client 102 can have a display screen and a various electricity that supported web page browsesSub- equipment, including but not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desktop computer etc..
Server 104 can be to provide the server of various services, such as to the first client 101, the second client 102The backstage web page server supported is provided.Background server can receive Notification of Changes from the second client 102, then can rootAccording to the newest web page contents that Notification of Changes includes web page contents fresh information is sent to the first client 101.
It should be noted that the method for being used to update web page contents that the embodiment of the present application is provided both can be by the first visitorFamily end 101 performs, and can also be performed by server 104, and correspondingly, the device for updating web page contents can both be arranged atIn one client 101, it can also be arranged in server 104.
It should be understood that the number of the first client, the second client, network and server in Fig. 1 is only schematic's.According to needs are realized, can have any number of first client, the second client, network and server.
With continued reference to Fig. 2, the stream for being used to update one embodiment of the method for web page contents according to the application is shownJourney 200.The described method for being used to update web page contents, comprises the following steps:
Step 201, whether monitor has the web page contents fresh information sent from service end.
In the present embodiment, electronic equipment thereon is run (such as shown in Fig. 1 for updating the method for web page contentsFirst client 101) when starting each time, can by wired connection mode or radio connection AM automatic monitoring whetherThere is the web page contents fresh information sent from service end (such as server 104 shown in Fig. 1).It is pointed out that above-mentioned nothingLine connected mode can include but is not limited to 3G/4G connections, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections,UWB (ultra wideband) connections and other currently known or exploitation in the future radio connections.
In some optional implementations of the present embodiment, whether above-mentioned electronic equipment has from above-mentioned service end in monitoringBefore the web page contents fresh information sent, the relevant information of at least one file to be updated can be registered in above-mentioned service end.Here, the relevant information of at least one file to be updated includes but is not limited to the Internet protocol address (IP of above-mentioned electronic equipmentAddress, Internet Protocol Address) and port numbers, above-mentioned at least one file to be updated corresponding to filenameAnd store path.It should be noted that above-mentioned at least one file to be updated is above-mentioned electronic equipment be locally stored comprising going throughThe file of history web page contents.Here, above-mentioned at least one file to be updated can be treated including the first file to be updated and/or secondMore new file.Wherein, the first file to be updated can be the file for being stored with history web pages header contents, the second file to be updatedIt can be the file for being stored with history web pages afterbody content.
As an example, what the administrative staff of above-mentioned electronic equipment can be provided by above-mentioned electronic equipment in above-mentioned service endThe Internet protocol address and port numbers of above-mentioned electronic equipment, and at least one file to be updated are inputted on registration configuration interfaceCorresponding filename and store path, are then preserved to the content of input.Here, above-mentioned service end receives above-mentioned electronicsAfter the content that the administrative staff of equipment are preserved, the content can be preserved to the data that network connection is carried out with above-mentioned service endIn storehouse.Wherein, above-mentioned database can be to be deployed in the local database of above-mentioned service end, or be deployed in and above-mentioned clothesDatabase in the server that business end remotely connects.
Step 202, in response to listening to the web page contents fresh information sent from above-mentioned service end, web page contents are receivedFresh information.
In the present embodiment, in response to listening to the web page contents fresh information sent from above-mentioned service end, above-mentioned electricitySub- equipment can receive above-mentioned web page contents fresh information.Wherein, above-mentioned web page contents fresh information include newest web page contents,Filename and store path corresponding to above-mentioned at least one file to be updated.
In some optional implementations of the present embodiment, above-mentioned newest web page contents can include newest webpage headContent and/or newest webpage afterbody content.
Step 203, filename and store path according to corresponding at least one file to be updated, are searched under local pathAbove-mentioned at least one file to be updated, replaced with newest web page contents in the history web pages in above-mentioned at least one file to be updatedHold.
In the present embodiment, can after above-mentioned electronic equipment receives the web page contents fresh information that above-mentioned service end is sentTo read filename corresponding to the newest web page contents, at least one file to be updated that web page contents fresh information includes and depositPath, and filename and store path according to corresponding to above-mentioned at least one file to be updated are stored up, is searched under local pathAt least one file to be updated is stated, the history web pages in above-mentioned at least one file to be updated are replaced with above-mentioned newest web page contentsContent.
In some optional implementations of the present embodiment, if above-mentioned newest web page contents are in newest webpage headHold, above-mentioned at least one file to be updated is the first file to be updated, then above-mentioned electronic equipment can be according to the first text to be updatedFilename corresponding to part and store path, the first file to be updated is searched under local path, and with newest webpage header contentsReplace the history web pages header contents in the first file to be updated.
In some optional implementations of the present embodiment, if above-mentioned newest web page contents are in newest webpage afterbodyHold, above-mentioned at least one file to be updated is the second file to be updated, then above-mentioned electronic equipment can be according to the second text to be updatedFilename corresponding to part and store path, the second file to be updated is searched under local path, and with newest webpage afterbody contentReplace the history web pages afterbody content in the second file to be updated.
In some optional implementations of the present embodiment, if above-mentioned newest web page contents are in newest webpage headHold and newest webpage afterbody content, above-mentioned at least one file to be updated be the first file to be updated and the second file to be updated,Then above-mentioned electronic equipment can according to corresponding to the first file to be updated filename and store path, is searched under local pathOne file to be updated, and replace the history web pages header contents in the first file to be updated with newest webpage header contents;It is above-mentionedElectronic equipment can according to corresponding to the second file to be updated filename and store path, search and second treat more under local pathNew file, and replace the history web pages afterbody content in the second file to be updated with newest webpage afterbody content.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can locally be stored with packaged in advanceCode file, above-mentioned electronic equipment can receive web page contents that above-mentioned service end is sent more by running the code fileFresh information.
Whether the method that above-described embodiment of the application provides has the web page contents sent from service end to update by monitoringInformation, the promptness of web page contents renewal is realized, improve web page contents renewal efficiency.
, should it illustrates the flow 300 of another embodiment of the method for updating web page contents with continued reference to Fig. 3The flow 300 of method for updating web page contents comprises the following steps:
Step 301, the relevant information at least one file to be updated that the first client is sent is received.
In the present embodiment, the first client (such as first client 101 shown in Fig. 1) can be for more new web pageThe electronic equipment (such as server 104 shown in Fig. 1) of the method operation of content thereon registers at least one file to be updatedRelevant information.Above-mentioned electronic equipment can be terminated by wired connection mode or radio connection from above-mentioned first clientReceive the relevant information of above-mentioned at least one file to be updated.Wherein, above-mentioned relevant information includes but is not limited to above-mentioned first clientFilename and store path corresponding to the Internet protocol address and port numbers at end, above-mentioned at least one file to be updated.NeedIllustrate, above-mentioned at least one file to be updated is the text for including history web pages content that above-mentioned first client is locally storedPart.
Alternatively, above-mentioned at least one file to be updated can include the first file to be updated and/or the second text to be updatedPart.Wherein, the first file to be updated can be the file for being stored with history web pages header contents, and the second file to be updated can beIt is stored with the file of history web pages afterbody content.
In some optional implementations of the present embodiment, above-mentioned electronic equipment is receiving above-mentioned first client note, can be by the Internet protocol address of above-mentioned first client and end after the relevant information of at least one file to be updated of volumeFilename and store path corresponding to slogan, above-mentioned at least one file to be updated preserve in association to above-mentioned electronic equipmentCarry out the database of network connection.Wherein, above-mentioned database can be to be deployed in the local database of above-mentioned electronic equipment, also may be usedThink the database on the server for being deployed in and being remotely connected with above-mentioned electronic equipment.
Step 302, the Notification of Changes sent in response to receiving the second client, according to the interconnection of above-mentioned first clientFidonetFido address and port numbers, web page contents fresh information is sent to above-mentioned first client, so that above-mentioned first client rootThe history net in the local at least one file to be updated of above-mentioned first client is updated according to above-mentioned web page contents fresh informationPage content.
In the present embodiment, when there is newest web page contents, above-mentioned electronic equipment can by wired connection mode orRadio connection receives Notification of Changes from the second client (such as second client 102 shown in Fig. 1), wherein, above-mentioned changeMore notice includes newest web page contents, and newest web page contents can include newest webpage header contents and/or newest webpage afterbodyContent.Here, newest web page contents are the webpages for replacing the history web pages content in above-mentioned at least one file to be updatedContent.
In the present embodiment, above-mentioned electronic equipment is after the Notification of Changes that above-mentioned second client is sent is received, can be withThe Internet protocol address of above-mentioned first client is automatically read from above-mentioned database and port numbers, above-mentioned at least one is treatedFilename and store path corresponding to more new file, and can according to the Internet protocol of above-mentioned first client readLocation and port numbers, establish socket with above-mentioned first client and be connected, and web page contents renewal is sent to above-mentioned first clientInformation, so that above-mentioned first client updates above-mentioned first client local according to above-mentioned web page contents fresh information at leastHistory web pages content in one file to be updated.Wherein, above-mentioned web page contents fresh information includes but is not limited to above-mentioned newestFilename and store path corresponding to web page contents, above-mentioned at least one file to be updated.It should be noted that two on networkIndividual to apply the exchange that data are realized typically by a two-way communication connection, one end of this connection is properly termed as onesocket。
Alternatively, above-mentioned electronic equipment can be after the configured information that above-mentioned second client is sent be received, to above-mentionedFirst client sends web page contents fresh information.Wherein, above-mentioned configured information is for indicating to send out to above-mentioned first clientSend the configured information of web page contents fresh information.As an example, above-mentioned electronic equipment is used for what above-mentioned second client provided" transmission " button can be had by inputting on the interface of newest web page contents, when the administrative staff of above-mentioned second client pass through above-mentioned, can be by clicking on " transmission " after two clients input on the interface that above-mentioned electronic equipment provides and preserve newest web page contentsButton sends above-mentioned configured information to above-mentioned electronic equipment.
In some optional implementations of the present embodiment, above-mentioned second client can be used to safeguard web page contentsClient, for example safeguard webpage header contents and/or webpage afterbody content.As an example, work as webpage header contents and/or netWhen page footing portion content has altered, the administrative staff of above-mentioned second client can be set by above-mentioned second client in above-mentioned electronicsOn the standby interface provided, newest webpage header contents and/or newest webpage afterbody content are separately input into webpage header contentsRegion and/or webpage afterbody content area, and the content to being inputted preserves;Afterwards, above-mentioned electronic equipment receivesAfter stating the content that the second client is preserved, newest webpage header contents and/or webpage afterbody content can be preserved to above-mentionedDatabase.
At least one text to be updated that the method that above-described embodiment of the application provides is sent by receiving the first clientThe relevant information of part, and the Notification of Changes that the second client is sent is received, afterwards, according to the Internet protocol of the first clientAddress and port numbers send web page contents fresh information to the first client, believe so that the first client updates according to web page contentsCease to update the history web pages content in the local at least one file to be updated of the first client.Above-described embodiment of the applicationThe method of offer can be broken away from updates this mode to be updated to web page contents by artificial check, reduces project maintenanceCost;Web page contents renewal can be completed in time, avoids that expired web page contents are presented, and further increasing in webpageHold renewal efficiency.
With continued reference to Fig. 4, Fig. 4 is the application scenarios for being used to update the method for web page contents according to Fig. 2 and Fig. 3 embodimentsA schematic diagram.In Fig. 4 application scenarios, as shown in label 401, the administrative staff of the first client can first pass throughOne client registers the relevant information of the first file to be updated and the second file to be updated on the interface that service end provides, such asFilename and store path, second corresponding to the Internet protocol address and port numbers of first client, the first file to be updatedFilename and store path corresponding to file to be updated, wherein, the first file to be updated can be that the first client is locally storedThe file for including history web pages header contents, the second file to be updated can be the first client be locally stored includes historyThe file of webpage afterbody content;Afterwards, as shown in label 402, the first client can service end register monitoring event, firstClient can automatically monitor whether have the web page contents fresh information sent from service end in each start;Such as labelShown in 403, the second client can be for safeguarding the client of web page contents, for example safeguard webpage header contents and webpage tailPortion's content, when webpage header contents and webpage afterbody content have altered, it is logical that the second client can send change to service endKnow, wherein, newest webpage header contents and newest webpage afterbody content can be included in Notification of Changes;As shown in label 404, clothes, can be according to the mutual of the first client that the first client is registered after business termination receives the Notification of Changes of the second client transmissionNetworking protocol address and port numbers, web page contents fresh information is sent to the first client, wherein, web page contents fresh information canWith including filename and store path corresponding to newest webpage header contents, newest webpage afterbody content, the first file to be updatedWith the second file to be updated corresponding to filename and store path;As shown in label 405, listened in response to the first clientThe web page contents fresh information sent from service end, the first client can receive web page contents fresh information;If label 406Shown, the first client can read newest webpage header contents that received web page contents fresh information includes, newestFilename corresponding to filename and store path corresponding to webpage afterbody content, the first file to be updated and the second file to be updatedAnd store path, and filename and store path according to corresponding to the first file to be updated, under local path search first and treatMore new file, the history web pages header contents in the first file to be updated are replaced with newest webpage header contents, and according to theFilename and store path corresponding to two files to be updated, the second file to be updated is searched under local path, with newest webpageAfterbody content replaces the history web pages afterbody content in the second file to be updated.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, it is used to update net this application provides one kindOne embodiment of the device of page content, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically may be usedWith applied in various electronic equipments.
As shown in figure 5, the device 500 for being used to update web page contents described in the present embodiment includes:Monitoring unit 501, connectReceive unit 502 and replacement unit 503.Wherein, whether monitoring unit 501 is configured to monitor has from service end (such as shown in Fig. 1Server 104) the web page contents fresh information sent;Receiving unit 502 is configured in response to having listened to from above-mentioned clothesThe web page contents fresh information that business end is sent, receives above-mentioned web page contents fresh information, wherein, above-mentioned web page contents fresh informationIt is above-mentioned at least one to be updated including filename and store path corresponding to newest web page contents, at least one file to be updatedFile is that what is be locally stored include the file of history web pages content;Replacement unit 503 is configured at least one be treated according to above-mentionedFilename and store path corresponding to more new file, search above-mentioned at least one file to be updated under local path, and use is above-mentionedNewest web page contents replace the history web pages content in above-mentioned at least one file to be updated.
In the present embodiment, in the device 500 for updating web page contents:Monitoring unit 501, receiving unit 502 and replaceChange the specific processing of unit 503 and its beneficial effect brought can be corresponded to referring to Fig. 2 step 201 in embodiment, step 202 andThe associated description of the implementation of step 203, will not be repeated here.
In some optional implementations of the present embodiment, in the above-mentioned device 500 for updating web page contentsNewest webpage header contents and/or newest webpage afterbody content can be included by stating newest web page contents;It is above-mentioned at least one to treat moreNew file can include the first file to be updated and/or the second file to be updated, wherein, above-mentioned first file to be updated can beThe file of history web pages header contents is stored with, above-mentioned second file to be updated can be to be stored with history web pages afterbody contentFile.
In some optional implementations of the present embodiment, the above-mentioned device 500 for being used to update web page contents can be withIncluding:Registering unit (not shown), it is configured to register the phase of above-mentioned at least one file to be updated in above-mentioned service endInformation is closed, wherein, above-mentioned relevant information includes Internet protocol address and port numbers, above-mentioned at least one of above-mentioned first clientFilename and store path corresponding to individual file to be updated.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, it is used to update net this application provides one kindAnother embodiment of the device of page content, the device embodiment is corresponding with the embodiment of the method shown in Fig. 3, and the device is specificIt can apply in various electronic equipments.
As shown in fig. 6, the device 600 for being used to update web page contents described in the present embodiment includes:Receiving unit 601 and hairSend unit 602.Wherein, receiving unit 601 is configured to receive the first client (such as first client 101 shown in Fig. 1)The relevant information at least one file to be updated sent, wherein, above-mentioned relevant information can include above-mentioned first clientFilename and store path corresponding to Internet protocol address and port numbers, above-mentioned at least one file to be updated, it is above-mentioned at leastOne file to be updated can be the file for including history web pages content that above-mentioned first client is locally stored;And transmitting element602 are configured to the Notification of Changes sent in response to receiving the second client (such as second client 102 shown in Fig. 1),According to the Internet protocol address and port numbers of above-mentioned first client, web page contents renewal letter is sent to above-mentioned first clientBreath, so that above-mentioned first client updates local at least one of above-mentioned first client according to above-mentioned web page contents fresh informationHistory web pages content in individual file to be updated, wherein, above-mentioned Notification of Changes can include newest web page contents, above-mentioned newest netPage content can be web page contents for replacing the history web pages content in above-mentioned at least one file to be updated, above-mentioned webpageUpdate information on content can be including filename and storage corresponding to above-mentioned newest web page contents, above-mentioned at least one file to be updatedPath.
In the present embodiment, in the device 600 for updating web page contents:Receiving unit 601 and transmitting element 602The specific beneficial effect for handling and its bringing can correspond to the implementation of the step 301 and step 302 in embodiment referring to Fig. 3Associated description, it will not be repeated here.
In some optional implementations of the present embodiment, the above-mentioned device 600 for being used to update web page contents can be withIncluding:Memory cell (not shown), be configured to by the Internet protocol address of above-mentioned first client and port numbers, onState filename and store path corresponding at least one file to be updated preserve in association to service end carry out network connectionDatabase.
Below with reference to Fig. 7, it illustrates suitable for for realizing the calculating of the terminal device of the embodiment of the present application or serverThe structural representation of machine system 700.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, it can be read-only according to being stored inProgram in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage part 708 andPerform various appropriate actions and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to alwaysLine 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;Penetrated including such as negative electrodeThe output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 708 including hard disk etc.;And the communications portion 709 of the NIC including LAN card, modem etc..Communications portion 709 via such as becauseThe network of spy's net performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such asDisk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 710, in order to read from itComputer program be mounted into as needed storage part 708.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart descriptionSoftware program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being tangibly embodied in machine readableComputer program on medium, the computer program include the program code for being used for the method shown in execution flow chart.At thisIn the embodiment of sample, the computer program can be downloaded and installed by communications portion 709 from network, and/or from removableMedium 711 is unloaded to be mounted.When the computer program is performed by CPU (CPU) 701, perform in the present processesThe above-mentioned function of limiting.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journeyArchitectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generationThe part of one module of table, program segment or code, a part for the module, program segment or code include one or moreFor realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frameThe function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actualOn can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.AlsoIt is noted that the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart, Ke YiyongFunction as defined in execution or the special hardware based system of operation are realized, or can be referred to specialized hardware and computerThe combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hardThe mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bagInclude monitoring unit, receiving unit and replacement unit.Wherein, the title of these units is not formed to the unit under certain conditionsThe restriction of itself, for example, monitoring unit is also described as whether " monitoring has the web page contents sent from service end to update letterThe unit of breath ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculatingMachine storage medium can be the nonvolatile computer storage media included in device described in above-described embodiment;Can also beIndividualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is depositedOne or more program is contained, when one or more of programs are performed by an equipment so that the equipment:MonitorWhether the web page contents fresh information from service end sent is had;In response to listening to the web page contents sent from the service endFresh information, receive the web page contents fresh information, wherein, the web page contents fresh information include newest web page contents,Filename and store path corresponding at least one file to be updated, at least one file to be updated is the bag being locally storedThe file of the content containing history web pages;According to filename and store path corresponding at least one file to be updated, in localAt least one file to be updated is searched under path, at least one file to be updated is replaced with the newest web page contentsIn history web pages content.Or the relevant information at least one file to be updated that the first client is sent is received, wherein, instituteStating relevant information includes the Internet protocol address and port numbers, at least one file pair to be updated of first clientThe filename and store path answered, at least one file to be updated include history for what first client was locally storedThe file of web page contents;The Notification of Changes sent in response to receiving the second client, according to the interconnection of first clientFidonetFido address and port numbers, web page contents fresh information is sent to first client, so that the first client rootThe history net in the local at least one file to be updated of first client is updated according to the web page contents fresh informationPage content, wherein, the Notification of Changes includes newest web page contents, and the newest web page contents are to be used to replace described at least oneThe web page contents of history web pages content in individual file to be updated, the web page contents fresh information are included in the newest webpageHold, filename and store path corresponding at least one file to be updated.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the artMember should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic formsScheme, while should also cover in the case where not departing from the inventive concept, carried out by above-mentioned technical characteristic or its equivalent featureThe other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed hereinThe technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (10)

  1. Transmitting element, the Notification of Changes sent in response to receiving the second client is configured to, according to first clientInternet protocol address and port numbers, to first client send web page contents fresh information so that it is described first visitorFamily end is updated according to the web page contents fresh information in the local at least one file to be updated of first clientHistory web pages content, wherein, the Notification of Changes includes newest web page contents, and the newest web page contents are described for replacingThe web page contents of history web pages content at least one file to be updated, the web page contents fresh information include described newestFilename and store path corresponding to web page contents, at least one file to be updated.
CN201610859697.7A2016-09-282016-09-28Method and apparatus for updating web page contentsPendingCN107870947A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610859697.7ACN107870947A (en)2016-09-282016-09-28Method and apparatus for updating web page contents

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610859697.7ACN107870947A (en)2016-09-282016-09-28Method and apparatus for updating web page contents

Publications (1)

Publication NumberPublication Date
CN107870947Atrue CN107870947A (en)2018-04-03

Family

ID=61762029

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610859697.7APendingCN107870947A (en)2016-09-282016-09-28Method and apparatus for updating web page contents

Country Status (1)

CountryLink
CN (1)CN107870947A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109639772A (en)*2018-11-232019-04-16中国科学院苏州生物医学工程技术研究所The communication system and method for biological reagent detection
CN109783305A (en)*2018-11-222019-05-21厦门市美亚柏科信息股份有限公司Method and apparatus for monitoring information

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104182397A (en)*2013-05-212014-12-03北大方正集团有限公司 Document collaborative processing method, system and device
CN104537119A (en)*2015-01-262015-04-22浪潮通信信息系统有限公司Update method of cache data, data use terminal and system
CN105808282A (en)*2014-12-312016-07-27北京神州泰岳软件股份有限公司Method and device for updating webpage contents of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104182397A (en)*2013-05-212014-12-03北大方正集团有限公司 Document collaborative processing method, system and device
CN105808282A (en)*2014-12-312016-07-27北京神州泰岳软件股份有限公司Method and device for updating webpage contents of application program
CN104537119A (en)*2015-01-262015-04-22浪潮通信信息系统有限公司Update method of cache data, data use terminal and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109783305A (en)*2018-11-222019-05-21厦门市美亚柏科信息股份有限公司Method and apparatus for monitoring information
CN109783305B (en)*2018-11-222022-08-19厦门市美亚柏科信息股份有限公司Method and device for monitoring information
CN109639772A (en)*2018-11-232019-04-16中国科学院苏州生物医学工程技术研究所The communication system and method for biological reagent detection

Similar Documents

PublicationPublication DateTitle
CN106528432B (en) Construction method and device of test scene data, and buried point test method
US8224308B1 (en)Mobile device catalog registration based on user agents and customer snapshots of capabilities
CN106817391A (en)Document breakpoint transmission method and apparatus
CN107066609A (en)Image display method and device
CN107665225A (en)Information-pushing method and device
CN105868231A (en)Cache data updating method and device
CN105574092B (en)Information mining method and device
CN103902616B (en)Method, device and system for pushing webpage application messages
CN105306495B (en)user identification method and device
US9871848B1 (en)Integration engine for communications between source and target applications
CN107958009A (en)Company information acquisition methods, device and equipment
CN109936621A (en)Multi-page information push method, device, equipment and the storage medium of information security
CN106874273A (en)Channel information statistical method, device and system
CN108028768A (en)The method and system of application version is installed by short-range communication
CN104506580B (en)A kind of method and system of uniform client version
CN107766509A (en)A kind of method and apparatus of webpage static backup
CN107438084A (en)Multi-client data synchronization method and apparatus
CN107656910A (en)Method and apparatus for generating list
CN107391277A (en)Information processing method and device
CN101917394A (en) Middleware system and working method for data sharing on mobile devices
CN107809350A (en)The method and apparatus for obtaining HTTP server performance data
CN107632971A (en)Method and apparatus for generating multidimensional form
CN110222280A (en)Data processing method and device for sharing
CN107819745A (en)The defence method and device of abnormal flow
CN106815747A (en)Method and apparatus for sending information

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20180403


[8]ページ先頭

©2009-2025 Movatter.jp