WO2015066860A1 - 页面操作处理方法、装置及终端 - Google Patents

页面操作处理方法、装置及终端 Download PDF

Info

Publication number
WO2015066860A1
WO2015066860A1 PCT/CN2013/086620 CN2013086620W WO2015066860A1 WO 2015066860 A1 WO2015066860 A1 WO 2015066860A1 CN 2013086620 W CN2013086620 W CN 2013086620W WO 2015066860 A1 WO2015066860 A1 WO 2015066860A1
Authority
WO
WIPO (PCT)
Prior art keywords
application client
url
domain name
terminal device
page
Prior art date
Application number
PCT/CN2013/086620
Other languages
English (en)
French (fr)
Inventor
李彦
郜文美
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to BR112016010052-2A priority Critical patent/BR112016010052B1/pt
Priority to PCT/CN2013/086620 priority patent/WO2015066860A1/zh
Priority to KR1020167014317A priority patent/KR101922037B1/ko
Priority to EP13887020.9A priority patent/EP2928143A4/en
Priority to CN201380008167.6A priority patent/CN105122760B/zh
Priority to JP2016550905A priority patent/JP6414855B2/ja
Priority to US14/586,235 priority patent/US20150127838A1/en
Publication of WO2015066860A1 publication Critical patent/WO2015066860A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names

