CN104125268A - File downloading method and device, routing device and terminal device - Google Patents

File downloading method and device, routing device and terminal device Download PDF

Info

Publication number
CN104125268A
CN104125268A CN201410298707.5A CN201410298707A CN104125268A CN 104125268 A CN104125268 A CN 104125268A CN 201410298707 A CN201410298707 A CN 201410298707A CN 104125268 A CN104125268 A CN 104125268A
Authority
CN
China
Prior art keywords
download
response message
access response
effective
download link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410298707.5A
Other languages
Chinese (zh)
Other versions
CN104125268B (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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410298707.5A priority Critical patent/CN104125268B/en
Publication of CN104125268A publication Critical patent/CN104125268A/en
Application granted granted Critical
Publication of CN104125268B publication Critical patent/CN104125268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a file downloading method and device, a routing device and a terminal device. The method comprises the following steps: receiving a first access response message sent by a server; acquiring a valid download link in the first access response message; adding download instruction information corresponding to the valid download link to the first access response message to obtain a second access response message; sending the second access response message to the terminal device to display a webpage corresponding to the second access response message; displaying a download instruction button corresponding to the valid download link in the webpage according to the download instruction information; receiving the download instruction message with the valid download link from the terminal device; downloading the file from the server. With the adoption of the file downloading method and device, the routing device and the terminal device, that a user copies the download link to a download list of the routing device is saved, thus the complexity of the operation of the user is lowered down, and the user experience is improved.

Description

Document down loading method, device, routing device and terminal equipment
Technical field
The disclosure relates to networking technology area, relates in particular to a kind of document down loading method, device, routing device and terminal equipment.
Background technology
Along with the develop rapidly of network technology, routing device is more and more high-end, not only can be between terminal equipment and server forwarding messages, also carry hard disk, can storage file.
Because routing device carries hard disk, user can be at routing device downloading files in the process of online.For example, routing device receives after the access request message of terminal equipment transmission, be transmitted to server, suppose that this access request message is for certain file of request access, routing device is receiving after the access response message of server transmission, this access response message is transmitted to terminal equipment, if carry the download link of this file in access response message, user can copy download link in the download list of routing device by terminal equipment, routing device is polled to after this download link in download list, will download file corresponding to this download link from server.Owing to needing manually download link to be copied in the download list of routing device in said process, this can increase the fussy degree of user's operation, reduces user and experiences.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of document down loading method, device, routing device and terminal equipment.
According to the first aspect of disclosure embodiment, a kind of document down loading method is provided, comprising:
The first access response message that reception server sends;
Obtain effective download link of carrying in described the first access response message;
In described the first access response message, add the download indication information corresponding with described effective download link, obtain the second access response message;
Described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Receive the download Indication message that carries described effective download link that described terminal equipment sends, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download described file from described server.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described in obtain effective download link of carrying in described the first access response message step comprise:
Obtain the download link of carrying in described the first access response message, obtain candidate's download link;
From each candidate's download link, extract selected field;
Candidate's download link that selected field is kept in preset match-on criterion is defined as described effective download link.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second of first aspect, described step of adding the download indication information corresponding with described effective download link in described the first access response message comprises:
Obtain html element and download event that described download indication information comprises;
In described the first access response message, add described html element and download event.
According to the second aspect of disclosure embodiment, a kind of document down loading method is provided, comprising:
Receive the second access response message that routing device sends, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Show webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
After detecting that described download instruction button is clicked, send the download Indication message that carries described effective download link to described routing device, so that described routing device is downloaded file corresponding to described effective download link from described server.
In conjunction with second aspect, in the possible implementation of the first of second aspect, describedly in described webpage, show that according to described download indication information the step of the download instruction button corresponding with described effective download link comprises:
In described webpage, detect cursor slide to described effective download connect shown region or the shown region of described effective download link selected after, obtain html element and download event that described download indication information comprises;
In described webpage, show according to described html element and download event the download instruction button that described effective connection is corresponding.
According to the third aspect of disclosure embodiment, a kind of file downloading device is provided, comprising:
The first receiver module, the first access response message sending for reception server;
Acquisition module, effective download link of carrying for obtaining described the first access response message;
Add module, for adding the download indication information corresponding with described effective download link in described the first access response message, obtain the second access response message;
Sending module, for described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
The second receiver module, the download Indication message that carries described effective download link sending for receiving described terminal equipment, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download module, for downloading described file from described server.
In conjunction with the third aspect, in the possible implementation of the first of the third aspect, described acquisition module comprises:
The first acquiring unit, the download link of carrying for obtaining described the first access response message, obtains candidate's download link;
Extraction unit, for extracting selected field from each candidate's download link;
Determining unit, is defined as described effective download link for candidate's download link that selected field is kept to preset match-on criterion.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, in the possible implementation of the second of the third aspect, described interpolation module comprises:
Second acquisition unit, the html element and the download event that comprise for obtaining described download indication information;
Adding device, for adding described html element and download event in described the first access response message.
According to the fourth aspect of disclosure embodiment, a kind of file downloading device is provided, comprising:
Receiver module, the the second access response message sending for receiving routing device, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Display module for showing webpage corresponding to described the second access response message, and shows the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Sending module, after clicked to described download instruction button, sends the download Indication message that carries described effective download link, so that described routing device is downloaded file corresponding to described effective download link from described server to described routing device.
In conjunction with fourth aspect, in the possible implementation of the first of fourth aspect, described display module comprises:
Acquiring unit, for detect at described webpage cursor slide to described effective download connect shown region or the shown region of described effective download link selected after, obtain html element and download event that described download indication information comprises;
Display unit, for showing at described webpage the download instruction button that described effective connection is corresponding according to described html element and download event.
According to the 5th aspect of disclosure embodiment, a kind of routing device is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
The first access response message that reception server sends;
Obtain effective download link of carrying in described the first access response message;
In described the first access response message, add the download indication information corresponding with described effective download link, obtain the second access response message;
Described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Receive the download Indication message that carries described effective download link that described terminal equipment sends, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download described file from described server.
According to the 6th aspect of disclosure embodiment, a kind of terminal equipment is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the second access response message that routing device sends, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Show webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
After detecting that described download instruction button is clicked, send the download Indication message that carries described effective download link to described routing device, so that described routing device is downloaded file corresponding to described effective download link from described server.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: routing device adds download indication information in the first access response message to, obtain the second access response message, terminal equipment can directly show the download instruction button that effective download link is corresponding according to the download indication information in the second access message, user only needs button click, terminal equipment just can send and carry download Indication message corresponding to effective download link to routing device, routing device receives after this download Indication message, can download file corresponding to effective download link from server, download link is copied in the download list of routing device without user, alleviate the fussy degree of user's operation, promote user's experience.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in specification and forms the part of this specification, shows embodiment according to the invention, and is used from and explains principle of the present invention with specification one.
Fig. 1 is according to the flow chart of a kind of document down loading method for routing device shown in an exemplary embodiment.
Fig. 2 is according to the flow chart of a kind of document down loading method for terminal equipment shown in an exemplary embodiment.
Fig. 3 is according to the flow chart of the another kind of document down loading method shown in an exemplary embodiment.
Fig. 4 is according to the block diagram of a kind of file downloading device corresponding with Fig. 1 shown in an exemplary embodiment.
Fig. 5 is according to the block diagram of the acquisition module shown in an exemplary embodiment.
Fig. 6 is according to the block diagram of the interpolation module shown in an exemplary embodiment.
Fig. 7 is according to the block diagram of a kind of file downloading device corresponding with Fig. 2 shown in an exemplary embodiment.
Fig. 8 is according to the block diagram of the display module shown in an exemplary embodiment.
Fig. 9 is according to the block diagram of a kind of terminal equipment shown in an exemplary embodiment.
Figure 10 is according to the block diagram of a kind of routing device shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
Fig. 1 is according to the flow chart of a kind of document down loading method shown in an exemplary embodiment, and as shown in Figure 1, document down loading method, for routing device, comprises the following steps.
In step S11, the first access response message that reception server sends.
When user will access certain file, can be on terminal equipment the title of input file, terminal equipment sends after access request message to server, server can return to the first access response message according to this access request message.
In step S12, obtain effective download link of carrying in the first access response message.
Routing device receives after the first access response message, can obtain effective download link of carrying, and what this effective download link was corresponding is the file that user will access.Effective download link of carrying in the first access response message can be one, can be also multiple.
In step S13, in the first access response message, add the download indication information corresponding with effective download link, obtain the second access response message.
In the time that effective download link is one, in the first access response message, add the download indication information corresponding with this effective download link.When effective download link is while being multiple, in the first access response message, add the download indication information corresponding with each effective download link.Thereby obtain the second access response message.
This download indication information can be shown as download instruction button on terminal equipment, is used to indicate and downloads files on routing device.
In step S14, the second access response message is sent to terminal equipment, so that terminal equipment shows webpage corresponding to the second access response message, and show the download instruction button corresponding with effective download link according to downloading indication information in webpage.
If carry multiple effective download link in the second access response message, each effective download link needs the corresponding download instruction button that shows.
In step S15, the download Indication message that carries effective download link that receiving terminal apparatus sends, downloading Indication message is that terminal equipment detects the clicked rear transmission of download instruction button, is used to indicate and downloads file corresponding to effective download link.
Terminal equipment shows after the download instruction button corresponding with effective download link, user can click download instruction button as required, user clicks and downloads after instruction button, and terminal equipment can receive download Indication message, and this download Indication message is sent to routing device.In this download Indication message, can carry effective download link.
In step S16, from server download file.
Routing device receives after the download Indication message of terminal equipment transmission, can download corresponding file from server according to effective download link of carrying.
This scheme Road is added to download indication information in the first access response message by equipment, obtain the second access response message, terminal equipment can directly show the download instruction button that effective download link is corresponding according to the download indication information in the second access message, user only needs button click, terminal equipment just can send and carry download Indication message corresponding to effective download link to routing device, routing device receives after this download Indication message, can download file corresponding to effective download link from server, download link is copied in the download list of routing device without user, alleviate the fussy degree of user's operation, promote user's experience.
Optionally, the step of obtaining effective download link of carrying in the first access response message in S12 comprises:
Obtain the download link of carrying in the first access response message, obtain candidate's download link;
From each candidate's download link, extract selected field;
Candidate's download link that selected field is kept in preset match-on criterion is defined as effective download link.
In the first access response message, may carry a lot of download link, these download link might not be all effective download link, therefore, can be first using these download link as candidate's download link, in each candidate's download link, extract selected field, then will select field and mate with preset match-on criterion, candidate's download link that selected field is kept in preset match-on criterion is defined as effective download link.
Preset match-on criterion can set in advance as required, for example, can preserve http: //, ftp: // etc. selected field, this preset match-on criterion is not changeless, can upgrade according to actual needs selected field.
This scheme can accurately determine which download link of carrying in the first access message is effective, likely to add to download indication information, and then can on terminal equipment, show download instruction button, after this step screening, can offer the more accurate information of user, promote user and experience.
Optionally, in above-mentioned S13, the step of adding the download indication information corresponding with effective download link in the first access response message comprises:
Obtain and download html element and the download event that indication information comprises;
In the first access response message, add html element and download event.
When the first access response message that routing device receives is one section of code, download indication information and can comprise html element and download event, then html element and download event are added in the first access response message, terminal equipment can show download instruction button according to html element and download event, user only need click download instruction button, get final product indicating road by device downloads file, thereby reduced the fussy degree of user's operation, promoted user's experience.
Fig. 2 is according to the flow chart of a kind of document down loading method shown in an exemplary embodiment, and as shown in Figure 2, document down loading method, for terminal equipment, comprises the following steps.
In step S21, receive the second access response message that routing device sends, after the second access response message is the first access response message of routing device reception server transmission, obtain effective download link of carrying in the first access response message, and the interpolation download indication information corresponding with effective download link obtains in the first access response message.
In step S22, show webpage corresponding to the second access response message, and show the download instruction button corresponding with effective download link according to downloading indication information in webpage.
In the time that the second access response message is one section of code, terminal equipment can be according to this section of code display web page, owing to carrying download indication information in the second method response message, terminal equipment can show corresponding download instruction button according to downloading indication information on webpage.In the time having multiple download indication information, each download indication information can a corresponding download instruction button.
In step S23, after detecting that download instruction button is clicked, send the download Indication message that carries effective download link to routing device, so that routing device is downloaded file corresponding to effective download link from server.
Detect download instruction button clicked after, just mean that user wishes that routing device downloads file corresponding to effective download link from server, routing device just can be downloaded from server.
This scheme Road is added to download indication information in the first access response message by equipment, obtain the second access response message, terminal equipment can directly show the download instruction button that effective download link is corresponding according to the download indication information in the second access message, user only needs button click, terminal equipment just can send and carry download Indication message corresponding to effective download link to routing device, routing device receives after this download Indication message, can download file corresponding to effective download link from server, download link is copied in the download list of routing device without user, alleviate the fussy degree of user's operation, promote user's experience.
Optionally, above-mentioned S22 shows that according to downloading indication information the step of the download instruction button corresponding with effective download link comprises in webpage:
In webpage, detect cursor slide to effective download connect shown region or effectively the shown region of download link selected after, obtain and download html element and the download event that indication information comprises;
In webpage, show with download event according to html element and be effectively connected corresponding download instruction button.
In the time that terminal equipment connects external equipment, whether for example mouse, keyboard etc., can slide to the shown region of effective download link by detecting cursor, and then show the download instruction button that this effective download link is corresponding.
In the time that terminal equipment has touch-screen, whether selectedly can detect the shown region of effective download link, and then show the download instruction button that this effective download link is corresponding.
Fig. 3 is according to the flow chart of a kind of document down loading method shown in an exemplary embodiment, and this flow process comprises and as shown in Figure 3, comprises the following steps mutual between terminal equipment, routing device and server.
In step S31, terminal equipment obtains the title of wanting browser document of user's input, sends the access request message of carrying this title to server.
For example, when user wants the associated video of search world cup, can on terminal equipment, input " world cup video " and search for.
In step S32, routing device receives after this access request message, forwards this access request message to server.
In step S33, server sends the first access response message to routing device.
Server receives after access request message, and search, about the video of " world cup ", is then carried at the download link of these videos in the first access response message and sends routing device.
In step S34, the first access response message that routing device reception server sends, obtain effective download link of carrying in the first access response message, in the first access response message, add the download indication information corresponding with effective download link, obtain the second access response message, the second access response message is sent to terminal equipment.
In the first access response message, can carry one or more download link, suppose, in the first response message receiving, carry following two download link: http://www.iqiyi.com/v_19rrhx05s8.html? vfm=bdaldwcp, http://www.iqiyi.com/v_19rrhwzwpk.html? vfm=bdaldwcp, these two download link can be used as candidate's download link, then extract selected field, the selected field of extracting from these two candidate's download link is all http: //, suppose again to comprise http at preset match-on criterion: //, these two candidate's download link are all effective download link so, in the first access response message, carry download indication information corresponding to these two effective download link, obtain sending to terminal equipment after the second access response message.
In step S35, terminal equipment receives after the second access response message, shows webpage corresponding to the second access response message, and shows the download instruction button corresponding with effective download link according to downloading indication information in webpage.
If terminal equipment connects the external equipments such as mouse, keyboard, terminal equipment can show and download instruction button detecting after cursor slides to the shown region of effective download link; If terminal terminal equipment has touch-screen, the selected rear demonstration download instruction button of the shown difference of effective download link can detected.
In step S36, terminal equipment detects downloads the clicked download Indication message that carries effective download link that sends to routing device of instruction button, is used to indicate and downloads file corresponding to effective download link.
User can choose the file that will browse in webpage, if terminal equipment connects the external equipments such as mouse, keyboard, and download instruction button corresponding to file that user can use these external equipments to click to choose; If terminal terminal equipment has touch-screen, can directly click download instruction button corresponding to file of choosing.Does is that suppose that user chooses effective download link http://www.iqiyi.com/v_19rrhx05s8.html? the download instruction button that vfm=bdaldwcp is corresponding, can terminal equipment send and carry http://www.iqiyi.com/v_19rrhx05s8.html to routing device? the download Indication message of vfm=bdaldwcp.
In step S37, the download Indication message that routing device receiving terminal apparatus sends, from server download file.
Routing device receives after the download Indication message of terminal equipment transmission, can be according to downloading the http://www.iqiyi.com/v_19rrhx05s8.html carrying in Indication message? vfm=bdaldwcp, download corresponding file from server, then user accesses the file that completes download on routing device by terminal equipment.
In said process, without user, download link is copied in the download list of routing device, just can realize routing device download file, alleviated the fussy degree of user's operation, promoted user's experience.
Fig. 4 is that this device is corresponding with the document down loading method shown in Fig. 1 according to a kind of file downloading device block diagram shown in an exemplary embodiment.With reference to Fig. 4, this device comprises the first receiver module 41, and acquisition module 42 adds module 43, sending module 44, the second receiver modules 45 and download module 46.
This first receiver module 41 is configured to, the first access response message that reception server sends.
This acquisition module 42 is configured to, and obtains effective download link of carrying in the first access response message.
This interpolation module 43 is configured to, and adds the download indication information corresponding with effective download link in the first access response message, obtains the second access response message.
This sending module 44 is configured to, the second access response message is sent to terminal equipment, so that terminal equipment shows webpage corresponding to the second access response message, and show the download instruction button corresponding with effective download link according to downloading indication information in webpage.
This second receiver module 45 is configured to, the download Indication message that carries effective download link that receiving terminal apparatus sends, downloading Indication message is that terminal equipment detects the clicked rear transmission of download instruction button, is used to indicate and downloads file corresponding to effective download link.
This download module 46 is configured to, from server download file.
Fig. 5 is according to the acquisition module block diagram shown in an exemplary embodiment, and this acquisition module 42 comprises the first acquiring unit 421, extraction unit 422 and determining unit 423.
This first acquiring unit 421 is configured to, and obtains the download link of carrying in the first access response message, obtains candidate's download link.
This extraction unit 422 is configured to, and extracts selected field from each candidate's download link.
This determining unit 423 is configured to, and candidate's download link that selected field is kept in preset match-on criterion is defined as effective download link.
Fig. 6 adds module frame chart according to the one shown in an exemplary embodiment, and this interpolation module 43 comprises second acquisition unit 431 and adding device 432.
This second acquisition unit 431 is configured to, and obtains and downloads html element and the download event that indication information comprises.
This adding device 432 is configured to, and in the first access response message, adds html element and download event.
Fig. 7 is that this device is corresponding with the document down loading method shown in Fig. 2 according to a kind of file downloading device block diagram shown in an exemplary embodiment.With reference to Fig. 7, this device comprises receiver module 71, display module 72 and sending module 73.
This receiver module 71 is configured to, receive the second access response message that routing device sends, after the second access response message is the first access response message of routing device reception server transmission, obtain effective download link of carrying in the first access response message, and the interpolation download indication information corresponding with effective download link obtains in the first access response message.
This display module 72 is configured to, and shows webpage corresponding to the second access response message, and shows the download instruction button corresponding with effective download link according to downloading indication information in webpage.
This sending module 73 is configured to, and after detecting that download instruction button is clicked, sends the download Indication message that carries effective download link, so that routing device is downloaded file corresponding to effective download link from server to routing device.
Fig. 8 is that this display module 72 comprises acquiring unit 721 and display unit 722 according to a kind of display module block diagram shown in an exemplary embodiment.
This acquiring unit 721 is configured to, in webpage, detect cursor slide to effective download connect shown region or effectively the shown region of download link selected after, obtain and download html element and the download event that indication information comprises.
This display unit 722 is configured to, and shows be effectively connected corresponding download instruction button according to html element with download event in webpage.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 9 is according to the block diagram of a kind of device 800 of downloading for file shown in an exemplary embodiment.For example, device 800 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of processing components 802 common control device 800, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing components 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of device 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 806 provides electric power for installing 800 various assemblies.Power supply module 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal receiving can be further stored in memory 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducers, is used to device 800 that the state estimation of various aspects is provided.For example, sensor cluster 814 can detect the opening/closing state of device 800, the relative positioning of assembly, for example described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or 800 1 assemblies of device changes, user is with device 800 existence that contact or do not have the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between device 800 and other equipment.Device 800 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the memory 804 of instruction, above-mentioned instruction can have been carried out said method by the processor 820 of device 800.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.For example, a kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of terminal equipment, makes terminal equipment can carry out a kind of document down loading method, and described method comprises:
Receive the second access response message that routing device sends, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Show webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
After detecting that described download instruction button is clicked, send the download Indication message that carries described effective download link to described routing device, so that described routing device is downloaded file corresponding to described effective download link from described server.
Optionally, describedly in described webpage, show that according to described download indication information the step of the download instruction button corresponding with described effective download link comprises:
In described webpage, detect cursor slide to described effective download connect shown region or the shown region of described effective download link selected after, obtain html element and download event that described download indication information comprises;
In described webpage, show according to described html element and download event the download instruction button that described effective connection is corresponding.
Figure 10 is according to the block diagram of a kind of device 1900 of downloading for file shown in an exemplary embodiment.For example, device 1900 may be provided in a routing device.With reference to Figure 10, device 1900 comprises processing components 1922, and it further comprises one or more processors, and by the memory resource of memory 1932 representatives, can for example, by the instruction of the execution of processing components 1922, application program for storing.In memory 1932, the application program of storage can comprise one or more each module corresponding to one group of instruction.In addition, processing components 1922 is configured to carry out instruction, and with execute file method for down loading, the method comprises:
The first access response message that reception server sends;
Obtain effective download link of carrying in described the first access response message;
In described the first access response message, add the download indication information corresponding with described effective download link, obtain the second access response message;
Described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Receive the download Indication message that carries described effective download link that described terminal equipment sends, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download described file from described server.
Optionally, the step of obtaining effective download link of carrying in described the first access response message described in comprises:
Obtain the download link of carrying in described the first access response message, obtain candidate's download link;
From each candidate's download link, extract selected field;
Candidate's download link that selected field is kept in preset match-on criterion is defined as described effective download link.
Optionally, described step of adding the download indication information corresponding with described effective download link in described the first access response message comprises:
Obtain html element and download event that described download indication information comprises;
In described the first access response message, add described html element and download event.
Device 1900 can also comprise that a power supply module 1926 is configured to the power management of final controlling element 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 operating systems that can operate based on being stored in memory 1932, for example Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (12)

1. a document down loading method, is characterized in that, comprising:
The first access response message that reception server sends;
Obtain effective download link of carrying in described the first access response message;
In described the first access response message, add the download indication information corresponding with described effective download link, obtain the second access response message;
Described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Receive the download Indication message that carries described effective download link that described terminal equipment sends, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download described file from described server.
2. method according to claim 1, is characterized in that, described in obtain effective download link of carrying in described the first access response message step comprise:
Obtain the download link of carrying in described the first access response message, obtain candidate's download link;
From each candidate's download link, extract selected field;
Candidate's download link that selected field is kept in preset match-on criterion is defined as described effective download link.
3. method according to claim 1 and 2, is characterized in that, described step of adding the download indication information corresponding with described effective download link in described the first access response message comprises:
Obtain html element and download event that described download indication information comprises;
In described the first access response message, add described html element and download event.
4. a document down loading method, is characterized in that, comprising:
Receive the second access response message that routing device sends, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Show webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
After detecting that described download instruction button is clicked, send the download Indication message that carries described effective download link to described routing device, so that described routing device is downloaded file corresponding to described effective download link from described server.
5. method according to claim 4, is characterized in that, describedly in described webpage, shows that according to described download indication information the step of the download instruction button corresponding with described effective download link comprises:
In described webpage, detect cursor slide to described effective download connect shown region or the shown region of described effective download link selected after, obtain html element and download event that described download indication information comprises;
In described webpage, show according to described html element and download event the download instruction button that described effective connection is corresponding.
6. a file downloading device, is characterized in that, comprising:
The first receiver module, the first access response message sending for reception server;
Acquisition module, effective download link of carrying for obtaining described the first access response message;
Add module, for adding the download indication information corresponding with described effective download link in described the first access response message, obtain the second access response message;
Sending module, for described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
The second receiver module, the download Indication message that carries described effective download link sending for receiving described terminal equipment, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download module, for downloading described file from described server.
7. device according to claim 6, is characterized in that, described acquisition module comprises:
The first acquiring unit, the download link of carrying for obtaining described the first access response message, obtains candidate's download link;
Extraction unit, for extracting selected field from each candidate's download link;
Determining unit, is defined as described effective download link for candidate's download link that selected field is kept to preset match-on criterion.
8. according to the device described in claim 6 or 7, it is characterized in that, described interpolation module comprises:
Second acquisition unit, the html element and the download event that comprise for obtaining described download indication information;
Adding device, for adding described html element and download event in described the first access response message.
9. a file downloading device, is characterized in that, comprising:
Receiver module, the the second access response message sending for receiving routing device, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Display module for showing webpage corresponding to described the second access response message, and shows the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Sending module, after clicked to described download instruction button, sends the download Indication message that carries described effective download link, so that described routing device is downloaded file corresponding to described effective download link from described server to described routing device.
10. device according to claim 9, is characterized in that, described display module comprises:
Acquiring unit, for detect at described webpage cursor slide to described effective download connect shown region or the shown region of described effective download link selected after, obtain html element and download event that described download indication information comprises;
Display unit, for showing at described webpage the download instruction button that described effective connection is corresponding according to described html element and download event.
11. 1 kinds of routing devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
The first access response message that reception server sends;
Obtain effective download link of carrying in described the first access response message;
In described the first access response message, add the download indication information corresponding with described effective download link, obtain the second access response message;
Described the second access response message is sent to terminal equipment, so that described terminal equipment shows webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
Receive the download Indication message that carries described effective download link that described terminal equipment sends, described download Indication message is that described terminal equipment detects the clicked rear transmission of described download instruction button, is used to indicate and downloads file corresponding to described effective download link;
Download described file from described server.
12. 1 kinds of terminal equipments, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the second access response message that routing device sends, after described the second access response message is the first access response message of described routing device reception server transmission, obtain effective download link of carrying in described the first access response message, and the interpolation download indication information corresponding with described effective download link obtains in described the first access response message;
Show webpage corresponding to described the second access response message, and show the download instruction button corresponding with described effective download link according to described download indication information in described webpage;
After detecting that described download instruction button is clicked, send the download Indication message that carries described effective download link to described routing device, so that described routing device is downloaded file corresponding to described effective download link from described server.
CN201410298707.5A 2014-06-26 2014-06-26 Document down loading method, device, routing device and terminal device Active CN104125268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410298707.5A CN104125268B (en) 2014-06-26 2014-06-26 Document down loading method, device, routing device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410298707.5A CN104125268B (en) 2014-06-26 2014-06-26 Document down loading method, device, routing device and terminal device

Publications (2)

Publication Number Publication Date
CN104125268A true CN104125268A (en) 2014-10-29
CN104125268B CN104125268B (en) 2018-05-08

Family

ID=51770532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410298707.5A Active CN104125268B (en) 2014-06-26 2014-06-26 Document down loading method, device, routing device and terminal device

Country Status (1)

Country Link
CN (1) CN104125268B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468523A (en) * 2014-11-07 2015-03-25 小米科技有限责任公司 UI theme obtaining method, terminal and router
CN111770132A (en) * 2020-05-18 2020-10-13 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment
CN112989233A (en) * 2019-12-02 2021-06-18 北京小米移动软件有限公司 File downloading method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188545A (en) * 2007-12-06 2008-05-28 四川长虹电器股份有限公司 Download application method based on home gateway
CN101212485A (en) * 2006-12-28 2008-07-02 中国科学院计算技术研究所 Method for obtaining stream media link address
CN101676907A (en) * 2008-09-16 2010-03-24 北京雷速科技有限公司 Method and system of directionally acquiring Internet resources
CN102624967A (en) * 2011-01-28 2012-08-01 腾讯科技(深圳)有限公司 Method and system for realizing document downloading in mobile terminal
US20130152070A1 (en) * 2011-12-09 2013-06-13 Disney Enterprises, Inc. HTML Directed Adaptive Features for Mobile Applications
CN103279485A (en) * 2013-04-24 2013-09-04 华为技术有限公司 Method and device for resource sharing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212485A (en) * 2006-12-28 2008-07-02 中国科学院计算技术研究所 Method for obtaining stream media link address
CN101188545A (en) * 2007-12-06 2008-05-28 四川长虹电器股份有限公司 Download application method based on home gateway
CN101676907A (en) * 2008-09-16 2010-03-24 北京雷速科技有限公司 Method and system of directionally acquiring Internet resources
CN102624967A (en) * 2011-01-28 2012-08-01 腾讯科技(深圳)有限公司 Method and system for realizing document downloading in mobile terminal
US20130152070A1 (en) * 2011-12-09 2013-06-13 Disney Enterprises, Inc. HTML Directed Adaptive Features for Mobile Applications
CN103279485A (en) * 2013-04-24 2013-09-04 华为技术有限公司 Method and device for resource sharing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468523A (en) * 2014-11-07 2015-03-25 小米科技有限责任公司 UI theme obtaining method, terminal and router
CN104468523B (en) * 2014-11-07 2018-03-20 小米科技有限责任公司 UI themes acquisition methods, terminal and router
CN112989233A (en) * 2019-12-02 2021-06-18 北京小米移动软件有限公司 File downloading method and device and storage medium
CN111770132A (en) * 2020-05-18 2020-10-13 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment
CN111770132B (en) * 2020-05-18 2023-04-28 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment

Also Published As

Publication number Publication date
CN104125268B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN104123341A (en) Method and device for downloading file and route device
CN104778063A (en) Method and device for updating resource
CN104104514A (en) Method and device for identifying by using verification code
CN104079962A (en) Method and device for pushing recommendation information
CN104780155A (en) Method and device for binding equipment
CN104202624B (en) The method of transmission picture and device
CN104156401A (en) Webpage loading method, device and equipment
CN104320774A (en) Updating method, device and facility
CN104035979A (en) Object recommendation method and related device
CN104486451A (en) Application program recommendation method and device
CN105530292A (en) Page image display method and device
KR20200012699A (en) Product display method and device
CN105159524A (en) Interface display method and apparatus
CN105677392A (en) Method and apparatus for recommending applications
CN103973693A (en) Router accessing method, device and system
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN103984664A (en) Cloud space access method, device and system
CN105704016A (en) Group message shielding processing method, device and terminal
CN104111979A (en) Search recommendation method and device
CN105095235A (en) Application program recommendation method and device
CN104767857A (en) Telephone calling method and device based on cloud name cards
CN103973900A (en) Method and device for sending messages
CN104079964A (en) Method and device for transmitting video information
CN104539662A (en) Information transmission method and device
CN104049864A (en) Object control method and device

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