Definitions

  • the present invention relates to communication technologies, and in particular, to a page operation processing method, apparatus, and terminal. Background technique
  • the terminal device can recognize that the content clicked by the user is a Uniform Resource Locator (abbreviation).
  • the terminal device can present a pop-up window containing all the browsers installed on the terminal device to the user, and the user can select a browser in the pop-up window presented by the terminal device to open the webpage link.
  • the embodiment of the invention provides a page operation processing method, device and terminal, which solves the problem that the network traffic consumption caused by the terminal device opening the webpage link through the browser is large and the display caused by the browser is displayed by the browser in the prior art.
  • the content is small, which is not convenient for users to operate and browse, and enhance the user experience.
  • an embodiment of the present invention provides a page operation processing method, including:
  • the terminal device acquires a uniform resource locator URL corresponding to the to-be-accessed resource
  • the terminal device detects whether the stored domain name includes a domain name corresponding to the URL; if yes, the terminal device triggers an application client corresponding to the domain name of the URL to obtain and display an application client corresponding to the URL End page.
  • the terminal device Obtain the URL corresponding to the resource to be accessed, including:
  • the terminal device acquires a URL corresponding to the to-be-accessed resource input by the user.
  • the terminal device acquires the URL corresponding to the to-be-accessed resource by scanning the two-dimensional code; or the terminal device acquires the first aspect of the combination of the to-be-accessed resource from another device by using the near-field communication, in the first aspect
  • the detecting, by the terminal device, whether the domain name corresponding to the URL is included in the stored domain name includes:
  • the terminal device compares the domain name information stored in the database with the character-by-character in the URL, extracts the second-level domain name in the URL, and obtains the domain name of the URL; or, according to the separator in the URL, extracts The second-level domain name in the URL obtains the domain name of the URL;
  • the domain name includes at least the second-level domain name.
  • the terminal device triggers an application client corresponding to the domain name of the URL to obtain and display an application client page corresponding to the URL, including:
  • the terminal device starts the application client, and sends the URL to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it;
  • the terminal device presents the identifier and/or icon of the application client to the user as one of options for opening the to-be-accessed resource, and starts after the user selects the identifier and/or icon of the application client.
  • the application client sends the URL to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays the URL.
  • the terminal device triggers the Before the application client corresponding to the domain name of the URL obtains and displays the application client page corresponding to the URL, the method further includes:
  • the terminal device determines whether the application client corresponding to the domain name of the URL is installed; if not, the terminal device installs the application client, and saves at least one domain name corresponding to the application client and the Apply the client's logo and / or icon.
  • the determining, by the terminal device, the application client corresponding to the domain name of the URL includes:
  • the terminal device matches the domain name corresponding to the URL with the locally stored application client list; if the matching is successful, determining that the terminal device has installed the application client; if the matching is unsuccessful, determining the terminal The application client is not installed on the device.
  • the terminal device before the terminal device installs the application client, the terminal device further includes:
  • the terminal device sends the domain name corresponding to the URL to the server, and the server feeds back whether the application client corresponding to the domain name exists;
  • the terminal device is configured to install the application client, and specifically includes:
  • the second aspect of the present invention provides a page operation processing apparatus, including:
  • An obtaining module configured to obtain a uniform resource locator URL corresponding to the to-be-accessed resource
  • a detecting module configured to detect whether the stored domain name includes a domain name corresponding to the URL
  • a processing module configured to: if the detecting module detects that the stored domain name includes a domain name corresponding to the URL, triggering The application client corresponding to the domain name of the URL obtains and displays the application client page corresponding to the URL.
  • the acquiring module is specifically configured to:
  • the URL corresponding to the to-be-accessed resource is obtained from another device by near field communication.
  • the detecting module is specifically configured to:
  • the application client that triggers the domain name corresponding to the URL to obtain and display the application client page corresponding to the URL includes:
  • the application client is started, and the URL is sent to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it; or
  • the first sending module is specifically configured to present an identifier and/or an icon of the application client to the user as one of options for opening the to-be-accessed resource, and select an identifier of the application client in the user After the icon and/or the icon, the application client is started and sent to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it.
  • the third aspect of the third aspect, the third possible implementation manner of the third aspect, the fourth possible implementation manner of the third aspect, further includes:
  • a judging module configured to determine whether an application client corresponding to the domain name of the URL is installed; and the processing module is further configured to install the application client if the application client is not installed, and save the At least one domain name corresponding to the application client and an identifier and/or an icon of the application client.
  • the determining module is specifically configured to perform a domain name corresponding to the URL and a locally stored application client list Matching; if the matching is successful, it is determined that the application client is installed; if the matching is unsuccessful, it is determined that the application client is not installed.
  • the processing module is further configured to:
  • Transmitting the domain name corresponding to the URL to the server and the server is configured to report whether the application client corresponding to the domain name exists; the terminal device installing the application client, specifically: if the application client corresponding to the domain name exists End, install the application client.
  • an embodiment of the present invention provides a terminal, including:
  • a memory configured to store a domain name corresponding to the installed application client in the terminal
  • a processor configured to obtain a uniform resource locator URL corresponding to the to-be-accessed resource, and detecting whether the stored domain name includes the URL Corresponding domain name; if the stored domain name packet is detected
  • the application client corresponding to the domain name of the URL is triggered to obtain and display an application client page corresponding to the URL.
  • the method further includes: an input device, configured to receive a URL corresponding to the to-be-accessed resource input by the user, and send the URL to the processor; or
  • a near field communication receiver configured to receive a URL corresponding to the to-be-accessed resource by near field communication and send the URL to the processor.
  • the method further includes:
  • An image acquisition device configured to acquire a two-dimensional code image, and send the image to the processor
  • the processor is further configured to parse the two-dimensional code image, and the URL corresponding to the resource to be accessed.
  • the detecting, by the stored domain name, the domain name corresponding to the URL includes:
  • Second-level domain name get the domain name of the URL
  • the domain name includes at least the second-level domain name.
  • the application client that triggers the domain name corresponding to the URL to obtain and display the application client page corresponding to the URL includes:
  • the application client is started, and the URL is sent to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it; or
  • an identifier and/or an icon of the application client as one of options for opening the to-be-accessed resource, and after the user selects an identifier and/or an icon of the application client, starting the
  • the application client sends the URL to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it.
  • the processor is further configured to determine If the application client corresponding to the domain name of the URL is installed, if the application client is not installed, the application client is installed, and at least one domain name corresponding to the application client and the identifier and/or icon of the application client are saved. .
  • the determining, by the application client, that the domain name corresponding to the URL is installed includes: Corresponding domain name is matched with the locally stored application client list; if the matching is successful, it is determined that the terminal device has installed the application client; if the matching is unsuccessful, it is determined that the terminal device does not install the application client .
  • the processor is further configured to send the domain name corresponding to the URL to a server, where the server feeds back Whether the application client corresponding to the domain name exists; the terminal device installing the application client includes: if the application client corresponding to the domain name exists, installing the application client.
  • the embodiment of the invention provides a method, a device and a terminal for processing a page operation.
  • the method opens a resource to be accessed, such as a webpage link, by using an application client, and displays an application client page on the terminal device side, thereby reducing network traffic consumption and facilitating. Users operate and browse the page to enhance the user experience.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a page operation processing method according to the present invention
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of a page operation processing method according to the present invention
  • Embodiment 3 is a schematic flowchart of Embodiment 3 of a page operation processing method according to the present invention.
  • Embodiment 4 is a signaling diagram of Embodiment 4 of a page operation processing method according to the present invention.
  • FIG. 5 is a signaling diagram of Embodiment 5 of a page operation processing method according to the present invention.
  • Embodiment 6 is a signaling diagram of Embodiment 6 of a page operation processing method according to the present invention.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a page operation processing apparatus according to the present invention.
  • FIG. 8 is a schematic structural diagram of Embodiment 2 of a page operation processing apparatus according to the present invention
  • FIG. FIG. 9 is a schematic structural diagram of Embodiment 1 of a terminal according to the present invention.
  • FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a page operation processing method according to the present invention.
  • the embodiment of the present invention provides a page operation processing method, which can be executed by any page operation processing device that executes a page operation processing method, and the device can be implemented by software and/or hardware.
  • the page operation processing device can be integrated in the terminal device.
  • the method in this embodiment includes:
  • Step 101 The terminal device acquires a URL corresponding to the to-be-accessed resource.
  • the to-be-accessed resource may be in various forms, for example, may be a webpage link, or may be an image link, an E-mail link, or the like.
  • users can share web pages in a variety of ways. For example, users can share web pages through instant messaging software such as QQ, WeChat, and Microsoft Service Network (MSN); they can use SMS, MMS, etc.
  • SMS Short-MS, etc.
  • Sina, Renren, Web log (Blog) and other social platforms share web pages; you can also scan QR codes, such as using mobile phones to scan QR codes, and Near Field Communication (NFC) Ways, for example, contact between phones, get a link to a web page.
  • QR codes such as using mobile phones to scan QR codes
  • NFC Near Field Communication
  • the user who receives the webpage link can access the webpage by clicking the webpage link, that is, when the user clicks on the webpage link on the terminal device, the terminal device acquires the URL corresponding to the webpage link; After obtaining the webpage link by the code or the NFC method, the terminal device automatically obtains the URL corresponding to the webpage link. This scenario does not require the user to access the webpage by clicking the webpage link after the terminal device obtains the webpage link. .
  • Step 102 The terminal device detects whether the stored domain name includes a domain name corresponding to the URL.
  • an operating system of the terminal device such as an Android system
  • the operating system (IOS) developed by Apple does not recognize the domain name of the URL. Therefore, in the embodiment of the present invention, the existing mechanism of the system is extended, for example, the Intent mechanism of the Android system is extended, so that the Android system can recognize The domain name of the URL. For example, for a URL of a Taobao website, the system can recognize the domain name taobao.com that the URL contains.
  • the terminal device After the terminal device obtains the URL, the domain name of the URL is analyzed, and the application (Application, abbreviated as APP) client corresponding to the domain name of the URL is installed in the terminal device according to the analysis result, that is, the judgment center Whether the domain name of the URL is included in the domain name stored by the terminal device. Further, follow-up processing is performed according to the judgment result. If the domain name of the URL is included in the domain name stored by the terminal device, perform step 103; if the domain name of the URL is not included in the domain name stored by the terminal device, pass the terminal device according to the prior art.
  • the installed browser opens the URL, or prompts the user whether the application client needs to be installed. This embodiment is not particularly limited herein.
  • Step 103 If yes, the terminal device triggers an application client corresponding to the domain name of the URL to obtain and display an application client page corresponding to the URL.
  • the user obtains the URL corresponding to the to-be-accessed resource
  • the application client corresponding to the URL is installed in the terminal device used by the user, and the two conditions are simultaneously satisfied, and the application installed by the terminal device to the internal device is satisfied.
  • the client sends the URL
  • the application client interacts with the web server to obtain an application client page corresponding to the domain name of the URL, and displays the application client page to the user through the terminal device.
  • the application client page is a page that matches the display screen of the terminal device.
  • the application client page contains less content, such as fonts and pictures. The information is relatively large.
  • the embodiment of the present invention analyzes the domain name of the URL corresponding to the to-be-accessed resource by the terminal device, and triggers the application client corresponding to the domain name of the URL to obtain the application client page corresponding to the URL to be displayed to the user, thereby realizing network traffic consumption. If the application client page matches the display screen of the terminal device, the user's key operation is reduced, and the user is allowed to browse the page, thereby improving the user experience.
  • the step 101 may specifically include: the terminal device acquiring a URL corresponding to the to-be-accessed resource input by the user; or the terminal device acquiring the URL corresponding to the to-be-accessed resource by scanning the two-dimensional code; or The terminal device acquires a URL corresponding to the to-be-accessed resource from another device by using near field communication. That is, the resource to be accessed can be input by the user, for example, the user clicks
  • the webpage link or the manual input of the webpage may also be obtained by scanning the two-dimensional code or the contact between the terminal devices to obtain the corresponding URL.
  • the embodiment of the present invention is not limited thereto, thereby increasing the application scenario of the present invention.
  • the step 102 may specifically include: the terminal device compares the domain name information stored in the database with the character-by-character in the URL, and extracts the second-level domain name in the URL to obtain the domain name of the URL. Or the terminal device extracts the second-level domain name in the URL according to the delimiter in the URL to obtain the domain name of the URL; and, the terminal device determines whether the domain name is stored by itself.
  • the domain name includes at least the second-level domain name.
  • the domain name of the webpage is generally named according to the domain name naming rules.
  • SP The domain name can be divided into different levels, including the top-level domain name and the second-level domain name, among which the top-level domain name includes the country code and the international domain name, and the country code, for example, the domain name of China is .cn, the domain name of Japan is .jp, etc.; international domain name, for example, the domain name of the business enterprise is .com, the domain name of the non-profit organization is .org, etc.; the second-level domain name refers to the domain name under the top-level domain name, Under the international top-level domain, it refers to the online name of the domain name registrant, such as ibm, yahoo, microsoft, etc. Under the national top-level domain, it is a symbol indicating the registered business category, such as com, edu, gov, net, etc.
  • the program can be used to extract the domain name.
  • the top-level domain name of the URL can be extracted first, then the second-level domain name is extracted, and then the top-level domain name and the second-level domain name are combined to obtain the domain name of the URL.
  • the method for extracting the top-level domain name and the second-level domain name is not limited, and may start from a character of the URL, compare the subsequent characters according to the top-level domain name stored in the database, and obtain the top-level domain name of the URL; and then start from the top-level domain name.
  • the pre-continuation characters are compared one by one according to the second-level domain name stored in the database, the second-level domain name of the URL is obtained, and so on, and finally the domain name of the URL is obtained.
  • the top-level domain names cn and com are extracted, and then google is extracted. It is detected that google.com.cn is the extracted domain name referred to here.
  • the domain name includes at least one second-level domain name corresponding to an application.
  • Taobao's domain name includes at least the second-level domain name taobao.
  • embodiments of the present invention are not limited to including top level domains, such as taobao.com.
  • the step 103 may specifically include: the terminal device starts the application client Sending, by the client, the URL to the application client, so that the application client requests the web server to obtain and display an application client page corresponding to the URL; or the terminal device uses the application
  • the identifier and/or icon of the client is presented to the user as one of the options for opening the resource to be accessed, and after the user selects the identifier and/or icon of the application client, the application client is started and The application client sends the URL, so that the application client requests the web server to obtain and display an application client page corresponding to the URL.
  • the manner in which the terminal device adopts the above depends on the mechanism adopted by the operating system in the terminal device.
  • the terminal device may further include: determining, by the terminal device, whether an application client corresponding to the domain name of the URL is installed; if not installed, the terminal device installs the application client, and And saving at least one domain name corresponding to the application client and an identifier and/or an icon of the application client.
  • the terminal device determines whether the application client corresponding to the domain name of the URL is installed, and the method includes: the terminal device matches the domain name corresponding to the URL with a locally stored application client list; if the matching succeeds, Determining that the terminal device has installed the application client; if the matching is unsuccessful, determining that the terminal device does not install the application client.
  • it is first determined whether the application client corresponding to the URL to be opened is installed in the terminal device, and when the installation is not installed, the user is prompted to install or not, thereby enhancing the user experience.
  • the terminal device may further include: the terminal device sends the domain name corresponding to the URL to the server, and the server feeds back whether the application client corresponding to the domain name exists If the terminal device installs the application client, the method includes: if the application client corresponding to the domain name exists, the terminal device installs the application client; if not, the terminal device passes the browser Open the URL.
  • the terminal device analyzes whether the website corresponding to the domain name has an application client according to the domain name of the URL obtained by the parsing, and the following methods are mainly used:
  • the terminal device performs matching according to the obtained domain name and the locally stored application client list.
  • the application client list is provided by the electronic market (Android, Apple, etc.), and records common domain names and application client information corresponding to these common domain names.
  • the terminal device can find the application client corresponding to the domain name of the URL in the application client list, the user is prompted to install; if the application client corresponding to the domain name of the URL is not found, the domain name of the URL is considered.
  • the corresponding application client does not exist, and the terminal device is straight.
  • the terminal device and the electronic market add a query mechanism to enable communication between the terminal device and the electronic market, and the terminal device sends the domain name to the electronic market, and the electronic market feeds back whether the application client corresponding to the domain name exists. If yes, the terminal device prompts the user to install; if not, the terminal device directly opens the URL according to an existing method, that is, through a browser.
  • Method 3 The terminal device adds a learning function. If the terminal device has installed the application client corresponding to the domain name, the operating system retains the application client information, that is, the application client information is not discarded when the application client is uninstalled. .
  • the terminal device detects that the application client corresponding to the domain name has been installed, the application client information retained before the call is invoked, prompting the user to install; if the application client has not been installed before, according to method 1 or method 2 The method is processed.
  • FIG. 2 is a schematic flowchart diagram of Embodiment 2 of a page operation processing method according to the present invention. This embodiment illustrates the page operation processing method provided by the present invention from the perspective of the application client. As shown in FIG. 2, the method in this embodiment includes:
  • Step 201 The application client receives the URL sent by the operating system.
  • the application client in the terminal device interacts with the operating system, and after the terminal device acquires the URL corresponding to the to-be-accessed resource, the operating system of the terminal device identifies the domain name of the URL, and triggers the application client corresponding to the domain name. End, that is, the application client receives the URL sent by the operating system.
  • one application can correspond to multiple domain names.
  • the URL contains the domain name taobao.com
  • the taobao.com corresponds to a Taobao application
  • the domain name corresponding to the Taobao application is not limited to taobao.com, but also taobao.com.cn
  • the terminal device obtains the URL of the Taobao website
  • the operating system identifies the domain name of the URL of the Taobao website as one of a plurality of domain names corresponding to the application pre-stored in the terminal device.
  • the operating system triggers the Taobao application
  • the Taobao application receives the URL of the Taobao website sent by the operating system.
  • Step 202 The application client acquires a content identifier included in the URL.
  • the application client is based on the self The mode of the body and the content identifier generate an access request.
  • the application client mode can be a local and network (Native+Web) mashup mode, for example, using Java technology to develop an application client, but the web mode adopted by the application client and the web server; the application client mode It can also be a native mode, for example, the application client is developed in Java, and the communication between the application client and the web server is also using Java instructions.
  • the content identifier when the mode of the application client is the mashup mode, the content identifier is a URL itself; when the mode of the application client is the local mode, the content identifier is a key information and a filter condition in the URL, There is no limitation in the examples.
  • Step 203 The application client sends an access request including the content identifier to a network server.
  • the access request is the URL itself, and the application client sends the URL to the network server; if the mode of the application client is the local mode, the access request An application request that matches the key information and the filter condition in the URL.
  • the application client performs mapping processing on the key information and the filter condition in the URL acquired in step 202, and generates the key information and the filter condition.
  • the application request is matched, and the application request is sent to the network server by using a Hypertext Transfer Protocol (HTTP GET) method, and the application corresponding to the key information and the filtering condition is requested to be acquired.
  • the key information in the URL refers to information such as an identity number (ID) information in the URL, such as the uniqueness of the page represented by the URL; the screening condition refers to a user evaluation associated with the ID. Subpages such as product details.
  • Step 204 The application client receives an application client page corresponding to the access request returned by the network server, and displays the page.
  • the application client page is different from the page opened by the browser in the prior art, and is a page that matches the display screen of the terminal device. Compared with the page opened by the browser, the application client page contains less pictures and a small amount of information, thereby saving the user's network traffic consumption.
  • the terminal device displays the URL corresponding to the resource to be acquired by the application client, and displays the application client page corresponding to the URL to the user, thereby reducing the network traffic consumption, and the application client page and the terminal device display
  • the screens are matched to reduce the user's button misoperation, which is convenient for the user to browse the page, thereby improving the user experience.
  • the content identifier included in the URL may include: the application client analyzing the URL, and acquiring key information and a screening condition in the URL.
  • the application client sending the access request including the content identifier to the network server comprising: the application client sending an application request that matches the key information and the screening condition in the URL to the network server.
  • the application client obtains the content identifier included in the URL and the application client sends an access request including the content identifier to the network server, and does not need to
  • the URL analyzes and generates an application request, but directly sends the URL to the web server, because in this mode, the communication between the application client and the web server adopts a web form.
  • FIG. 3 is a schematic flowchart diagram of Embodiment 3 of a page operation processing method according to the present invention.
  • This embodiment illustrates the page operation processing method provided by the present invention from the perspective of a network server. As shown in FIG. 3, the method in this embodiment includes:
  • Step 301 The network server receives an access request that is sent by the application client and includes the content identifier, where the content identifier is obtained by the application client from the URL.
  • the access request may be the URL itself.
  • the content identifier is also the URL itself; or may be an application request that matches key information and filtering conditions in the URL.
  • the content identifier is in the URL. Key information and screening criteria.
  • An application request usually contains an application key (App Key), business data, timestamp, and so on.
  • the App Key is a unique identifier when the application client invokes an Application Programming Interface (API), and the network server identifies the identity of the application client through the App Key.
  • API Application Programming Interface
  • Step 302 The network server determines, according to the access request, an application client page corresponding to the access request.
  • the network server after receiving the access request sent by the application client, the network server sends the application client page corresponding to the access request to the application client, to display the application client page by using the application client. .
  • the application client page is different from the page opened by the browser in the prior art, and is a page that matches the display screen of the terminal device. Compared with the page opened by the browser, the application client page contains less pictures and a small amount of information, thereby saving the user's network traffic consumption.
  • the terminal device in the embodiment of the present invention opens the URL corresponding to the to-be-accessed resource through the application client through the network server, thereby reducing network traffic consumption.
  • the application client page matches the display screen of the terminal device, which reduces user keyboard misoperation, and facilitates the user to browse the page, thereby improving the user experience.
  • the application client may adopt a mashup application mode, and the network server determines, according to the access request, an application client page corresponding to the access request, including the following two situations:
  • the network server determines, according to the URL, an application client page corresponding to the access request, if the URL is a URL corresponding to the application client page.
  • the network server performs mapping processing on the URL, and determines that the URL points to an application client page corresponding to the page.
  • the application client adopts a local application mode
  • the network server receives the access request that is sent by the application client and includes the content identifier, where the network server receives the application request sent by the application client,
  • the application request matches the key information and filter criteria in the URL.
  • the page operation processing method provided by the embodiment of the present invention is implemented by signaling interaction between the user, the terminal device (installing the application client), and the network server.
  • the application client is integrated in the terminal device, and the terminal device may be a smart phone, a tablet computer, or the like.
  • the terminal device may be a smart phone, a tablet computer, or the like.
  • This embodiment and the following embodiments are described by taking a smart phone as an example. This is a specific implementation in the scenario where the application client of the smart phone is installed. The user obtains the URL by clicking the web link.
  • the present embodiment and the following embodiments are not limited to smart phones.
  • the specific steps of this embodiment are as follows:
  • Step 401 Receive an operation instruction that the user clicks on the webpage link.
  • Step 402 Obtain a URL and parse the domain name of the URL.
  • the operating system of the smart phone may obtain the URL corresponding to the webpage link, and parse the domain name of the URL, and detect whether the smart phone has installed the application client corresponding to the domain name.
  • the operating system of the smartphone can recognize that the URL link contains the domain name taobao.com.
  • the application client registers the page processing capability with the operating system of the smart phone when the application client is installed on the smart phone.
  • the installation file of the application client carries the domain name that the application can open, and the application client installs.
  • the operating system obtains the file that the application client can open the domain name, that is, the application client sends the registration file containing the domain name information to the operating system to complete the registration page processing capability.
  • the smart phone stores at least one domain name corresponding to the application client and an identifier of the application client, so that the smart phone learns that the application client can open an application client corresponding to the domain name of the access address identifier URL.
  • the page processing capability wherein the page processing capability is that the application client can open a URL that includes a domain name corresponding to the application client. For example, when a Taobao app is installed on an Android system, it registers with the Android system its ability to open a URL containing the taobao.com domain name.
  • Step 403 Prompt to open the way.
  • the smartphone operating system adds the identity of the application client to the popup window for presentation to the user as one of the options to open the webpage link.
  • Step 404 Receive an operation instruction that the user selects to open the application client.
  • Step 403 and Step 404 are optional steps, and step 405 can be directly performed.
  • Step 405 Start the application client.
  • the smartphone operating system may send the URL to the application client, and the application client receives the URL sent by the smartphone operating system.
  • the smartphone operating system can trigger the application client in the following two ways: Method 1: After performing step 402, step 403 and step 404 are sequentially executed.
  • step 405 After performing step 402, step 405 is directly executed.
  • the Intent mechanism is a data structure that abstracts the operations that will be performed at a time, and is used to connect two different components while the program is running.
  • the application sends some kind of request information to the Android system through the Intent mechanism, and the Android system selects a component capable of processing the request message according to the content of the request information. For example: When you use the Android phone to make a call, when you press the dial-up button, an Intent object with the call button (CALL-BUTTON) behavior is sent to the Android system.
  • the Android system finds a telephone number dialing program capable of processing the request information from the AndroidManifest.xml file of the registered application according to the request information.
  • the Dialer sends an Intent request containing the mobile phone (ACTION_CALL) and phone number data to the Android system, and the Android system finds the appropriate application for processing.
  • An Intent that explicitly specifies the component name is an explicit Intent, and the Android system directly launches the target component specified by the component name to process the request.
  • implicit Intend For an Intent that does not explicitly specify a target component, it is called implicit Intend. Since the implicit Intent has no clear target, it must rely on the Android system to help the application find the appropriate target component to process the request.
  • the specific selection method for the parsing mechanism of such Intent messages is: By retrieving all the IntentFilter filters registered in the AndroidManifest.xml file for defining each component to process Intent messages, and comparing these filters with the contents of the Intent message. If the content of the implicit Intent request matches the filtering rules of the IntentFilter filter in a component, the Android system selects the component as the target component for handling implicit Intent messages.
  • the application client referred to is an application client adopting the Native+Web mode.
  • this mode for example, uses Java technology to develop an application client, but uses a Web mode for communication between the client and the web server.
  • Step 406 The application client sends an access request including a content identifier to the network server.
  • the application client communicates with the network server, and sends an access request, that is, a URL, including the content identifier to the network server.
  • Step 407 The network server analyzes the access request.
  • the network server After receiving the URL sent by the application client, the network server analyzes the URL:
  • the web server If the URL is a URL corresponding to the application client, the web server directly returns the application client page corresponding to the URL to the application client.
  • the network server If the URL is not a URL corresponding to the application client, for example, the URL is a URL corresponding to a personal computer (PC) or a URL corresponding to the mobile browser, the network server performs mapping processing on the URL. And returning the URL to the application client page corresponding to the page and returning to the application client.
  • PC personal computer
  • the pages presented by the PC, the mobile phone browser, and the application client are different for the same domain name.
  • the page of the same URL saved on the network server may be one set or two sets, and no limitation is imposed here.
  • the web server can automatically determine according to the type of the user terminal;
  • the save page is two sets, one set for the PC corresponding page, one set for the corresponding page of the mobile phone browser, and the web server side performs mapping of the URL according to the sender of the URL, according to the type of the sender, The sender matched page is returned to the sender.
  • CSS Cascading Style Sheet
  • Step 408 The network server sends the application client page to the application client.
  • Step 409 The application client displays the application client page to a user.
  • Embodiment 5 After the user clicks on a certain webpage link, the user analyzes the webpage link by using the signaling interaction between the client, the smart phone and the web server, and opens the link with the webpage through the application client.
  • the corresponding application client page realizes the reduction of network consumption traffic and user button misoperation, and further facilitates the user to browse the page and enhance the user experience.
  • a method for processing a page operation is implemented by using a signaling interaction between a user, an application client, a terminal device, and a network server.
  • the terminal device uses a smart phone as an example for description.
  • Another specific implementation in the scenario where the application client is installed on the smartphone, the specific steps are as follows:
  • Steps 501 to 505 are the same as steps 401 to 405 in the fourth embodiment, and are not described herein again.
  • Step 506 The application client receives the URL sent by the terminal device to generate an application request.
  • the reference application client adopts a local application mode, that is,
  • Native mode application client this mode refers to the development of application client using Java technology, and the communication between the application client and the web server adopts Java instructions.
  • hypertext transmission can be adopted between the application client and the web server.
  • the application client analyzes the received URL, extracts key information and filtering conditions in the URL, and generates an application request that matches the key information and the screening condition.
  • the key information refers to information in the URL, such as ID information and the like, representing the uniqueness of the page indicated by the URL;
  • the screening condition refers to being associated with the ID, such as user evaluation, commodity Sub-page information such as details, the screening condition and the key information jointly determine content included in the application client page, and the content may include information such as text and pictures.
  • Step 507 The application client sends an application request to the network server.
  • the application request refers to an application request generated in step 506 that matches key information and filtering conditions in the URL.
  • the application client performs mapping processing according to the key information and the screening condition in the URL obtained in step 506, and generates an application request that matches the key information and the screening condition.
  • the application request is a Java instruction, that is, the application client and the network server directly communicate by means of HTTP GET through Java instructions.
  • the application client sends the application request to the network server by using an HTTP GET method, and requests to obtain the key information in the URL and the application client page corresponding to the screening condition. Face.
  • Step 508 The network server sends the application client page to the application client.
  • the difference between the embodiment of the present invention and the fourth embodiment is that: in this embodiment, the network server does not need to The application request is an analysis mapping, and the application client page specified by the application request is directly returned to the application client. Because the application client in step 408 of the fourth embodiment communicates with the web server through the web, the URL is sent, and the URLs of the same page corresponding to the PC, the mobile browser, and the application client are different. , need to be analyzed.
  • the URLs corresponding to different methods are different.
  • the application request is used to communicate with the network server by using the Java instruction through the HTTP GET method, and the analysis request mapping of the application request is no longer required.
  • Step 509 The application client receives the application client page and displays it to the user.
  • the webpage link is analyzed and opened by the application client through the signaling interaction between the smartphone operating system and the installed application client and the web server.
  • the application client page corresponding to the webpage link reduces the network consumption traffic and the user's key operation error, and further facilitates the user to browse the page and enhance the user experience.
  • Step 601 is the same as step 401.
  • Step 602 The smartphone operating system obtains the URL corresponding to the webpage link and parses the domain name of the URL, and detects whether the smart phone has installed the application client corresponding to the domain name, if the smart phone does not install the application client corresponding to the domain name. End, then the smartphone analyzes the Whether the URL has a corresponding application client.
  • the smartphone matches the acquired domain name and the locally stored application client list.
  • the application client list is provided by the server (specifically, the server of the electronic market), and records the common domain name and the application client information corresponding to the common domain name.
  • step 603 If the smart phone can find the application client corresponding to the domain name of the URL in the application client list, execute step 603; if the application client corresponding to the domain name of the URL is not found, the domain name of the URL is considered The corresponding application client does not exist, and the smartphone can directly open the URL according to the existing method, that is, through a browser.
  • the smartphone and the electronic market add a query mechanism to enable communication between the smartphone and the electronic market.
  • the smart phone sends the domain name to the electronic market, and the electronic market responds to whether the application client corresponding to the domain name exists. If yes, execute step 603; if not, the smartphone can directly open the URL according to an existing method, that is, through a browser.
  • Mode 3 The smart phone adds learning function. If the smart phone has installed the application client corresponding to the domain name, the operating system retains the client information of the application, that is, the application client information is not discarded when the application client is uninstalled. .
  • step 603 is performed; if the application client has not been installed before, according to the mode 1 or mode 2 The method is processed.
  • the foregoing method may further include:
  • Step 603 The smartphone operating system prompts the user whether the application client needs to be installed. Specifically, if the user chooses to install the application client, the smart phone communicates with the network server, and the installation program of the application client is downloaded from the network server, and the installation is performed on the smart phone after the download is completed, and saved. At least one domain name corresponding to the application client and an identifier and/or an icon of the application client. After the installation is complete, the operating system directly invokes the application client to open the URL. For subsequent operations, refer to steps 403 to 409 in the fourth embodiment, and steps 503 to 509 in the fifth embodiment, where No longer.
  • an option such as "no longer prompted to install” may be set. If the user chooses not to install the application client, the user operates according to the method in the prior art, and the webpage link is opened through the browser on the smartphone. If If the user chooses not to install the application client, but does not check such options as "no longer prompted to install", the smartphone continues to prompt the user whether to install the URL when the next user clicks on the URL containing the domain name of the website.
  • Application client option if the user chooses not to install the application client, and selects such options as "no longer prompted to install" the smartphone opens the URL using a browser according to the prior art method. For the next time the user clicks again to open the URL containing the domain name of the website, the browser opens the URL by default, and the user is no longer prompted to install the application client.
  • the user when the application client corresponding to the webpage link is not installed on the smart phone, the user is allowed to freely select whether to install the application client, and the user can decide whether to use the browser or the application client to open the webpage more autonomously. Links that increase the user's choice.
  • the processing method after the corresponding application client page is not found on the network server may specifically include:
  • the web server After the web server receives the URL sent by the application client, after analyzing the URL, it is found that the web server does not have an application client page corresponding to the URL, but the web server saves the The page corresponding to the PC corresponding to the URL or the page corresponding to the browser corresponding to the URL. At this time, the web server returns to the client that the application client page corresponding to the URL cannot be found.
  • the application client After receiving the response from the web server that cannot be found by the web server to find the application client page corresponding to the URL, the application client notifies the smartphone to open the URL using the default browser. Further, the smartphone calls the default browser to open the URL.
  • the web server analyzes the URL, it is found that the web server does not have an application client page corresponding to the URL, and the web server does not have a page corresponding to the PC corresponding to the URL and the URL.
  • the page corresponding to the corresponding browser that is, the page corresponding to the URL does not exist
  • the network server returns an error response to the application client, and the application client The user is prompted that the page does not exist.
  • the application client that adopts the Native mode is the application client corresponding to the fifth embodiment of the present invention.
  • the difference between this embodiment and the above embodiment in this case is:
  • the network server After receiving the application request sent by the application client, the network server cannot find the application client page corresponding to the application request on the server on the network, and returns an error response to the application client. After receiving the error response returned by the web server, the application client notifies the smartphone to open the URL using the default browser.
  • the page information corresponding to the webpage link is not returned to the web server to notify the user of the processing after clicking the webpage link, so that the user can open the webpage link by other means, improve the link processing efficiency, and enhance the user.
  • the page information corresponding to the webpage link is not returned to the web server to notify the user of the processing after clicking the webpage link, so that the user can open the webpage link by other means, improve the link processing efficiency, and enhance the user.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a page operation processing apparatus according to the present invention.
  • the page operation processing apparatus of the embodiment of the present invention can be integrated in the terminal.
  • the page operation processing apparatus of this embodiment includes an acquisition module 701, a detection module 702, and a processing module 703.
  • the obtaining module 701 is configured to detect a URL corresponding to the to-be-accessed resource; the detecting module 702 is configured to detect whether the stored domain name includes a domain name corresponding to the URL, and the processing module 703 is configured to: if the detecting module 702 detects the stored The domain name corresponding to the URL is included in the domain name, and the application client corresponding to the domain name of the URL is triggered to obtain and display an application client page corresponding to the URL.
  • the page operation processing device of this embodiment may be used to perform the technical solution of any of the above-mentioned page operation processing method embodiments, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • the obtaining module 701 may specifically obtain a URL corresponding to the to-be-accessed resource input by the user; or the acquiring module 701 may obtain the URL corresponding to the to-be-accessed resource by scanning the two-dimensional code; the obtaining module 701 specifically uses near-field communication. Another device acquires a URL corresponding to the to-be-accessed resource.
  • the detecting module 702 compares the domain name information stored in the database with the character-by-character in the URL, and extracts the second-level domain name in the URL to obtain the domain name of the URL; or, according to the URL
  • the separator in the URL extracts the second-level domain name in the URL to obtain the domain name of the URL; and, determines whether it stores the domain name itself.
  • the application client that triggers the domain name corresponding to the URL acquires and displays the The application client page corresponding to the URL includes: starting the application client, and sending the URL to the application client, so that the application client requests the web server to obtain an application client corresponding to the URL And displaying, by the processing module 703, the identifier and/or the icon of the application client is presented to the user as one of the options for opening the to-be-accessed resource, and the user selects the After the identifier and/or icon of the client is applied, the application client is started and sent to the application client, so that the application client requests the web server to obtain an application client page corresponding to the URL. And display.
  • the apparatus may further include: a judging module 801.
  • the determining module 801 is configured to determine whether an application client corresponding to the domain name of the URL is installed.
  • the processing module 703 is further configured to: if the application client is not installed, install the application client, and save the Applying at least one domain name corresponding to the client and an identifier and/or icon of the application client.
  • the determining module 801 is specifically configured to match the domain name corresponding to the URL with the locally stored application client list; if the matching is successful, it is determined that the application client is installed; if the matching is unsuccessful, the determining is not Install the application client.
  • processing module 703 is further configured to send the domain name corresponding to the URL to the server, where the server feeds back whether the application client corresponding to the domain name exists; and the terminal device installs the application client. Specifically, if the application client corresponding to the domain name exists, the application client is installed.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a terminal according to the present invention. As shown in FIG. 9, the terminal includes: a memory 91 and a processor 92, where:
  • the memory 91 is configured to store a domain name corresponding to the application client installed in the terminal; the processor 92 is configured to obtain a URL corresponding to the resource to be accessed; and detecting whether the domain name stored in the memory 91 includes the URL corresponding to the URL If the domain name includes the domain name corresponding to the URL, the application client corresponding to the domain name of the URL is triggered to obtain and display the application client page corresponding to the URL.
  • the terminal opens the to-be-accessed resource, such as a webpage link, through the application client, and displays an application client page on the terminal device side, where the application client page is different from the page that is normally opened by the browser, and the image thereof is included.
  • the amount of information such as text is compared to playing through a browser.
  • the font of the application client page is larger than the page opened by the browser, thereby reducing misoperation and improving the user experience.
  • the terminal may further include: an input device 93, or a near field communication receiver 94, or any combination of image acquisition devices 95.
  • the input device 93 is configured to receive a URL corresponding to the resource to be accessed by the user and send it to the processor 92;
  • the near field communication receiver 94 is configured to receive the URL corresponding to the resource to be accessed through the near field communication and send it to the processor 92;
  • the image acquisition device 95 is configured to acquire the two-dimensional code image and send it to the processor 92.
  • the processor 92 is further configured to parse the two-dimensional code image to obtain a URL corresponding to the resource to be accessed.
  • the input device 93 can be a keyboard, a touch screen, a body recognition device, or any other device that can be used to input commands to the terminal.
  • Near field communication includes short-distance communication systems such as radio frequency identification (RFID), Bluetooth, and ZigBee.
  • RFID radio frequency identification
  • the image acquisition device 95 may be a device for acquiring an image such as a camera, a scanner, or the like.
  • the detecting, by the foregoing, the domain name corresponding to the URL may include: extracting, according to the domain name information stored in the database, a character-by-character comparison with the URL, and extracting the second-level domain name in the URL Or obtaining a domain name of the URL; or, extracting a second-level domain name in the URL according to a separator in the URL, obtaining a domain name of the URL; and determining whether the domain name is stored by itself; the domain name is at least Including the second-level domain name.
  • the application client that triggers the domain name corresponding to the URL to obtain and display the application client page corresponding to the URL includes: starting the application client, and sending the application to the application client a URL, so that the application client requests the web server to obtain an application client page corresponding to the URL and displays it; or, the identifier and/or icon of the application client is used as an option to open the to-be-accessed resource.
  • Presenting to the user, and after the user selects the identifier and/or icon of the application client launching the application client and sending the URL to the application client, so that the application client The end requests the web server to obtain an application client page corresponding to the URL and displays it.
  • the processor 92 is further configured to determine whether an application client corresponding to the domain name of the URL is installed; if not, install the application client, and save at least one domain name corresponding to the application client. And an identification and/or icon of the application client.
  • determining whether the application client corresponding to the domain name of the URL is installed including: matching the domain name corresponding to the URL with a locally stored application client list; if the matching is successful, determining that the terminal device has been Install the application client; if the match is unsuccessful, determine The terminal device does not install the application client.
  • the processor 92 is further configured to send the domain name corresponding to the URL to the server, where the server feeds back whether the application client corresponding to the domain name exists; and the terminal device installs the application client.
  • the server feeds back whether the application client corresponding to the domain name exists; and the terminal device installs the application client.
  • the application client If the application client corresponding to the domain name exists, the application client is installed.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit or module is only a logical function division.
  • there may be another division manner for example, multiple units or modules may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be in electrical, mechanical or other form.
  • the modules described as separate components may or may not be physically separate.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供一种页面操作处理方法、装置及终端,该方法包括:终端设备获取待访问资源对应的统一资源定位符URL;所述终端设备检测所存储的域名中是否包含与所述URL对应的域名;若包含,则所述终端设备触发与所述URL的域名对应的应用客户端获取并显示所述URL对应的应用客户端页面。本发明实施例提供的页面操作处理方法、装置及终端能够减少网络流量消耗,便于用户操作和浏览页面,提升用户体验。

Description

页面操作处理方法、 装置及终端
技术领域 本发明实施例涉及通信技术, 尤其涉及一种页面操作处理方法、 装置及 终端。 背景技术
随着终端设备上各种应用的不断发展, 人们逐渐习惯通过终端设备进行 即时消息沟通、 上网、 购物等功能操作。
现有技术中, 当用户在终端设备上点击某个网页链接时, 终端设备可以 识别出用户点击的内容为统一资源定位符 (Uniform Resource Locator, 简称
URL) , 然后, 终端设备可以呈现一个包含终端设备上已安装的全部浏览器 的弹窗给用户, 用户即可在终端设备所呈现的弹窗中选择一个浏览器打开该 网页链接。
但是, 通过浏览器打开网页链接, 容易导致网络流量消耗较大。 而且, 终端设备的显示屏相对普通计算机来说较小, 采用浏览器来显示页面将导致 显示的内容较小, 不便于用户操作和浏览。 发明内容
本发明实施例提供一种页面操作处理方法、 装置及终端, 以解决现有技 术中终端设备通过浏览器打开网页链接所造成的网络流量消耗较大以及采用 浏览器来显示页面所导致的显示的内容较小,不便于用户操作和浏览的问题, 提升用户体验。
第一方面, 本发明实施例提供一种页面操作处理方法, 包括:
终端设备获取待访问资源对应的统一资源定位符 URL;
所述终端设备检测所存储的域名中是否包含与所述 URL对应的域名; 若包含, 则所述终端设备触发与所述 URL的域名对应的应用客户端获取 并显示所述 URL对应的应用客户端页面。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述终端设备 获取待访问资源对应的 URL, 包括:
所述终端设备获取用户输入的待访问资源对应的 URL; 或者,
所述终端设备通过扫描二维码获取所述待访问资源对应的 URL; 或者, 所述终端设备通过近场通信从另一设备获取所述待访问资源对应的 结合第一方面, 在第一方面的第二种可能的实现方式中, 所述终端设 备检测所存储的域名中是否包含与所述 URL对应的域名, 包括:
所述终端设备根据数据库中存储的域名信息,与所述 URL中逐个字符比 对, 提取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 根据所述 URL中的分隔符提取所述 URL中的二级域名, 得到所述 URL的域名;
所述终端设备判断其自身是否存储所述域名;
所述域名至少包括所述二级域名。
结合第一方面, 在第一方面的第三种可能的实现方式中, 所述终端设备 触发与所述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客 户端页面, 包括:
所述终端设备启动所述应用客户端,并向所述应用客户端发送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页 面并显示; 或者,
所述终端设备将所述应用客户端的标识和 /或图标作为可打开所述待访 问资源的选项之一呈现给所述用户, 并在用户选择所述应用客户端的标识和 / 或图标之后, 启动所述应用客户端并向所述应用客户端发送所述 URL, 以使 所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并 显不。
结合第一方面、 第一方面的第一种至第一方面的第三种任一种可能的实 现方式, 在第一方面的第四种可能的实现方式中, 所述终端设备触发与所述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面之 前, 还包括:
所述终端设备判断是否已安装所述 URL的域名对应的应用客户端; 若未安装, 则所述终端设备安装所述应用客户端, 并保存所述应用客户 端对应的至少一个域名以及所述应用客户端的标识和 /或图标。 结合第一方面的第四种可能的实现方式, 在第一方面的第五种可能的实 现方式中, 所述终端设备判断是否安装所述 URL的域名对应的应用客户端, 包括:
所述终端设备将所述 URL对应的域名与本地存储的应用客户端列表进行 匹配; 若匹配成功, 则确定所述终端设备已安装所述应用客户端; 若匹配不 成功, 则确定所述终端设备未安装所述应用客户端。
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实 现方式中, 所述终端设备安装所述应用客户端之前, 还包括:
所述终端设备将所述 URL对应的域名发送给服务器, 由所述服务器反馈 是否存在所述域名对应的应用客户端;
所述终端设备安装所述应用客户端, 具体包括:
若存在所述域名对应的应用客户端, 则所述终端设备安装所述应用客户 第二方面, 本发明实施例提供一种页面操作处理装置, 包括:
获取模块, 用于获取待访问资源对应的统一资源定位符 URL;
检测模块, 用于检测所存储的域名中是否包含与所述 URL对应的域名; 处理模块, 用于若检测模块检测到所存储的域名中包含与所述 URL对应 的域名, 则触发与所述 URL的域名对应的应用客户端获取并显示所述 URL对 应的应用客户端页面。
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述获取模块 具体用于:
获取用户输入的待访问资源对应的 URL; 或者,
通过扫描二维码获取所述待访问资源对应的 URL; 或者,
通过近场通信从另一设备获取所述待访问资源对应的 URL。
结合第二方面, 在第二方面的第二种可能的实现方式中, 所述检测模块 具体用于:
根据数据库中存储的域名信息, 与所述 URL中逐个字符比对, 提取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 根据所述 URL中的分隔符 提取所述 URL中的二级域名, 得到所述 URL的域名; 及, 判断其自身是否存 储所述域名; 所述域名至少包括所述二级域名。 结合第二方面, 在第二方面的第三种可能的实现方式中, 所述触发与所 述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面, 包括:
启动所述应用客户端, 并向所述应用客户端发送所述 URL, 以使所述应 用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者,
所述第一发送模块具体用于将所述应用客户端的标识和 /或图标作为可 打开所述待访问资源的选项之一呈现给所述用户, 并在所述用户选择所述应 用客户端的标识和 /或图标之后, 启动所述应用客户端并向所述应用客户端发 送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的 应用客户端页面并显示。
结合第二方面、 第二方面的第一种至第三方面的第三种任一种可能的实 现方式, 在第三方面的第四种可能的实现方式中, 还包括:
判断模块, 用于判断是否已安装所述 URL的域名对应的应用客户端; 贝 lj, 所述处理模块还用于若未安装所述应用客户端, 则安装所述应用客 户端, 并保存所述应用客户端对应的至少一个域名以及所述应用客户端的标 识和 /或图标。
结合第二方面的第四种可能的实现方式, 在第二方面的第五种可能的实 现方式中, 所述判断模块具体用于将所述 URL对应的域名与本地存储的应用 客户端列表进行匹配; 若匹配成功, 则确定已安装所述应用客户端; 若匹配 不成功, 则确定未安装所述应用客户端。
结合第二方面的第五种可能的实现方式, 在第二方面的第六种可能的 实现方式中, 所述处理模块还用于:
将所述 URL对应的域名发送给服务器, 由所述服务器反馈是否存在所述 域名对应的应用客户端; 所述终端设备安装所述应用客户端, 具体包括: 若 存在所述域名对应的应用客户端, 则安装所述应用客户端。
第三方面, 本发明实施例提供一种终端, 包括:
存储器, 用于存储所述终端中已安装的应用客户端对应的域名; 处理器, 用于获取待访问资源对应的统一资源定位符 URL; 及, 检测所 存储的域名中是否包含与所述 URL对应的域名;若检测到所存储的域名中包 含与所述 URL对应的域名, 则触发与所述 URL的域名对应的应用客户端获 取并显示所述 URL对应的应用客户端页面。
结合第三方面, 在第三方面的第一种可能的实现方式中, 还包括: 输入设备,用于接收用户输入的待访问资源对应的 URL并发送给所述处 理器; 或者,
近场通信接收器,用于通过近场通信接收所述待访问资源对应的 URL并 发送给所述处理器。
结合第三方面或第三方面的第一种可能的实现方式, 在第三方面的第 二种可能的实现方式中, 还包括:
图像获取设备, 用于获取二维码图像, 并发送给所述处理器;
所述处理器还用于对所述二维码图像进行解析,待访问资源对应的 URL。 结合第三方面, 在第三方面的第三种可能的实现方式中, 检测所存储 的域名中是否包含与所述 URL对应的域名, 具体包括:
根据数据库中存储的域名信息, 与所述 URL中逐个字符比对, 提取所述 URL中的二级域名, 得到所述 URL的域名, 或者, 根据所述 URL中的分隔 符提取所述 URL中的二级域名, 得到所述 URL的域名;
判断其自身是否存储所述域名;
所述域名至少包括所述二级域名。
结合第三方面, 在第三方面的第四种可能的实现方式中, 所述触发与 所述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客户端 页面, 包括:
启动所述应用客户端, 并向所述应用客户端发送所述 URL, 以使所述应 用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者,
将所述应用客户端的标识和 /或图标作为可打开所述待访问资源的选项 之一呈现给所述用户, 并在所述用户选择所述应用客户端的标识和 /或图标之 后, 启动所述应用客户端并向所述应用客户端发送所述 URL, 以使所述应用 客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示。
结合第三方面、 第三方面的第一种至第三方面的第四种任一种可能的 实现方式, 在第三方面的第五种可能的实现方式中, 所述处理器还用于判 断是否已安装所述 URL的域名对应的应用客户端; 若未安装, 则安装所述应 用客户端, 并保存所述应用客户端对应的至少一个域名以及所述应用客户端 的标识和 /或图标。
结合第三方面的第五种可能的实现方式, 在第三方面的第六种可能的 实现方式中, 所述判断是否已安装所述 URL 的域名对应的应用客户端, 包 括: 将所述 URL 对应的域名与本地存储的应用客户端列表进行匹配; 若 匹配成功, 则确定所述终端设备已安装所述应用客户端; 若匹配不成功, 则 确定所述终端设备未安装所述应用客户端。
结合第三方面的第六种可能的实现方式, 在第三方面的第七种可能的 实现方式中, 所述处理器还用于将所述 URL对应的域名发送给服务器, 由 所述服务器反馈是否存在所述域名对应的应用客户端; 所述终端设备安装 所述应用客户端, 具体包括: 若存在所述域名对应的应用客户端, 则安装 所述应用客户端。
本发明实施例提供一种页面操作处理方法、 装置及终端, 该方法通过应 用客户端打开待访问资源, 例如网页链接, 并且在终端设备侧显示应用客户 端页面, 减小了网络流量消耗, 便于用户操作和浏览页面, 提升用户体验。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明页面操作处理方法实施例一的流程示意图;
图 2为本发明页面操作处理方法实施例二的流程示意图;
图 3为本发明页面操作处理方法实施例三的流程示意图;
图 4为本发明页面操作处理方法实施例四的信令图;
图 5为本发明页面操作处理方法实施例五的信令图;
图 6为本发明页面操作处理方法实施例六的信令图;
图 7为本发明页面操作处理装置实施例一的结构示意图;
图 8为本发明页面操作处理装置实施例二的结构示意图; 图 9为本发明终端实施例一的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一
图 1为本发明页面操作处理方法实施例一的流程示意图。 本发明实施例 提供了一种页面操作处理方法, 该方法可以由任意执行页面操作处理方法的 页面操作处理装置来执行,该装置可以通过软件和 /或硬件实现。本实施例中, 该页面操作处理装置可以通过集成在终端设备中。 如图 1所示, 本实施例的 方法包括:
歩骤 101 : 终端设备获取待访问资源对应的 URL。
具体地, 所述待访问资源可以有多种形式, 例如可以是网页链接, 也可 以是图像链接, E-mail链接等。 目前, 用户之间可以通过很多种方式分享网 页,例如用户可以通过 QQ、微信、微软网络服务(Microsoft Service Network, 简称 MSN) 等即时通信软件分享网页; 可以通过短信、 彩信等信息类方式, 以及新浪、 人人网、 网络日志 (Web log, 简称 Blog) 等社交平台分享网页; 还可以通过扫描二维码, 例如使用手机扫描二维码, 以及近距离无线通信 (Near Field Communication, 简称 NFC ) 方式, 例如, 手机之间接触, 获 取网页链接。
接收网页链接的用户可以通过点击所述网页链接实现对所述网页的访 问, 即用户在终端设备上点击所述网页链接时, 所述终端设备获取所述网页 链接对应的 URL;通过扫描二维码或 NFC方式获取网页链接后, 终端设备 自动获取该网页链接对应的 URL, 这种场景不需要在终端设备获取网页链 接后, 用户再通过点击所述网页链接即可实现对所述网页的访问。
歩骤 102: 所述终端设备检测所存储的域名中是否包含与所述 URL对应 的域名。
具体地, 现有技术中, 终端设备的操作系统, 例如安卓(Android)系统、 苹果研发的操作系统 (IOS ) 等还不能对 URL的域名进行识别, 因此, 在本 发明实施例中对系统的现有机制进行扩展,例如对 Android系统的 Intent机制 进行扩展, 使 Android系统能够识别 URL的域名。 例如, 对于一个淘宝网站 的 URL, 系统扩展后能够识别该 URL包含的域名 taobao.com。
在终端设备获取所述 URL后, 分析所述 URL的域名, 并根据分析结果 判断所述终端设备中是否安装有与所述 URL的域名对应的应用(Application, 简称 APP)客户端, 即判断所述 URL的域名是否包含在该终端设备所存储的 域名中。进一歩地, 根据判断结果进行后续处理。 若所述 URL的域名包含在 该终端设备所存储的域名中, 执行歩骤 103; 若所述 URL的域名没有包含在 该终端设备所存储的域名中, 则按照现有技术通过所述终端设备已安装的浏 览器打开所述 URL, 或提示用户是否需要安装所述应用客户端, 本实施例在 此不作特别限制。
歩骤 103: 若包含, 则所述终端设备触发与所述 URL的域名对应的应用 客户端获取并显示所述 URL对应的应用客户端页面。
具体地, 用户获取待访问资源对应的 URL, 且所述用户使用的终端设备 中已安装与所述 URL对应的应用客户端, 两个条件同时满足, 终端设备向其 内部所安装的所述应用客户端发送所述 URL, 通过所述应用客户端与网络服 务器交互通信, 获取所述 URL的域名对应的应用客户端页面, 并将所述应用 客户端页面通过该终端设备显示给用户。 其中, 所述应用客户端页面是与所 述终端设备显示屏相匹配的页面,相对于现有技术中通过浏览器打开的页面, 所述应用客户端页面包含的内容较少, 例如字体、 图片等信息相对较大。
本发明实施例通过终端设备分析待访问资源对应的 URL的域名,触发与 所述 URL的域名对应的应用客户端获取与所述 URL对应的应用客户端页面 显示给用户, 实现了网络流量消耗的减少, 所述应用客户端页面与终端设备 显示屏相匹配, 减少用户按键误操作, 便于用户浏览页面, 从而提升用户体 验。
在上述基础上, 歩骤 101具体可以包括: 所述终端设备获取用户输入的 待访问资源对应的 URL; 或者, 所述终端设备通过扫描二维码获取所述待访 问资源对应的 URL; 或者, 所述终端设备通过近场通信从另一设备获取所 述待访问资源对应的 URL。 即待访问资源可以是用户输入的, 例如用户点击 网页链接或手动输入网址, 还可以是通过扫描二维码或终端设备之间相互接 触的方式获取其对应的 URL, 本发明实施例不以此为限, 从而增加本发明的 应用场景。
在上述基础上, 歩骤 102具体可以包括: 所述终端设备根据数据库中存 储的域名信息, 与所述 URL中逐个字符比对, 提取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 所述终端设备根据所述 URL中的分隔符提取 所述 URL中二级域名, 得到所述 URL的域名; 及, 所述终端设备判断其自 身是否存储所述域名。 所述域名至少包括所述二级域名。
网页域名, 一般是按照域名命名规则进行命名, SP : 域名可分为不同 级别, 包括顶级域名和二级域名等, 其中, 顶级域名包括国家代码和国际 域名, 国家代码, 例如, 中国的域名为 .cn, 日本的域名为 .jp, 等等; 国际 域名, 例如, 工商企业的域名为. com, 非盈利组织的域名为 .org, 等等; 二级域名是指顶级域名之下的域名, 在国际顶级域名下, 它是指域名注册 人的网上名称, 例如 ibm, yahoo , microsoft等; 在国家顶级域名下, 它 是表示注册企业类别的符号, 例如 com, edu, gov, net等。
根据域名的命名规则, 可以编写程序提取域名, 例如, 对于获取的 URL, 可以首先提取该 URL 的顶级域名, 再提取二级域名, 然后组合该 顶级域名和二级域名, 得到该 URL 的域名。 其中, 提取顶级域名和二级 域名的方法不限, 可以从该 URL 的某一字符开始, 根据数据库中存储的 顶级域名逐个比对后续字符, 得到该 URL 的顶级域名; 然后从该顶级域 名首字符的左侧开始, 根据数据库中存储的二级域名逐个比对前续字符, 得到该 URL的二级域名, 以此类推, 最终得到该 URL的域名。 或者, 也 可以直接将该 URL按特殊字符 (通常是 " . " ) 分成若干部分, 再提取出 顶级域名和二级域名, 等等。 又例如 www.google.com.cn/XXXXXX 中, 根据 " . " 的分隔先后提取到顶级域名 cn和 com, 再提取 google, 检测到 google.com.cn即为这里所指的提取的域名。
需要说明的是, 在本发明任意实施例中所说的域名至少包括一应用对应 的二级域名。 例如, 淘宝的域名至少包括二级域名 taobao。 当然, 本发明的 各实施例也不限制再包括顶级域名, 例如 taobao.com。
在上述基础上, 歩骤 103具体可以包括: 所述终端设备启动所述应用客 户端, 并向所述应用客户端发送所述 URL, 以使所述应用客户端向网络服务 器请求获取与所述 URL对应的应用客户端页面并显示; 或者, 所述终端设备 将所述应用客户端的标识和 /或图标作为可打开所述待访问资源的选项之一 呈现给所述用户, 并在用户选择所述应用客户端的标识和 /或图标之后, 启动 所述应用客户端并向所述应用客户端发送所述 URL, 以使所述应用客户端向 网络服务器请求获取与所述 URL对应的应用客户端页面并显示。在本实施例 中, 终端设备采用上述哪一种方式取决于终端设备中操作系统采用的机制。
在上述基础上, 歩骤 103之前, 还可以包括: 所述终端设备判断是否已 安装所述 URL的域名对应的应用客户端; 若未安装, 则所述终端设备安装所 述应用客户端, 并保存所述应用客户端对应的至少一个域名以及所述应用客 户端的标识和 /或图标。 其中, 所述终端设备判断是否已安装所述 URL 的域 名对应的应用客户端, 包括: 所述终端设备将所述 URL对应的域名与本地 存储的应用客户端列表进行匹配; 若匹配成功, 则确定所述终端设备已安 装所述应用客户端; 若匹配不成功, 则确定所述终端设备未安装所述应用客 户端。在本实施例中, 首先判断终端设备中是否安装将要打开的 URL所对应 的应用客户端, 并在没有安装的情况下给予提示, 让用户自主选择是否进行 安装, 增强了用户体验。
进一歩地, 所述终端设备安装所述应用客户端之前, 还可以包括: 所述 终端设备将所述 URL对应的域名发送给服务器,由所述服务器反馈是否存 在所述域名对应的应用客户端;所述终端设备安装所述应用客户端,具体包 括: 若存在所述域名对应的应用客户端, 则所述终端设备安装所述应用客 户端; 若不存在, 则所述终端设备通过浏览器打开所述 URL。
其中, 终端设备根据解析获取的所述 URL 的域名, 分析该域名对应 的网站是否有应用客户端, 主要有以下几种方法:
方法 1、 终端设备根据获取的域名和本地存储的应用客户端列表进行 匹配。 该应用客户端列表由电子市场 (安卓、 苹果等) 提供, 记录了常用 域名和这些常用域名对应的应用客户端信息。
若终端设备在应用客户端列表中能查找到该 URL 的域名所对应的应 用客户端, 则提示用户进行安装; 若查找不到该 URL 的域名所对应的应 用客户端, 则认为该 URL 的域名对应的应用客户端不存在, 终端设备直 接按照现有方法, 即通过浏览器打开该 URL。
方法 2、 终端设备和电子市场增加一个查询机制, 使得终端设备和电 子市场之间能够进行通信, 终端设备将域名发送给电子市场, 电子市场反 馈该域名所对应的应用客户端是否存在。 若存在, 则终端设备提示用户进 行安装; 若不存在, 则终端设备直接按照现有方法, 即通过浏览器打开该 URL。
方法 3、 终端设备增加学习功能, 若终端设备曾安装过该域名对应的 应用客户端, 则操作系统会保留该应用客户端信息, 即该应用客户端信息 不会随应用客户端卸载而被丢弃。
若终端设备检测到该域名对应的应用客户端曾安装过, 则调用之前保 留的该应用客户端信息, 提示用户进行安装; 若该应用客户端之前未安装 过, 则按照方法 1或方法 2中的方法进行处理。
实施例二
图 2为本发明页面操作处理方法实施例二的流程示意图。 该实施例从应 用客户端的角度说明本发明提供的页面操作处理方法。 如图 2所示, 本实施 例的方法包括:
歩骤 201 : 应用客户端接收操作系统发送的 URL。
具体地, 终端设备中的应用客户端与操作系统交互, 在终端设备获取待 访问资源对应的 URL后, 所述终端设备的操作系统识别所述 URL的域名, 并触发所述域名对应的应用客户端, 即所述应用客户端接收所述操作系统发 送的 URL。
需要说明的是, 一个应用可以对应多个域名。 例如, 对于一个淘宝网站 的 URL, 该 URL包含的域名为 taobao.com, 所述 taobao.com对应一个淘宝 应用, 但该淘宝应用对应的域名不限于 taobao.com, 还可以是 taobao.com.cn, taobao.com.uk等, 则终端设备获取所述淘宝网站的 URL, 其操作系统识别到 所述淘宝网站的 URL 的域名为终端设备中预先存储的该应用所对应的多个 域名中的其中一个, 例如 taobao.com, 则该操作系统触发所述淘宝应用, 该 淘宝应用接收所述操作系统发送的所述淘宝网站的 URL。
歩骤 202: 所述应用客户端获取所述 URL中包含的内容标识。
具体地, 在应用客户端接收到所述 URL之后, 所述应用客户端根据其自 身的模式和所述内容标识生成访问请求。 例如, 应用客户端的模式可以是本 地和网络(Native+Web)的混搭模式, 例如, 采用 Java技术开发应用客户端, 但是应用客户端和网络服务器之间的通信采用的 Web模式; 应用客户端的模 式还可以是本地 (Native) 模式, 例如应用客户端是用 Java开发, 且应用客 户端与网络服务器之间的通信是也采用 Java指令。 其中, 当应用客户端的模 式是所述混搭模式时, 所述内容标识是 URL自身; 当应用客户端的模式是所 述本地模式时, 所述内容标识是 URL中的关键信息和筛选条件, 在本实施例 中不加以限制。
歩骤 203 : 所述应用客户端向网络服务器发送包含所述内容标识的访问 请求。
具体地, 若应用客户端的模式是所述混搭模式, 则所述访问请求即 URL 自身, 应用客户端向网络服务器发送所述 URL; 若应用客户端的模式是所述 本地模式,则所述访问请求是与 URL中的关键信息和筛选条件相匹配的应用 请求, 此时, 应用客户端对歩骤 202获取到的 URL中的关键信息和筛选条件 做映射处理,生成与所述关键信息和筛选条件相匹配的应用请求,并通过 Java 指令用超文本传输协议获取 (Hyper Text Transfer Protocol Get,简称 HTTP GET) 的方式向网络服务器发送所述应用请求, 请求获取所述关键信息和筛选条件 对应的应用客户端页面。 其中, 所述 URL中的关键信息是指 URL中诸如身 份标识号码 (Identity, 简称 ID) 信息等代表 URL所指页面唯一性的信息; 所述筛选条件是指和该 ID相关联的诸如用户评价和商品详情等子页面。
歩骤 204: 所述应用客户端接收所述网络服务器返回的与所述访问请求 对应的应用客户端页面, 并显示。
具体地,所述应用客户端页面不同于现有技术中通过浏览器打开的页面, 是与终端设备显示屏相匹配的页面。 相对于通过浏览器打开的页面, 所述应 用客户端页面包含的图片少、 信息量小, 从而节省用户的网络流量消耗。
本发明实施例终端设备通过应用客户端打开待获取资源对应的 URL, 将 所述 URL对应的应用客户端页面显示给用户, 实现了网络流量消耗的减少, 所述应用客户端页面与终端设备显示屏相匹配, 减少用户按键误操作, 便于 用户浏览页面, 从而提升用户体验。
在上述基础上, 若应用客户端采用本地应用模式, 则所述应用客户端获 取所述 URL中包含的内容标识, 可以包括: 所述应用客户端分析所述 URL, 获取所述 URL中的关键信息和筛选条件。
进一歩地, 所述应用客户端向网络服务器发送包含所述内容标识的访问 请求, 包括: 所述应用客户端向网络服务器发送与所述 URL中关键信息和筛 选条件相匹配的应用请求。
若应用客户端采用混搭应用模式,则所述应用客户端获取所述 URL中包 含的内容标识和所述应用客户端向网络服务器发送包含所述内容标识的访问 请求两个歩骤中, 无需对所述 URL进行分析和生成应用请求, 而是直接将所 述 URL发送给所述网络服务器, 因为该种模式下, 应用客户端与网络服务器 之间的通信采用 Web形式。
实施例三
图 3为本发明页面操作处理方法实施例三的流程示意图。 该实施例从网 络服务器的角度说明本发明提供的页面操作处理方法。 如图 3所示, 本实施 例的方法包括:
歩骤 301 : 网络服务器接收应用客户端发送的包含内容标识的访问请求, 所述内容标识由所述应用客户端从 URL中获取。
具体地, 所述访问请求可以是 URL自身, 此时, 内容标识也是 URL 自 身; 也可以是与 URL中的关键信息和筛选条件相匹配的应用请求, 此时, 内 容标识即为所述 URL中的关键信息和筛选条件。一个应用请求中, 通常包含 应用密匙(App Key) 、 业务数据、 时间戳等。 其中, App Key为应用客户端 调用应用编程接口 (Application Programming Interface, 简称 API) 时的唯一 标识, 网络服务器通过 App Key来鉴别应用客户端的身份。
歩骤 302: 所述网络服务器根据所述访问请求确定所述访问请求对应的 应用客户端页面。
具体地, 所述网络服务器接收应用客户端发送的访问请求之后, 将所述 访问请求对应的应用客户端页面向所述应用客户端发送, 以通过所述应用客 户端显示所述应用客户端页面。
其中, 所述应用客户端页面不同于现有技术中通过浏览器打开的页面, 是与终端设备显示屏相匹配的页面。 相对于通过浏览器打开的页面, 所述应 用客户端页面包含的图片少、 信息量小, 从而节省用户的网络流量消耗。 歩骤 303 : 所述网络服务器将所述应用客户端页面发送给所述应用客户 本发明实施例终端设备通过网络服务器将待访问资源对应的 URL通过 应用客户端打开, 实现了网络流量消耗的减少, 所述应用客户端页面与终端 设备显示屏相匹配, 减少用户按键误操作, 便于用户浏览页面, 从而提升用 户体验。
一种场景中, 应用客户端可以采用混搭应用模式, 所述网络服务器根据 所述访问请求确定所述访问请求对应的应用客户端页面,包括以下两种情况:
1、 若所述 URL为所述应用客户端页面对应的 URL, 则所述网络服务器 根据所述 URL确定所述访问请求对应的应用客户端页面。
2、所述网络服务器对所述 URL进行映射处理, 确定所述 URL指向页面 所对应的应用客户端页面。
另一种场景中, 应用客户端采用本地应用模式, 所述网络服务器接收应 用客户端发送的包含内容标识的访问请求, 包括: 所述网络服务器接收所述 应用客户端发送的应用请求,所述应用请求与所述 URL中关键信息和筛选条 件相匹配。 进一歩地, 所述网络服务器根据所述访问请求确定所述访问请求 对应的应用客户端页面, 包括: 所述网络服务器将所述应用请求对应的页面 返回给安装所述应用客户端的终端设备显示。
下面采用几个具体的实施例, 对页面操作处理方法的技术方案进行详 细说明。
实施例四
如图 4所示, 用户、 终端设备 (安装应用客户端) 和网络服务器之间 通过信令交互实现本发明实施例提供的页面操作处理方法。 本实施例中, 应用客户端集成于终端设备中, 所述终端设备可以是智能手机、 平板电脑 等。 本实施例以及以下各实施例以智能手机为例进行说明, 是在智能手机 已安装应用客户端的场景中的一种具体的实现方式, 用户通过点击网页链 接获取 URL。 当然, 本领域技术人员可以理解, 本实施例以及以下各实施 例不局限于智能手机。 本实施例具体歩骤如下:
歩骤 401 : 接收用户点击网页链接的操作指令。
歩骤 402: 获取 URL, 解析该 URL的域名。 具体地, 可以是智能手机的操作系统获取所述网页链接对应的 URL, 并解析所述 URL 的域名, 检测智能手机是否已安装所述域名对应的应用 客户端。
由于现有技术中操作系统不能识别 URL的域名, 即给定一个 URL, 现有技术不能从该 URL 中提取其中包含的域名, 因此, 需要对智能手机 操作系统现有的机制进行扩展, 使智能手机操作系统能够识别 URL 的域 名。
例如, 对于一个淘宝网站的 URL链接, 操作系统机制扩展后, 智能 手机的操作系统能够识别到所述 URL链接包含域名 taobao.com。
其中, 应用客户端在智能手机进行安装时, 所述应用客户端向所述智 能手机的操作系统注册页面处理能力, 其中, 应用客户端的安装文件中携 带该应用可以打开的域名, 应用客户端安装时, 操作系统会获得上述应用 客户端可打开域名的文件, 即应用客户端安装时将包含上述域名信息的注 册文件发送给操作系统已完成注册页面处理能力。 所述智能手机保存所述 应用客户端对应的至少一个域名以及所述应用客户端的标识, 以使所述智能 手机获知所述应用客户端能够打开与所述访问地址标识 URL 的域名对应的 应用客户端页面, 其中, 所述页面处理能力是指所述应用客户端可以打开 包含与应用客户端对应的域名的 URL。 例如, 淘宝应用在 Android系统上 安装时, 会向 Android系统注册其能够打开含有 taobao.com域名的 URL 的能力。
歩骤 403: 提示打开方式。
具体地,可以是智能手机操作系统将所述应用客户端的标识加入到弹窗 中作为可打开所述网页链接的选项之一呈现给所述用户。
歩骤 404: 接收所述用户选择开启所述应用客户端的操作指令。
智能手机操作系统接收所述用户选择开启所述应用客户端的操作指 其中, 歩骤 403和歩骤 404为可选歩骤, 可以直接执行歩骤 405。
歩骤 405: 启动所述应用客户端。
具体地,所述智能手机操作系统可以向所述应用客户端发送所述 URL, 应用客户端接收所述智能手机操作系统发送的所述 URL。 其中, 智能手机操作系统可以通过以下两种方式触发应用客户端: 方式一: 执行歩骤 402之后, 顺序执行歩骤 403和歩骤 404。
方式二: 执行歩骤 402之后, 直接执行歩骤 405。
选择上述两种方式中的哪一种取决于操作系统采用的机制。 例如, 在 Android系统中:
1 ) 若使用 Android的显式调用机制 (Explicit Intent) , 则当用户点击 网页链接时, Android系统直接打开相应的应用客户端。
2 ) 若使用 Android的隐式调用机制 (Implicit Intent) , 则当用户点击 网页链接时, Android系统则弹出一个弹窗, 供用户选择。
具体地, Intent机制是一种数据结构, 抽象描述一次将要被执行的操 作,其作用是在程序运行过程中连接两个不同的组件。应用程序通过 Intent 机制向 Android系统发出某种请求信息, Android系统根据所述请求信息 的内容选择能够处理该请求消息的组件。 例如: 使用 Android手机拨打电 话, 当按下拨号发送键就会向 Android 系统发送一个具有呼叫按钮 ( CALL— BUTTON)行为的 Intent对象。 Android系统根据所述请求信息, 从注册应用的 AndroidManifest.xml 文件中找到能够处理所述请求信息的 电话号码拨号程序。 输入电话号码并再次按下拨号发送键时, 拨号程序会 将一个包含移动电话 (ACTION— CALL ) 和电话号码数据的 Intent请求发 送给 Android系统, 然后 Android系统查找合适的应用程序进行处理。
明确指定组件名称的 Intent 为显式 Intent, Android 系统会直接启动 组件名称指定的目标组件来处理该请求。
对于没有明确指定目标组件的 Intent, 则称之为隐式 Intend 由于隐式 Intent没有明确的目标, 所以必须靠 Android系统帮助应用查找合适的目标 组件来处理该请求。 对于此类 Intent消息的解析机制的具体选择方法是: 通 过检索注册在 AndroidManifest.xml 文件中用于定义各个组件能够处理 Intent消息的所有 IntentFilter过滤器,并将这些过滤器与 Intent消息内容进 行比较。 如果隐式 Intent请求的内容匹配某一组件中 IntentFilter过滤器的 过滤规则,那么 Android系统就会选择该组件作为处理隐式 Intent消息的目 标组件。
本实施例中, 所指的应用客户端是采用 Native+Web模式的应用客户 端, 这种模式, 例如采用 Java技术开发应用客户端, 但是应用客户端和网 络服务器之间的通信采用的 Web模式。
歩骤 406、 应用客户端向网络服务器发送包含内容标识的访问请求。 所述应用客户端和网络服务器进行通信, 将包含内容标识的访问请求, 即 URL, 发送给所述网络服务器。
歩骤 407、 网络服务器分析所述访问请求。
所述网络服务器接收到所述应用客户端发送的所述 URL后, 分析所 述 URL:
1)若所述 URL为应用客户端对应的 URL,网络服务器直接将所述 URL 对应的应用客户端页面返回给所述应用客户端。
2) 若所述 URL不是应用客户端对应的 URL, 例如所述 URL为个人 电脑 (Personal Computer, 简称 PC ) 对应的 URL或者手机浏览器对应的 URL, 则网络服务器端对所述 URL做映射处理, 将所述 URL指向页面所 对应的应用客户端页面返回给所述应用客户端。
需要说明的是, 在本发明任一实施例中, 对于同一域名, PC、 手机浏 览器以及应用客户端呈现的页面是不一样的。 网络服务器端保存的同一 URL的页面可以是一套, 也可以是两套, 在此不做限制。 例如, 若网络服 务器保存页面为一套, 但级联样式表(Cascading Style Sheet, 简称 CSS ), 通常又称为风格样式表是两套, 网络服务器可以根据用户终端类型进行自 动判断; 若网络服务器保存页面为两套, 一套针对 PC对应的页面, 一套 针对手机浏览器对应的页面, 网络服务器端根据 URL 的发送方进行所述 URL的映射,根据所述发送方的类型将与所述发送方匹配的页面返回给所 述发送方。
歩骤 408、 所述网络服务器将所述应用客户端页面发送给所述应用客户 端。
歩骤 409、 所述应用客户端将所述应用客户端页面显示给用户。
本发明实施例在用户点击某一网页链接后, 通过应用客户端、 智能手机 和网络服务器三者之间信令的交互, 对所述网页链接进行分析并通过应用客 户端打开与所述网页链接对应的应用客户端页面, 实现网络消耗流量以及用 户按键误操作的减少, 进一歩便于用户浏览页面, 提升用户体验。 实施例五
如图 5所示, 用户、 应用客户端、 终端设备和网络服务器之间通过信 令交互实现本发明实施例提供的页面操作处理方法,终端设备采用以智能手 机为例进行说明, 本实施例是在智能手机已安装应用客户端的场景中的另 一种具体的实现方式, 具体歩骤如下:
其中, 歩骤 501〜歩骤 505同实施例四中的歩骤 401〜歩骤 405, 在此不再 赘述。
歩骤 506、 应用客户端接收所述终端设备发送的所述 URL, 生成应用请 求。
具体地, 本实施例中, 所指的应用客户端是采用本地应用模式, 即
Native模式的应用客户端, 这种模式是指采用 Java技术开发应用客户端, 且应用客户端和网络服务器之间的通信采用 Java指令,例如应用客户端和 网络服务器之间可以采用采用超文本传输协议 (Hypertext Transfer Protocol, 简称 HTTP ) 中的 GET方式, S卩 HTTP GET方式进行通信, 其 中, HTTP GET—般用于获取 /查询资源信息。
在本实施例中, 所述应用客户端对接收到的所述 URL进行分析, 提取 所述 URL 中的关键信息和筛选条件, 并根据所述关键信息和筛选条件生成 与其相匹配的应用请求。其中, 所述关键信息是指所述 URL中的, 诸如 ID 信息等, 代表所述 URL所指页面唯一性的信息; 所述筛选条件是指和所 述 ID相关连的, 诸如用户评价、 商品详情等子页面信息, 该筛选条件和 关键信息共同决定应用客户端页面中包括的内容, 该内容可以包括文字和图 片等信息。
歩骤 507、 应用客户端向网络服务器发送应用请求。
具体地,在本实施例中,所述应用请求是指歩骤 506中生成的与所述 URL 中的关键信息和筛选条件相匹配的应用请求。 所述应用客户端根据歩骤 506 中获取到的所述 URL 中的关键信息和筛选条件做映射处理, 生成与所述 关键信息和筛选条件相匹配的应用请求。所述应用请求是 Java指令, 即应 用客户端和网络服务器直接通过 Java指令用 HTTP GET的方式进行通信。
所述应用客户端向网络服务器端通过 HTTP GET方式发送所述应用请 求, 请求获取所述 URL 中的关键信息和筛选条件所对应的应用客户端页 面。
歩骤 508、 所述网络服务器将所述应用客户端页面发送给所述应用客户 需要说明的是, 本发明实施例与实施例四不同之处在于: 本实施例中, 网络服务器不需要对所述应用请求做分析映射, 而是直接将所述应用请求 所指定的应用客户端页面返回给应用客户端。 因为实施例四中歩骤 408中 所述应用客户端是通过 Web 方式与网络服务器进行通信, 所发送的是 URL, 而 PC、 手机浏览器以及应用客户端所对应的同一页面的 URL是不 同的, 需要进行分析。 例如, 电脑 Chrome浏览器打开某店铺的 URL为 http://shop68404486.taobao.com/?spm=0.0.0.0.4BGcaM ;手机 UC浏览器打 开该店铺的 URL为 http://shop.rn.taobao.com/shop/shop_index.htm? shop— id =68404486&sid=96cdb91451601574 ; 手机淘宝应用打开该店铺的 URL为 http://shop.m.taobao.com/shop/shop_index.htm?user_id=374476867, 可见, 不同方式对应的 URL是不一样的。 而本实施例中是通过应用请求进行用 Java指令通过 HTTP GET方式和网络服务器进行通信的,不再需要对所述 应用请求做分析映射。
歩骤 509、 所述应用客户端接收所述应用客户端页面并显示给用户。 本发明实施例在用户点击某一网页链接后, 通过智能手机操作系统及其 安装的应用客户端和网络服务器三者之间信令的交互, 对所述网页链接进行 分析并通过应用客户端打开与所述网页链接对应的应用客户端页面, 实现网 络消耗流量以及用户按键误操作的减少, 进一歩便于用户浏览页面, 提升用 户体验。
实施例六
本实施例是在上述实施例的基础上加入考虑终端设备未安装相应应 用客户端的情况, 以实施例四的基础上为例进行说明。 如图 6所示:
其中, 歩骤 601同歩骤 401。
歩骤 602、 智能手机操作系统获取所述网页链接对应的 URL并解析获 取所述 URL 的域名, 检测智能手机是否已安装所述域名对应的应用客户 若智能手机未安装所述域名对应的应用客户端, 则智能手机分析所述 URL是否有对应的应用客户端。
具体地, 通过以下方式进行分析:
方式 1、 智能手机根据获取的域名和本地存储的应用客户端列表进行 匹配。该应用客户端列表由服务器(具体可以为电子市场的服务器)提供, 记录了常用域名和这些常用域名对应的应用客户端信息。
若智能手机在应用客户端列表中能查找到该 URL 的域名所对应的应 用客户端, 则执行歩骤 603 ; 若查找不到该 URL的域名所对应的应用客户 端, 则认为该 URL 的域名对应的应用客户端不存在, 智能手机可以直接 按照现有方法, 即通过浏览器打开该 URL。
方式 2、 智能手机和电子市场增加一个查询机制, 使得智能手机和电 子市场之间能够进行通信, 智能手机将域名发送给电子市场, 电子市场反 馈该域名所对应的应用客户端是否存在。 若存在, 则执行歩骤 603 ; 若不 存在, 则智能手机可以直接按照现有方法, 即通过浏览器打开该 URL。
方式 3、 智能手机增加学习功能, 若智能手机曾安装过该域名对应的 应用客户端, 则操作系统会保留该应用客户端信息, 即该应用客户端信息 不会随应用客户端卸载而被丢弃。
若智能手机检测到该域名对应的应用客户端曾安装过, 则调用之前保 留的该应用客户端信息, 执行歩骤 603 ; 若该应用客户端之前未安装过, 则按照方式 1或方式 2中的方法进行处理。
可选的, 上述方法还可以包括:
歩骤 603、 智能手机操作系统提示用户是否需要安装所述应用客户端。 具体地, 若用户选择安装所述应用客户端, 则所述智能手机与网络服 务器进行通信, 从网络服务器下载所述应用客户端的安装程序, 下载完成 后在所述智能手机上进行安装,并保存所述应用客户端对应的至少一个域名 以及所述应用客户端的标识和 /或图标。 在安装完成后, 操作系统直接调用 应用客户端打开所述 URL, 后续操作歩骤参考实施例四中的歩骤 403〜歩 骤 409, 实施例五中的歩骤 503〜歩骤 509, 此处不再赘述。
另外, 在所述终端设备提示用户是否安装所述应用客户端时, 可以设 置"不再提示安装 "等这类的选项。 若用户选择不安装应用客户端时, 则按 照现有技术中方法进行操作, 通过智能手机上的浏览器打开网页链接。 若 用户选择不安装所述应用客户端, 但是未勾选例如"不再提示安装"等这类 选项, 则智能手机对于下次用户点击打开包含该网站域名的 URL 时, 继 续提示用户是否安装所述应用客户端选项; 若用户选择不安装所述应用客 户端, 且勾选例如"不再提示安装"等这类选项, 则智能手机在按照现有技 术方法使用浏览器打开所述 URL 的同时, 对于下次用户再点击打开包含 该网站域名的 URL时, 默认采用浏览器打开该 URL, 并且不再提示用户 是否安装应用客户端。
本发明实施例在智能手机未安装网页链接所对应的应用客户端时, 让用 户自由选择是否安装所述应用客户端, 可以使用户更自主的决定采用浏览器 还是应用客户端去打开所述网页链接, 增加了用户的选择。
实施例七
本实施例与上述实施例的区别在于, 在本实施例中加入考虑应用客户 端无法打开 URL所对应的页面的情况。 当网络服务器接收到应用客户端 发送的 URL或者应用请求后, 在网络服务器上找不到对应的应用客户端 页面后的处理方法, 具体可以包括:
一种使用场景中, 对于采用 Native + Web模式的应用客户端, 即本发 明实施例四中所对应的应用客户端。 该使用场景下, 本实施例与上述实施 例四的不同点为:
当网络服务器接收到应用客户端发送的 URL后, 在对所述 URL进行 分析后, 发现所述网络服务器上没有所述 URL所对应的应用客户端页面, 但 是所述网络服务器上保存有所述 URL所对应 PC对应的页面或所述 URL所 对应浏览器对应的页面。 此时, 网络服务器向客户端返回无法找到所述 URL 对应的应用客户端页面。
应用客户端接收到网络服务器返回的无法找到所述 URL对应的应用客 户端页面的响应后, 则通知智能手机使用默认浏览器打开所述 URL。 进一歩 地, 智能手机调用默认浏览器打开该 URL。
若网络服务器对所述 URL进行分析后,发现所述网络服务器上没有所述 URL所对应的应用客户端页面, 且所述网络服务器上也没有所述 URL所对 应 PC对应的页面以及所述 URL所对应浏览器对应的页面, 即所述 URL所 对应的页面均不存在, 则网络服务器向应用客户端返回错误响应, 应用客户 端提示用户页面不存在。
另一种使用场景中, 对于采用 Native模式的应用客户端, 即本发明实施 例五中所对应的应用客户端。 这种情况下本实施例和上述实施例中的不同点 为:
当网络服务器接收到应用客户端发送的应用请求后, 无法在网络所述服 务器上找到所述应用请求所对应的应用客户端页面, 则返回错误响应给所述 应用客户端。 所述应用客户端接收到所述网络服务器返回的错误响应后, 则 通知智能手机使用默认浏览器打开所述 URL。
本发明实施例中, 通过返回网络服务器侧没有保存网页链接对应的页面 信息告知用户点击所述网页链接后的处理情况, 使得用户可以通过其它方式 打开所述网页链接, 提高链接处理效率, 增强用户体验。
实施例八
图 7为本发明页面操作处理装置实施例一的结构示意图。 本发明实施例 的页面操作处理装置可以集成于终端中。 如图 7所示, 本实施例的页面操作 处理装置包括获取模块 701、 检测模块 702和处理模块 703。
其中, 获取模块 701用于获取待访问资源对应的 URL; 检测模块 702用 于检测所存储的域名中是否包含与所述 URL对应的域名;处理模块 703用于 若检测模块 702检测到所存储的域名中包含与所述 URL对应的域名,则触发 与所述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客户 端页面。
本实施例的页面操作处理装置, 可以用于执行上述任一页面操作处理方 法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
进一歩地, 获取模块 701 具体可以获取用户输入的待访问资源对应的 URL; 或者, 获取模块 701具体通过扫描二维码获取所述待访问资源对应的 URL;获取模块 701具体通过近场通信从另一设备获取所述待访问资源对应 的 URL。
在上述基础上, 检测模块 702具体根据数据库中存储的域名信息, 与所 述 URL中逐个字符比对, 提取所述 URL中的二级域名, 得到所述 URL的域 名; 或者, 根据所述 URL中的分隔符提取所述 URL中的二级域名, 得到所 述 URL的域名; 及, 判断其自身是否存储所述域名。
进一歩地,所述触发与所述 URL的域名对应的应用客户端获取并显示所 述 URL对应的应用客户端页面, 包括: 启动所述应用客户端, 并向所述应用 客户端发送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者, 处理模块 703具体用于将所述应 用客户端的标识和 /或图标作为可打开所述待访问资源的选项之一呈现给所 述用户, 并在所述用户选择所述应用客户端的标识和 /或图标之后, 启动所述 应用客户端并向所述应用客户端发送所述 URL, 以使所述应用客户端向网络 服务器请求获取与所述 URL对应的应用客户端页面并显示。
进一歩地, 在图 7的基础上, 如图 8所示, 所述装置还可以包括: 判断 模块 801。 其中, 判断模块 801, 用于判断是否已安装所述 URL的域名对应 的应用客户端; 处理模块 703还用于若未安装所述应用客户端, 则安装所述 应用客户端, 并保存所述应用客户端对应的至少一个域名以及所述应用客户 端的标识和 /或图标。
进一歩地, 判断模块 801具体用于将所述 URL对应的域名与本地存储 的应用客户端列表进行匹配; 若匹配成功, 则确定已安装所述应用客户端; 若匹配不成功, 则确定未安装所述应用客户端。
更进一歩地,处理模块 703还可以用于将所述 URL对应的域名发送给 服务器, 由所述服务器反馈是否存在所述域名对应的应用客户端; 所述终 端设备安装所述应用客户端,具体包括:若存在所述域名对应的应用客户端, 则安装所述应用客户端。
实施例九
图 9为本发明终端实施例一的结构示意图, 如图 9所示, 该终端包括: 存储器 91和处理器 92, 其中:
存储器 91 用于存储所述终端中已安装的应用客户端对应的域名; 处理 器 92用于获取待访问资源对应的 URL; 及, 检测存储器 91中存储的域名中 是否包含与所述 URL对应的域名 ·'若检测到所存储的域名中包含与所述 URL 对应的域名, 则触发与所述 URL 的域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面。
上述终端可以执行前述方法实施例, 其实现原理类似, 在此不再赘述。 本实施例中, 终端通过应用客户端打开待访问资源, 例如网页链接, 并且在终端设备侧显示应用客户端页面, 该应用客户端页面不同于平时通 过浏览器打开的页面, 其包含的图片, 文字等信息量相较于通过浏览器打 开的页面要少, 从而减小了网络流量消耗, 便于用户操作和浏览页面; 该 应用客户端页面中字体相对通过浏览器打开的页面要大, 从而减少误操 作, 提升用户体验。
在图 9所示实施例的基础上, 终端还可以包括: 输入设备 93, 或近场 通信接收器 94, 或图像获取设备 95中的任意组合。 其中, 输入设备 93用于 接收用户输入的待访问资源对应的 URL并发送给处理器 92; 近场通信接收 器 94用于通过近场通信接收待访问资源对应的 URL并发送给处理器 92; 图 像获取设备 95用于获取二维码图像, 并发送给处理器 92, 此时, 处理器 92 还用于对所述二维码图像进行解析, 得到待访问资源对应的 URL。 这里输入 设备 93可以是键盘、触摸屏、体态识别设备或其他任何可以用来向所述终端 输入指令的设备。 近场通信包括射频识别码(RFID) 、 蓝牙、 ZigBee等短距 离通信制式。图像获取设备 95可以是摄像头、扫描仪等用于获取图像的设备。
其中, 上述检测所存储的域名中是否包含与所述 URL对应的域名, 具体 可以包括: 根据数据库中存储的域名信息, 与所述 URL中逐个字符比对, 提 取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 根据所述 URL中 的分隔符提取所述 URL中的二级域名, 得到所述 URL的域名; 及, 判断其 自身是否存储所述域名; 所述域名至少包括所述二级域名。
进一歩地,所述触发与所述 URL的域名对应的应用客户端获取并显示所 述 URL对应的应用客户端页面, 包括: 启动所述应用客户端, 并向所述应用 客户端发送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者, 将所述应用客户端的标识和 /或图 标作为可打开所述待访问资源的选项之一呈现给所述用户, 并在所述用户选 择所述应用客户端的标识和 /或图标之后, 启动所述应用客户端并向所述应用 客户端发送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示。
可选地, 处理器 92还可以用于判断是否已安装所述 URL的域名对应的 应用客户端; 若未安装, 则安装所述应用客户端, 并保存所述应用客户端对 应的至少一个域名以及所述应用客户端的标识和 /或图标。
进一歩地, 判断是否已安装所述 URL的域名对应的应用客户端, 包括: 将所述 URL对应的域名与本地存储的应用客户端列表进行匹配; 若匹配 成功, 则确定所述终端设备已安装所述应用客户端; 若匹配不成功, 则确定 所述终端设备未安装所述应用客户端。
更进一歩地,处理器 92还可以用于将所述 URL对应的域名发送给服务 器, 由所述服务器反馈是否存在所述域名对应的应用客户端; 所述终端设 备安装所述应用客户端, 具体包括:
若存在所述域名对应的应用客户端, 则安装所述应用客户端。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的设备和方法, 可以通过其它的方式实现。例如, 以上所描述的设备实施例仅仅是示意性的, 例如, 所述单元或模块的划分, 仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个单元或模块可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的 耦合或直接耦合或通信连接可以是通过一些接口, 设备或模块的间接耦合或 通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的, 作 为模块显示的部件可以是或者也可以不是物理模块, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部模块来实现本实施例方案的目的。
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分歩 骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可 读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的歩骤; 而 前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码 的介质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种页面操作处理方法, 其特征在于, 包括:
终端设备获取待访问资源对应的统一资源定位符 URL;
所述终端设备检测所存储的域名中是否包含与所述 URL对应的域名; 若包含,则所述终端设备触发与所述 URL的域名对应的应用客户端获取 并显示所述 URL对应的应用客户端页面。
2、 根据权利要求 1所述的方法, 其特征在于, 所述终端设备获取待访问 资源对应的 URL, 包括:
所述终端设备获取用户输入的待访问资源对应的 URL; 或者,
所述终端设备通过扫描二维码获取所述待访问资源对应的 URL; 或者, 所述终端设备通过近场通信从另一设备获取所述待访问资源对应的
3、 根据权利要求 1所述的方法, 其特征在于, 所述终端设备检测所存储 的域名中是否包含与所述 URL对应的域名, 包括:
所述终端设备根据数据库中存储的域名信息,与所述 URL中逐个字符比 对, 提取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 根据所述 URL中的分隔符提取所述 URL中的二级域名, 得到所述 URL的域名;
所述终端设备判断其自身是否存储所述域名;
所述域名至少包括所述二级域名。
4、 根据权利要求 1所述的方法, 其特征在于, 所述终端设备触发与所述
URL的域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面, 包括:
所述终端设备启动所述应用客户端,并向所述应用客户端发送所述 URL, 以使所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端 页面并显示; 或者,
所述终端设备将所述应用客户端的标识和 /或图标作为可打开所述待访 问资源的选项之一呈现给所述用户, 并在用户选择所述应用客户端的标识和 / 或图标之后, 启动所述应用客户端并向所述应用客户端发送所述 URL, 以使 所述应用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面 并显示。
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述终端设备触 发与所述 URL的域名对应的应用客户端获取并显示所述 URL对应的应用客 户端页面之前, 还包括:
所述终端设备判断是否已安装所述 URL的域名对应的应用客户端; 若未安装, 则所述终端设备安装所述应用客户端, 并保存所述应用客户 端对应的至少一个域名以及所述应用客户端的标识和 /或图标。
6、 根据权利要求 5所述的方法, 其特征在于, 所述终端设备判断是否已 安装所述 URL的域名对应的应用客户端, 包括:
所述终端设备将所述 URL 对应的域名与本地存储的应用客户端列表进 行匹配; 若匹配成功, 则确定所述终端设备已安装所述应用客户端; 若匹配 不成功, 则确定所述终端设备未安装所述应用客户端。
7、 根据权利要求 6所述的方法, 其特征在于, 所述终端设备安装所述 应用客户端之前, 还包括:
所述终端设备将所述 URL对应的域名发送给服务器, 由所述服务器反 馈是否存在所述域名对应的应用客户端;
所述终端设备安装所述应用客户端, 具体包括:
若存在所述域名对应的应用客户端, 则所述终端设备安装所述应用客 户端。
8、 一种页面操作处理装置, 其特征在于, 包括:
获取模块, 用于获取待访问资源对应的统一资源定位符 URL;
检测模块, 用于检测所存储的域名中是否包含与所述 URL对应的域名; 处理模块,用于若检测模块检测到所存储的域名中包含与所述 URL对应 的域名, 则触发与所述 URL的域名对应的应用客户端获取并显示所述 URL 对应的应用客户端页面。
9、 根据权利要求 8所述的装置, 其特征在于, 所述获取模块具体用于: 获取用户输入的待访问资源对应的 URL; 或者,
通过扫描二维码获取所述待访问资源对应的 URL; 或者,
通过近场通信从另一设备获取所述待访问资源对应的 URL。
10、 根据权利要求 8所述的装置, 其特征在于, 所述检测模块具体用于; 根据数据库中存储的域名信息, 与所述 URL中逐个字符比对, 提取所述 URL中的二级域名, 得到所述 URL的域名; 或者, 根据所述 URL中的分隔 符提取所述 URL中的二级域名, 得到所述 URL的域名; 及, 判断其自身是 否存储所述域名; 所述域名至少包括所述二级域名。
11、 根据权利要求 8所述的装置, 其特征在于, 所述触发与所述 URL的 域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面, 包括: 启动所述应用客户端, 并向所述应用客户端发送所述 URL, 以使所述应 用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者,
将所述应用客户端的标识和 /或图标作为可打开所述待访问资源的选项 之一呈现给所述用户, 并在所述用户选择所述应用客户端的标识和 /或图标之 后, 启动所述应用客户端并向所述应用客户端发送所述 URL, 以使所述应用 客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示。
12、 根据权利要求 8-11任一项所述的装置, 其特征在于, 还包括: 判断模块, 用于判断是否已安装所述 URL的域名对应的应用客户端; 贝 lj, 所述处理模块还用于若未安装所述应用客户端, 则安装所述应用客 户端, 并保存所述应用客户端对应的至少一个域名以及所述应用客户端的标 识和 /或图标。
13、 根据权利要求 12所述的装置, 其特征在于, 所述判断模块具体用于 将所述 URL对应的域名与本地存储的应用客户端列表进行匹配; 若匹配 成功, 则确定已安装所述应用客户端; 若匹配不成功, 则确定未安装所述应 用客户端。
14、 根据权利要求 13所述的装置, 其特征在于, 所述处理模块还用于: 将所述 URL 对应的域名发送给服务器, 由所述服务器反馈是否存在 所述域名对应的应用客户端;
所述终端设备安装所述应用客户端, 具体包括:
若存在所述域名对应的应用客户端, 则安装所述应用客户端。
15、 一种终端, 其特征在于, 包括:
存储器, 用于存储所述终端中已安装的应用客户端对应的域名; 处理器, 用于获取待访问资源对应的统一资源定位符 URL; 及, 检测所 存储的域名中是否包含与所述 URL对应的域名;若检测到所存储的域名中包 含与所述 URL对应的域名, 则触发与所述 URL的域名对应的应用客户端获 取并显示所述 URL对应的应用客户端页面。
16、 根据权利要求 15所述的终端, 其特征在于, 还包括:
输入设备,用于接收用户输入的待访问资源对应的 URL并发送给所述处 理器; 或者,
近场通信接收器,用于通过近场通信接收所述待访问资源对应的 URL并 发送给所述处理器。
17、 根据权利要求 15或 16所述的终端, 其特征在于, 还包括: 图像获取设备, 用于获取二维码图像, 并发送给所述处理器;
所述处理器还用于对所述二维码图像进行解析, 得到待访问资源对应的
18、 根据权利要求 15所述的终端, 其特征在于, 检测所存储的域名中是 否包含与所述 URL对应的域名, 具体包括:
根据数据库中存储的域名,与所述 URL中逐个字符比对,提取所述 URL 中的二级域名, 得到所述 URL的域名, 或者, 根据所述 URL中的分隔符提 取所述 URL中的二级域名, 得到所述 URL的域名;
判断其自身是否存储所述域名;
所述域名至少包括所述二级域名。
19、 根据权利要求 15所述的终端, 其特征在于, 所述触发与所述 URL 的域名对应的应用客户端获取并显示所述 URL对应的应用客户端页面, 包 括:
启动所述应用客户端, 并向所述应用客户端发送所述 URL, 以使所述应 用客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示; 或者,
将所述应用客户端的标识和 /或图标作为可打开所述待访问资源的选项 之一呈现给所述用户, 并在所述用户选择所述应用客户端的标识和 /或图标之 后, 启动所述应用客户端并向所述应用客户端发送所述 URL, 以使所述应用 客户端向网络服务器请求获取与所述 URL对应的应用客户端页面并显示。
20、 根据权利要求 15-19任一项所述的终端, 其特征在于, 所述处理器 还用于判断是否已安装所述 URL的域名对应的应用客户端; 若未安装, 则安 装所述应用客户端, 并保存所述应用客户端对应的至少一个域名以及所述应 用客户端的标识和 /或图标。
21、 根据权利要求 20所述的终端, 其特征在于, 所述判断是否已安装所 述 URL的域名对应的应用客户端, 包括: 将所述 URL对应的域名与本地存 储的应用客户端列表进行匹配; 若匹配成功, 则确定所述终端设备已安装 所述应用客户端; 若匹配不成功, 则确定所述终端设备未安装所述应用客户
22、 根据权利要求 21所述的终端, 其特征在于:
所述处理器还用于将所述 URL对应的域名发送给服务器, 由所述服务 器反馈是否存在所述域名对应的应用客户端;
所述终端设备安装所述应用客户端, 具体包括:
若存在所述域名对应的应用客户端, 则安装所述应用客户端。
PCT/CN2013/086620 2013-11-06 2013-11-06 页面操作处理方法、装置及终端 WO2015066860A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
BR112016010052-2A BR112016010052B1 (pt) 2013-11-06 2013-11-06 Método e aparelho de processamento de operação de página, e terminal
PCT/CN2013/086620 WO2015066860A1 (zh) 2013-11-06 2013-11-06 页面操作处理方法、装置及终端
KR1020167014317A KR101922037B1 (ko) 2013-11-06 2013-11-06 페이지 조작 처리 방법 및 장치, 그리고 단말기
EP13887020.9A EP2928143A4 (en) 2013-11-06 2013-11-06 SIDE OPERATING PROCESS, DEVICE AND TERMINAL
CN201380008167.6A CN105122760B (zh) 2013-11-06 2013-11-06 页面操作处理方法、装置及终端
JP2016550905A JP6414855B2 (ja) 2013-11-06 2013-11-06 ページオペレーション処理方法および装置、ならびに端末
US14/586,235 US20150127838A1 (en) 2013-11-06 2014-12-30 Page Operation Processing Method and Apparatus, and Terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/086620 WO2015066860A1 (zh) 2013-11-06 2013-11-06 页面操作处理方法、装置及终端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/586,235 Continuation US20150127838A1 (en) 2013-11-06 2014-12-30 Page Operation Processing Method and Apparatus, and Terminal

Publications (1)

Publication Number Publication Date
WO2015066860A1 true WO2015066860A1 (zh) 2015-05-14

Family

ID=53007927

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086620 WO2015066860A1 (zh) 2013-11-06 2013-11-06 页面操作处理方法、装置及终端

Country Status (7)

Country Link
US (1) US20150127838A1 (zh)
EP (1) EP2928143A4 (zh)
JP (1) JP6414855B2 (zh)
KR (1) KR101922037B1 (zh)
CN (1) CN105122760B (zh)
BR (1) BR112016010052B1 (zh)
WO (1) WO2015066860A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873961A (zh) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 通过移动浏览器唤醒app应用的方法及装置
JP2018517206A (ja) * 2015-05-15 2018-06-28 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited アプリケーションページクイックアクセス

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3042894B1 (fr) * 2015-10-27 2018-10-12 Ingenico Group Procede de securisation de traitement de donnees transactionnelles, terminal et programme d'ordinateur correspondant
CN107103447B (zh) * 2016-02-23 2021-04-13 平安科技(深圳)有限公司 页面配置方法和装置
CN106330778B (zh) * 2016-08-22 2020-01-24 深圳广联赛讯有限公司 网络流量控制方法及装置
CN106970977A (zh) * 2017-03-28 2017-07-21 腾讯音乐娱乐(深圳)有限公司 一种网页跳转处理方法及装置
CN108595665A (zh) * 2018-04-28 2018-09-28 北京小米移动软件有限公司 网页内容的显示方法及装置
US10467622B1 (en) * 2019-02-01 2019-11-05 Capital One Services, Llc Using on-demand applications to generate virtual numbers for a contactless card to securely autofill forms
CN110245156A (zh) * 2019-05-29 2019-09-17 吉旗(成都)科技有限公司 缓存数据处理方法及装置
CN111209058B (zh) * 2020-01-10 2023-06-30 北京字节跳动网络技术有限公司 一种获取进程名称的方法、装置、介质和设备
KR102572383B1 (ko) * 2021-08-24 2023-08-29 삼성에스디에스 주식회사 애플리케이션 관리 방법 및 장치

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221611A (zh) * 2007-01-11 2008-07-16 国际商业机器公司 用于检测并补救误导超链接的方法和系统
CN102932348A (zh) * 2012-10-30 2013-02-13 常州大学 一种钓鱼网站的实时检测方法及系统
CN102982080A (zh) * 2012-10-30 2013-03-20 北京奇虎科技有限公司 网址显示方法和装置

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7337910B2 (en) * 2000-10-04 2008-03-04 Verisign, Inc. Methods and devices for responding to request for unregistered domain name to indicate a predefined type of service
US7502994B2 (en) * 2001-02-05 2009-03-10 Omniture, Inc. Web page link-tracking system
JP2007323540A (ja) * 2006-06-03 2007-12-13 Neobizm:Kk 携帯電話機又は簡易型携帯電話機によるコンテンツ、サイト、ホ−ムペ−ジ又はブログへの直接接続及び閲覧方法並びにその直接接続及び閲覧システム
JP2008278020A (ja) * 2007-04-26 2008-11-13 Kyocera Corp 携帯端末
CN101146128A (zh) * 2007-10-30 2008-03-19 杨金钰 允许小屏幕移动终端访问和浏览www网站的方法
US8826145B1 (en) * 2007-11-12 2014-09-02 Google Inc. Unified web and application framework
US20090282443A1 (en) * 2008-05-07 2009-11-12 Samsung Electronics Co., Ltd. Streaming method and apparatus using key frame
US20090282423A1 (en) * 2008-05-12 2009-11-12 Christopher Smith System and method for dynamic plug-in activation in a web browser
JP2011053996A (ja) * 2009-09-03 2011-03-17 Hitachi Ltd Webブラウザ選択方法および装置
US20110082875A1 (en) * 2009-10-02 2011-04-07 Netquote, Inc. System and method for dynamic payload generation on shared sites
CN102156696A (zh) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 一种针对网页应用的本地化微件管理方法和终端设备
JP5442670B2 (ja) * 2011-06-01 2014-03-12 株式会社Nttドコモ 通信端末、通信システム及び通信方法
US8738765B2 (en) * 2011-06-14 2014-05-27 Lookout, Inc. Mobile device DNS optimization
US9519726B2 (en) * 2011-06-16 2016-12-13 Amit Kumar Surfacing applications based on browsing activity
US10319174B2 (en) * 2011-06-30 2019-06-11 Ncr Corporation System and method for ordering items
JP5313372B2 (ja) * 2012-02-06 2013-10-09 株式会社コナミデジタルエンタテインメント アプリケーションシステム、アプリケーションインストール方法、アプリケーションサーバ、プログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221611A (zh) * 2007-01-11 2008-07-16 国际商业机器公司 用于检测并补救误导超链接的方法和系统
CN102932348A (zh) * 2012-10-30 2013-02-13 常州大学 一种钓鱼网站的实时检测方法及系统
CN102982080A (zh) * 2012-10-30 2013-03-20 北京奇虎科技有限公司 网址显示方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2928143A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018517206A (ja) * 2015-05-15 2018-06-28 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited アプリケーションページクイックアクセス
US10699061B2 (en) 2015-05-15 2020-06-30 Alibaba Group Holding Limited Application page quick access
CN106873961A (zh) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 通过移动浏览器唤醒app应用的方法及装置

Also Published As

Publication number Publication date
BR112016010052A2 (zh) 2017-08-01
CN105122760B (zh) 2019-04-26
KR101922037B1 (ko) 2018-11-26
US20150127838A1 (en) 2015-05-07
JP2017504912A (ja) 2017-02-09
KR20160079061A (ko) 2016-07-05
CN105122760A (zh) 2015-12-02
EP2928143A4 (en) 2016-02-17
BR112016010052B1 (pt) 2022-11-16
JP6414855B2 (ja) 2018-10-31
EP2928143A1 (en) 2015-10-07

Similar Documents

Publication Publication Date Title
WO2015066860A1 (zh) 页面操作处理方法、装置及终端
US8756313B2 (en) Method and system for notifying network resource updates
JP6500086B2 (ja) 二次元コードの解析方法および装置、コンピュータ読み取り可能な記憶媒体、コンピュータプログラムおよび端末機器
CN104471917B (zh) 共享应用信息方法和装置
WO2016101635A1 (zh) 一种同步登录状态的方法、装置、设备和计算机存储介质
US20160269433A1 (en) Method and system for checking security of url for mobile terminal
US20080301581A1 (en) Method and system for providing additional information service onto e-mail
CN104601641A (zh) 应用链接分享方法、装置及系统
KR20090018888A (ko) 통신을 개시하는 방법, 하나 이상의 프로세서 판독가능 저장 장치 및 컴퓨팅 장치
CN103269396A (zh) 一种对移动终端进行管理的方法和系统
WO2019205718A1 (zh) 一种分享寄宿应用的方法及设备
RU2610584C2 (ru) Способ обработки электронного сообщения и сервер, используемый в нем
CN103873918A (zh) 图片处理方法、装置及终端
CN102541853A (zh) 一种利用浏览器地址栏获取应用信息的方法和装置
WO2014032237A1 (zh) 网页应用程序的管理方法和装置
WO2015074459A1 (zh) 打开网页、调用客户端及创建轻应用的方法及装置
WO2015109928A1 (zh) 一种加载推荐信息、网址检测的方法、装置和系统
WO2012094965A1 (zh) 提示消息呈现方法、终端和服务器
WO2017121332A1 (zh) 一种信息分享方法与系统
CN103810268A (zh) 加载搜索结果推荐信息、网址检测的方法、装置和系统
CN103179159A (zh) 一种处理第三方应用的方法和终端浏览器
CN103838799A (zh) 一种推荐安装软件的方法、终端设备、云端服务器及系统
CN108021409B (zh) 一种app业务情景还原方法及系统
KR101730339B1 (ko) 정보 처리 단말 및 제어 방법
US11075867B2 (en) Method and system for detection of potential spam activity during account registration

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2013887020

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13887020

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016550905

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112016010052

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 20167014317

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: IDP00201603793

Country of ref document: ID

ENP Entry into the national phase

Ref document number: 112016010052

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20160504