JP2015176215A - Web page display system and web page display program - Google Patents

Web page display system and web page display program Download PDF

Info

Publication number
JP2015176215A
JP2015176215A JP2014050247A JP2014050247A JP2015176215A JP 2015176215 A JP2015176215 A JP 2015176215A JP 2014050247 A JP2014050247 A JP 2014050247A JP 2014050247 A JP2014050247 A JP 2014050247A JP 2015176215 A JP2015176215 A JP 2015176215A
Authority
JP
Japan
Prior art keywords
server
web page
response data
response
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014050247A
Other languages
Japanese (ja)
Other versions
JP6245005B2 (en
Inventor
涼一 舟橋
Ryoichi Funabashi
涼一 舟橋
田中 竜太
Ryuta Tanaka
竜太 田中
多田 厚子
Atsuko Tada
厚子 多田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2014050247A priority Critical patent/JP6245005B2/en
Publication of JP2015176215A publication Critical patent/JP2015176215A/en
Application granted granted Critical
Publication of JP6245005B2 publication Critical patent/JP6245005B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a web page display system configured to improve convenience in displaying a web page, and a web page display program.SOLUTION: A web page display system includes: a server that transmits response data in response to request data; and a terminal device that transmits the request data generated based on information input from a user, to the server, and displays a web page on the basis of the response data received from the server. The terminal device learns a rule of the response data which changes in accordance with the request data, generates alternative response data in accordance with the request data, on the basis of the learned rule, when communication with the server is disconnected, and displays a web page on the basis of the alternative response data.

Description

本件は、ウェブページ表示システム及びウェブページ表示プログラムに関する。   This case relates to a web page display system and a web page display program.

スマートフォンなどのモバイル端末装置の普及に伴い、無線通信によるインターネットへのアクセスが増加している。モバイル端末装置は、電波状態が悪い環境下では、通信状態が不安定となるため、ウェブサーバからのウェブページの取得に失敗し、ウェブページを表示できないことがある。   With the spread of mobile terminal devices such as smartphones, access to the Internet by wireless communication is increasing. Since the communication state becomes unstable in an environment where the radio wave condition is poor, the mobile terminal device may fail to acquire the web page from the web server and cannot display the web page.

このため、モバイル端末装置は、ブラウザにより、ウェブページを予めキャッシュしておき、ウェブサーバとの通信が切断された場合、当該キャッシュデータを用いて代替のウェブページを表示する。したがって、モバイル端末装置は、過去に表示したことがあるウェブページであれば、ウェブサーバとの接続が切断されても表示することができる。   For this reason, the mobile terminal device caches a web page in advance by a browser, and when the communication with the web server is disconnected, the mobile terminal device displays an alternative web page using the cache data. Therefore, the mobile terminal device can display a web page that has been displayed in the past even if the connection with the web server is disconnected.

ネットワークから取得したデータの表示に関し、例えば特許文献1には、ネットワーク上に存在する目的のデータにアクセスすることなく、予め装置内に格納したデータを仮表示する点が記載されている。また、特許文献2には、ホームページを表示するブラウザに、仮データを表示し、サーバから追加データを取得した後、ブラウザの表示を更新する点が記載されている。   Regarding display of data acquired from a network, for example, Patent Document 1 describes that data stored in the apparatus in advance is temporarily displayed without accessing target data existing on the network. Patent Document 2 describes that temporary data is displayed on a browser that displays a home page, and additional data is acquired from a server, and then the display of the browser is updated.

特開2002−334013号公報JP 2002-334013 A 特開2007−272742号公報JP 2007-272742 A

しかし、キャッシュデータによる代替のウェブページの表示手段の利用可能なケースは、当該ウェブページの表示内容が、モバイル端末装置から送信されるリクエストデータ(変数)によらずに一定である場合に限られる。例えば、ブログ(Blog)の更新内容の確認用のウェブページは、事前(ブログの編集画面)に入力されたブログのタイトル及び内容などに応じて、表示内容が異なるため、キャッシュデータを用いる表示手段を用いて表示することができない。   However, the use case of the display means of the alternative web page by cache data is limited to the case where the display content of the web page is constant regardless of the request data (variable) transmitted from the mobile terminal device. . For example, a web page for checking the update contents of a blog (blog) has different display contents depending on the blog title and contents input in advance (blog edit screen). Cannot be displayed using.

つまり、リクエストデータに応じて変化するウェブページを、キャッシュデータを用いて表示しても、表示内容は、リクエストデータに応じた内容とはならず、キャッシュデータの取得時の内容となる。   That is, even if a web page that changes according to the request data is displayed using the cache data, the display content is not the content according to the request data, but the content when the cache data is acquired.

このように、キャッシュデータを用いる表示手段は、ウェブページの表示の利便性が低いという問題がある。なお、このような問題は、モバイル端末装置に限られず、例えばパーソナルコンピュータのように、ウェブサーバと有線通信を行う他の端末装置についても同様に存在する。   As described above, the display means using the cache data has a problem that the convenience of displaying the web page is low. Such a problem is not limited to a mobile terminal device, and similarly exists for other terminal devices that perform wired communication with a web server, such as a personal computer.

そこで本件は上記の課題に鑑みてなされたものであり、ウェブページの表示の利便性を向上するウェブページ表示システム及びウェブページ表示プログラムを提供することを目的とする。   Therefore, the present invention has been made in view of the above problems, and an object thereof is to provide a web page display system and a web page display program that improve the convenience of displaying a web page.

本明細書に記載のウェブページ表示システムは、受信したリクエストデータに応じて、レスポンスデータを送信するサーバと、ユーザから入力された情報に基づいて生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータに基づいてウェブページを表示する端末装置とを有し、前記端末装置は、前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示する。   The web page display system described in the present specification, in response to the received request data, transmits response data to the server, and transmits the request data generated based on information input from the user to the server. A terminal device that displays a web page based on the response data received from the server, the terminal device learns a rule of the response data that changes according to the request data, and communicates with the server When is disconnected, substitute response data corresponding to the request data is generated according to the learned rule, and a web page is displayed based on the substitute response data.

本明細書に記載のウェブページ表示プログラムは、ユーザから入力された情報に基づいて生成されたリクエストデータをサーバに送信し、前記サーバから受信したレスポンスデータに基づいてウェブページを表示し、前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示する、処理を、コンピュータに実行させる。   The web page display program described in the present specification transmits request data generated based on information input from a user to a server, displays a web page based on response data received from the server, and When the rule of the response data that changes according to the data is learned and communication with the server is disconnected, the alternative response data according to the request data is generated according to the learned rule, and the alternative response data Based on this, a computer is caused to execute a process of displaying a web page.

ウェブページの表示の利便性の利便性を向上できる。   The convenience of the display of the web page can be improved.

実施例に係るウェブページ表示システムを示す構成図である。It is a block diagram which shows the web page display system which concerns on an Example. ウェブサーバの例を示す構成図である。It is a block diagram which shows the example of a web server. ウェブページの例を示す図である。It is a figure which shows the example of a web page. レスポンスデータの例を示す図である。It is a figure which shows the example of response data. 端末装置の例を示す構成図である。It is a block diagram which shows the example of a terminal device. 通信状態の判定処理の例を示すフローチャートである。It is a flowchart which shows the example of the determination process of a communication state. 端末装置の学習処理の様子を示す図である。It is a figure which shows the mode of the learning process of a terminal device. 変換規則データベースの例を示す表である。It is a table | surface which shows the example of a conversion rule database. 代替レスポンスデータベースの例を示す表である。It is a table | surface which shows the example of an alternative response database. 学習処理の例を示すフローチャートである。It is a flowchart which shows the example of a learning process. レスポンステンプレートの生成例を示す表である。It is a table | surface which shows the example of a response template production | generation. レスポンスデータの他例を示す図である。It is a figure which shows the other example of response data. 一致率の更新例を示す表である。It is a table | surface which shows the update example of a coincidence rate. 代替レスポンスデータの例を示す図である。It is a figure which shows the example of alternative response data. レスポンスデータの他例を示す図である。It is a figure which shows the other example of response data. レスポンステンプレートの更新例を示す表である。It is a table | surface which shows the example of a response template update. 端末装置のウェブページの表示処理の様子を示す図である。It is a figure which shows the mode of the display process of the web page of a terminal device. ログデータベースの例を示す表である。It is a table | surface which shows the example of a log database. ウェブページの表示処理の例を示すフローチャートである。It is a flowchart which shows the example of a display process of a web page. 端末装置のレスポンステンプレートの検証処理の様子を示す図である。It is a figure which shows the mode of the verification process of the response template of a terminal device. レスポンステンプレートの検証処理の例を示すフローチャートである。It is a flowchart which shows the example of the verification process of a response template.

図1は、実施例に係るウェブページ表示システムを示す構成図である。ウェブページ表示システムは、端末装置1及びウェブサーバ(サーバ)2を有する。   FIG. 1 is a configuration diagram illustrating a web page display system according to an embodiment. The web page display system includes a terminal device 1 and a web server (server) 2.

端末装置1及びウェブサーバ(サーバ)2は、インターネットなどのネットワークNWを介して接続され、通信を行う。ネットワークNWは、LTE(Long Term Evolution)などの無線通信ネットワーク、及び光ファイバ通信などの有線ネットワークの少なくとも一方を含む。   The terminal device 1 and the web server (server) 2 are connected via a network NW such as the Internet and perform communication. The network NW includes at least one of a wireless communication network such as LTE (Long Term Evolution) and a wired network such as optical fiber communication.

端末装置1は、例えば、スマートフォンなどのモバイル端末装置や、パーソナルコンピュータなどである。端末装置1は、インターネットエクスプローラ(登録商標)などのブラウザ(ウェブ(Web)ページ(ホームページ)の閲覧用ソフトウェア)がインストールされている。   The terminal device 1 is, for example, a mobile terminal device such as a smartphone or a personal computer. The terminal device 1 is installed with a browser such as Internet Explorer (registered trademark) (software for browsing a web page (homepage)).

端末装置1は、該ソフトウェアを用いて、ユーザから入力された情報に基づいて生成されたリクエストデータREQをウェブサーバ2に送信する。リクエストデータREQは、ウェブページのアドレス(宛先)を示すURL(Uniform Resource Locator)、及び、ウェブページの内容に影響する各種の変数を含む。   The terminal device 1 transmits the request data REQ generated based on the information input from the user to the web server 2 using the software. The request data REQ includes a URL (Uniform Resource Locator) indicating a web page address (destination) and various variables that affect the contents of the web page.

ウェブサーバ2は、アクセスしてきた端末装置1にウェブページを提供する。ウェブサーバ2は、端末装置1から受信したリクエストデータREQに応じて、ウェブページを表示するためのレスポンスデータRESを端末装置1に送信する。レスポンスデータRESは、HTML(Hyper Text Markup Language)などのマークアップ言語により構成されている。端末装置1は、ブラウザを用いて、ウェブサーバ2から受信したレスポンスデータRESに基づいてウェブページを画面に表示する。   The web server 2 provides a web page to the terminal device 1 that has accessed. The web server 2 transmits response data RES for displaying a web page to the terminal device 1 in response to the request data REQ received from the terminal device 1. The response data RES is configured by a markup language such as HTML (Hyper Text Markup Language). The terminal device 1 displays a web page on the screen based on the response data RES received from the web server 2 using a browser.

次に、ウェブサーバ2の構成を説明する。図2は、ウェブサーバ2の例を示す構成図である。   Next, the configuration of the web server 2 will be described. FIG. 2 is a configuration diagram illustrating an example of the web server 2.

ウェブサーバ2は、CPU20、ROM(Read Only Memory)21、RAM(Random Access Memory)22、HDD23、通信処理部24、可搬型記憶媒体用ドライブ25、入力処理部26、及び画像処理部27などを備えている。CPU20は、演算処理手段であり、所定のプログラムに従って動作する。CPU20は、各部21〜27とバス28を介して接続されている。   The web server 2 includes a CPU 20, a ROM (Read Only Memory) 21, a RAM (Random Access Memory) 22, an HDD 23, a communication processing unit 24, a portable storage medium drive 25, an input processing unit 26, an image processing unit 27, and the like. I have. The CPU 20 is arithmetic processing means and operates according to a predetermined program. The CPU 20 is connected to the units 21 to 27 via the bus 28.

RAM22は、CPU20のワーキングメモリとして用いられる。また、ROM21及びHDD23は、CPU20を動作させるプログラムなどを記憶する記憶手段として用いられる。また、HDD23には、ウェブサーバ2が提供するウェブページが含まれるウェブページデータベース(DB)23aが格納されている。通信処理部24は、例えばネットワークカードであり、ネットワークNWを介して、端末装置1などの他装置と通信を行う通信手段である。   The RAM 22 is used as a working memory for the CPU 20. The ROM 21 and the HDD 23 are used as storage means for storing a program for operating the CPU 20. Further, the HDD 23 stores a web page database (DB) 23 a including web pages provided by the web server 2. The communication processing unit 24 is, for example, a network card, and is a communication unit that communicates with other devices such as the terminal device 1 via the network NW.

可搬型記憶媒体用ドライブ25は、可搬型記憶媒体250に対して、情報の書き込みや情報の読み出しを行う装置である。可搬型記憶媒体250の例としては、USBメモリ(USB: Universal Serial Bus)、CD−R(Compact Disc Recordable)、及びメモリカードなどが挙げられる。なお、CPU20を動作させるプログラムは、可搬型記憶媒体250に格納されてもよい。   The portable storage medium drive 25 is a device that writes information to and reads information from the portable storage medium 250. Examples of the portable storage medium 250 include a USB memory (USB: Universal Serial Bus), a CD-R (Compact Disc Recordable), and a memory card. Note that a program for operating the CPU 20 may be stored in the portable storage medium 250.

ウェブサーバ2は、情報の入力操作を行うための入力デバイス260、及び、画像を表示するためのディスプレイ270を、さらに備える。入力デバイス260は、キーボード及びマウスなどの入力手段であり、入力された情報は、入力処理部26を介してCPU20に出力される。ディスプレイ270は、液晶ディスプレイなどの画像表示手段であり、表示される画像データは、CPU20から画像処理部27を介してディスプレイに出力される。なお、入力デバイス260及びディスプレイ270に代えて、これらの機能を備えるタッチパネルなどのデバイスを用いることもできる。   The web server 2 further includes an input device 260 for performing an information input operation and a display 270 for displaying an image. The input device 260 is input means such as a keyboard and a mouse, and input information is output to the CPU 20 via the input processing unit 26. The display 270 is image display means such as a liquid crystal display, and the displayed image data is output from the CPU 20 to the display via the image processing unit 27. In addition, it can replace with the input device 260 and the display 270, and devices, such as a touch panel provided with these functions, can also be used.

CPU20は、ROM21、またはHDD23などに格納されているプログラム、または可搬型記憶媒体用ドライブ25が可搬型記憶媒体250から読み取ったプログラムを実行する。なお、プログラムは、通信処理部24を介してダウンロードされたものであってもよい。   The CPU 20 executes a program stored in the ROM 21 or the HDD 23 or a program read from the portable storage medium 250 by the portable storage medium drive 25. The program may be downloaded via the communication processing unit 24.

CPU20は、プログラムを実行すると、端末装置1からのリクエストデータREQに応じて、HDD23内のウェブページDB23aからデータを読み出し、レスポンスデータRESとして端末装置1に送信する。端末装置1は、レスポンスデータRESを用いてウェブページを表示する。   When the CPU 20 executes the program, it reads data from the web page DB 23a in the HDD 23 in response to the request data REQ from the terminal device 1, and transmits it to the terminal device 1 as response data RES. The terminal device 1 displays a web page using the response data RES.

図3には、ウェブページの例が示されている。ウェブページの一例として、図3(a)は、ブログ編集用のウェブページの表示内容を示し、図3(b)は、ブログ確認用のウェブページの表示内容を示す。なお、ブログ編集用のウェブページのURLは、「http://example.com/edit」とし、ブログ確認用のウェブページのURLは、「http://example.com/confirm」とする。   FIG. 3 shows an example of a web page. As an example of the web page, FIG. 3A shows the display content of the web page for blog editing, and FIG. 3B shows the display content of the web page for blog confirmation. The URL of the web page for blog editing is “http://example.com/edit”, and the URL of the web page for blog confirmation is “http://example.com/confirm”.

ユーザは、ブログ編集用のウェブページにおいて、タイトル欄80及び内容欄81に、ブログのタイトル及び内容をそれぞれ入力する。タイトル及び内容の入力後、ユーザは、送信ボタン82を押下することで、ブログ確認用のウェブページを端末装置1に表示させる。このとき、端末装置1は、URL「http://example.com/confirm」を含むリクエストデータREQをウェブサーバ2に送信する。リクエストデータREQは、URL以外にも、タイトル及び内容をそれぞれ示す変数(パラメータ)「title」及び「contents」を含む。   The user inputs the title and content of the blog in the title field 80 and the content field 81 on the web page for blog editing. After inputting the title and content, the user presses the send button 82 to display a web page for blog confirmation on the terminal device 1. At this time, the terminal device 1 transmits request data REQ including the URL “http://example.com/confirm” to the web server 2. In addition to the URL, the request data REQ includes variables (parameters) “title” and “contents” indicating the title and contents, respectively.

ブログ確認用のウェブページには、変数「title」及び「contents」に基づいてタイトル83及び内容84がそれぞれ表示される。ユーザは、変更確定ボタンを押下することで、ログ編集用のウェブページにおいて編集したブログのタイトル及び内容を確定させる。   On the web page for blog confirmation, a title 83 and content 84 are displayed based on the variables “title” and “contents”, respectively. The user presses the change confirmation button to confirm the title and content of the blog edited on the log editing web page.

このように、URL「http://example.com/confirm」のウェブページは、リクエストデータREQの変数「title」及び「contents」に応じて表示内容が異なる。つまり、リクエストデータREQに応じて送信されるレスポンスデータRESの内容は、変数「title」及び「contents」に応じて変化する。   Thus, the display content of the web page with the URL “http://example.com/confirm” differs depending on the variables “title” and “contents” of the request data REQ. That is, the content of the response data RES transmitted according to the request data REQ changes according to the variables “title” and “contents”.

図4には、レスポンスデータRESの例が示されている。本例では、図3(a)に示されたウェブページにおいて、ユーザが、タイトル欄80及び内容欄81に文字列「新機能のご紹介」及び「利便性向上を実現」をそれぞれ入力し、送信ボタン82を押下したと仮定する。このとき、ウェブサーバ2に送信されるレスポンスデータRESには、変数「title」及び「contents」として、文字列「新機能のご紹介」及び「利便性向上を実現」がそれぞれ含まれる。   FIG. 4 shows an example of response data RES. In this example, in the web page shown in FIG. 3A, the user inputs the character strings “Introduction of new functions” and “Improve convenience” in the title column 80 and the content column 81, respectively. Assume that the send button 82 is pressed. At this time, the response data RES transmitted to the web server 2 includes the character strings “introduction of new functions” and “improvement of convenience” as variables “title” and “contents”, respectively.

上述したように、図3(b)のブログ確認用のウェブページには、変数「title」及び「contents」に基づいてタイトル83及び内容84がそれぞれ表示される。このため、ブログ確認用のウェブページのレスポンスデータRESには、符号70,71で示されるように、文字列「新機能のご紹介」及び「利便性向上を実現」がそれぞれ含まれる。   As described above, the title 83 and the content 84 are displayed on the web page for blog confirmation in FIG. 3B based on the variables “title” and “contents”, respectively. For this reason, the response data RES of the web page for blog confirmation includes the character strings “Introduction of new functions” and “Improvement of convenience” as indicated by reference numerals 70 and 71, respectively.

このように、ウェブサーバ2は、受信したリクエストデータREQの変数に応じたレスポンスデータRESを送信する。このため、仮に、端末装置1が、ウェブサーバ2との通信が切断されたとき、予めキャッシュしたキャッシュデータにより代替のウェブページを表示した場合、表示内容は、キャッシュデータの取得時の内容となる。   Thus, the web server 2 transmits the response data RES corresponding to the received request data REQ variable. For this reason, if the terminal device 1 displays an alternative web page with cache data cached in advance when communication with the web server 2 is disconnected, the display content is the content at the time of acquisition of the cache data. .

つまり、キャッシュデータにより表示された代替のウェブページは、変数「title」及び「contents」とは無関係に、一定の内容となる。しかも、キャッシュデータを用いて表示されたウェブページの内容の真偽を検証する手段が存在しないため、ウェブページを閲覧したユーザが誤った情報を取得するおそれがある。   That is, the alternative web page displayed by the cache data has a certain content regardless of the variables “title” and “contents”. In addition, since there is no means for verifying the authenticity of the content of the web page displayed using the cache data, there is a possibility that a user who viewed the web page will acquire incorrect information.

そこで、実施例に係るウェブページ表示システムでは、端末装置1が、リクエストデータREQに応じ変化するウェブサーバ2のレスポンスデータRESの規則を学習する。そして、端末装置1は、ウェブサーバ2との通信が切断時、学習した規則に従って代替レスポンスデータRESxを生成し、代替レスポンスデータRESxに基づいてウェブページを表示する。これにより、ウェブページの表示の利便性が向上する。   Therefore, in the web page display system according to the embodiment, the terminal device 1 learns the rule of the response data RES of the web server 2 that changes according to the request data REQ. When the communication with the web server 2 is disconnected, the terminal device 1 generates alternative response data RESx according to the learned rules, and displays a web page based on the alternative response data RESx. This improves the convenience of displaying the web page.

また、端末装置1は、通信の復旧時にウェブサーバ2から得たレスポンスデータRESと比較することにより、代替レスポンスデータRESxを用いて表示したウェブページの真偽を検証する。以下に、端末装置1の構成について説明する。   Further, the terminal device 1 verifies the authenticity of the web page displayed using the alternative response data RESx by comparing with the response data RES obtained from the web server 2 at the time of restoration of communication. Below, the structure of the terminal device 1 is demonstrated.

図5は、端末装置1の例を示す構成図である。端末装置1は、CPU10、ROM11、RAM12、HDD13、通信処理部14、可搬型記憶媒体用ドライブ15、入力処理部16、及び画像処理部17などを備えている。   FIG. 5 is a configuration diagram illustrating an example of the terminal device 1. The terminal device 1 includes a CPU 10, a ROM 11, a RAM 12, an HDD 13, a communication processing unit 14, a portable storage medium drive 15, an input processing unit 16, an image processing unit 17, and the like.

CPU10は、演算処理手段であり、所定のプログラムに従って動作する。CPU10は、各部11〜17とバス18を介して接続されている。なお、端末装置1は、ソフトウェアにより動作するものに限定されず、CPU10に代えて、特定用途向け集積回路などのハードウェアが用いられてもよい。   The CPU 10 is arithmetic processing means, and operates according to a predetermined program. The CPU 10 is connected to the units 11 to 17 via the bus 18. The terminal device 1 is not limited to one that operates by software, and hardware such as an application specific integrated circuit may be used instead of the CPU 10.

RAM12は、CPU10のワーキングメモリとして用いられる。また、ROM11及びHDD13は、CPU10を動作させるプログラムなどを記憶する記憶手段として用いられる。例えば、HDD13には、ブラウザプログラム13a及びプロキシプログラム(ウェブページ表示プログラム)13bが格納されている。   The RAM 12 is used as a working memory for the CPU 10. The ROM 11 and the HDD 13 are used as storage means for storing a program for operating the CPU 10. For example, the HDD 13 stores a browser program 13a and a proxy program (web page display program) 13b.

ブラウザプログラム13aは、ウェブページを閲覧するためのブラウザとして、CPU10を機能させる。プロキシプログラム13bは、CPU10を、ウェブサーバ2に代わるレスポンスデータRES(代替レスポンスデータRESx)の生成手段として機能させる。なお、HDD13には、上記の機能を実行するために用いられる各種のデータベースも格納されている。   The browser program 13a causes the CPU 10 to function as a browser for browsing web pages. The proxy program 13b causes the CPU 10 to function as a generation unit of response data RES (alternative response data RESx) that replaces the web server 2. The HDD 13 also stores various databases used for executing the above functions.

また、通信処理部14は、例えばネットワークカードであり、ネットワークNWを介して、ウェブサーバ2と通信を行う通信手段である。可搬型記憶媒体用ドライブ15は、可搬型記憶媒体150に対して、情報の書き込みや情報の読み出しを行う装置である。可搬型記憶媒体150の例としては、USBメモリ、CD−R、及びメモリカードなどが挙げられる。なお、ブラウザプログラム13a及びプロキシプログラム13bは、可搬型記憶媒体150に格納されてもよい。   The communication processing unit 14 is, for example, a network card, and is a communication unit that communicates with the web server 2 via the network NW. The portable storage medium drive 15 is a device that writes information to and reads information from the portable storage medium 150. Examples of the portable storage medium 150 include a USB memory, a CD-R, and a memory card. The browser program 13a and the proxy program 13b may be stored in the portable storage medium 150.

端末装置1は、情報の入力操作を行うための入力デバイス160、及び、画像を表示するためのディスプレイ170を、さらに備える。入力デバイス160は、キーボード及びマウスなどの入力手段であり、入力された情報は、入力処理部16を介してCPU10に出力される。ディスプレイ170は、液晶ディスプレイなどの画像表示手段であり、表示される画像データは、CPU10から画像処理部17を介してディスプレイに出力される。なお、入力デバイス160及びディスプレイ170に代えて、これらの機能を備えるタッチパネルなどのデバイスを用いることもできる。   The terminal device 1 further includes an input device 160 for performing an information input operation and a display 170 for displaying an image. The input device 160 is input means such as a keyboard and a mouse, and input information is output to the CPU 10 via the input processing unit 16. The display 170 is image display means such as a liquid crystal display, and displayed image data is output from the CPU 10 to the display via the image processing unit 17. In addition, it can replace with the input device 160 and the display 170, and can also use devices, such as a touchscreen provided with these functions.

CPU10は、ROM11、またはHDD13などに格納されているプログラム、または可搬型記憶媒体用ドライブ15が可搬型記憶媒体150から読み取ったプログラムを実行する。このプログラムには、OS(Operating System)だけでなく、上記のブラウザプログラム13a及びプロキシプログラム13bも含まれる。なお、プログラムは、通信処理部14を介してダウンロードされたものであってもよい。   The CPU 10 executes a program stored in the ROM 11 or the HDD 13 or a program read from the portable storage medium 150 by the portable storage medium drive 15. This program includes not only the OS (Operating System) but also the browser program 13a and the proxy program 13b. The program may be downloaded via the communication processing unit 14.

CPU10は、ブラウザプログラム13a及びプロキシプログラム13bを実行すると、ブラウザ機能部101及びプロキシ機能部102がそれぞれ形成される。ブラウザ機能部101は、上記のブラウザに相当し、ユーザから入力処理部16を介して入力された情報に基づいてリクエストデータREQを生成し、通信処理部14を介してウェブサーバ2に送信する。また、ブラウザ機能部101は、ウェブサーバ2から通信処理部14を介して受信したレスポンスデータRES、または、プロキシ機能部102が生成した代替レスポンスデータRESxに基づいてウェブページをディスプレイ170に表示する。   When the CPU 10 executes the browser program 13a and the proxy program 13b, the browser function unit 101 and the proxy function unit 102 are formed, respectively. The browser function unit 101 corresponds to the above-described browser, generates request data REQ based on information input from the user through the input processing unit 16, and transmits the request data REQ to the web server 2 through the communication processing unit 14. Further, the browser function unit 101 displays a web page on the display 170 based on the response data RES received from the web server 2 via the communication processing unit 14 or the alternative response data RESx generated by the proxy function unit 102.

プロキシ機能部102は、ウェブサーバ2との通信状態に応じて、3つの異なる処理を実行する。このため、プロキシ機能部102は、例えば周期的に通信処理部14にアクセスすることにより、ウェブサーバ2との通信状態を検出する。なお、本実施例において、プロキシ機能部102は、ブラウザ機能部101から独立しているが、これに限定されず、ブラウザの一部(ブラウザプラグインなど)として、ブラウザ機能部101と一体化されていてもよい。   The proxy function unit 102 executes three different processes according to the communication state with the web server 2. For this reason, the proxy function part 102 detects the communication state with the web server 2, for example by accessing the communication process part 14 periodically. In the present embodiment, the proxy function unit 102 is independent of the browser function unit 101, but is not limited thereto, and is integrated with the browser function unit 101 as a part of the browser (such as a browser plug-in). It may be.

図6は、通信状態の判定処理の例を示すフローチャートである。本処理は、例えば周期的に実行される。   FIG. 6 is a flowchart illustrating an example of a communication state determination process. This process is executed periodically, for example.

プロキシ機能部102は、通信処理部14にアクセスすることにより、ウェブサーバ2との通信状態を検出する(ステップSt1)。通信処理部14は、通信状態として、例えば、ウェブサーバ2との通信のエラーレートや、ウェブサーバ2との通信セッションの切断の有無などを、プロキシ機能部102に通知する。なお、プロキシ機能部102は、OSにより提供されるネットワーク接続確認用のAPI(Application Programming Interface)やコマンドなどを用いて通信処理部14にアクセスする。   The proxy function unit 102 detects the communication state with the web server 2 by accessing the communication processing unit 14 (step St1). For example, the communication processing unit 14 notifies the proxy function unit 102 of an error rate of communication with the web server 2 and whether or not the communication session with the web server 2 is disconnected. Note that the proxy function unit 102 accesses the communication processing unit 14 using an API (Application Programming Interface) or a command for network connection confirmation provided by the OS.

プロキシ機能部102は、ウェブサーバ2との通信状態が正常であるか否かを判定する(ステップSt2)。プロキシ機能部102は、例えば、ウェブサーバ2との通信のエラーレートが所定の閾値以下である場合、またはウェブサーバ2との通信セッションが存続している場合、通信状態を正常と判定する。   The proxy function unit 102 determines whether or not the communication state with the web server 2 is normal (step St2). For example, when the error rate of communication with the web server 2 is equal to or lower than a predetermined threshold, or when the communication session with the web server 2 continues, the proxy function unit 102 determines that the communication state is normal.

通信状態が正常である場合(ステップSt2のYes)、プロキシ機能部102は、前回の通信状態の判定結果が異常であるか否かを判定する(ステップSt3)。前回の通信状態の判定結果が異常ではない場合(ステップSt3のNo)、プロキシ機能部102は、ウェブサーバ2からのレスポンスデータRESの学習処理を行う(ステップSt6)。   When the communication state is normal (Yes in step St2), the proxy function unit 102 determines whether or not the determination result of the previous communication state is abnormal (step St3). When the determination result of the previous communication state is not abnormal (No in Step St3), the proxy function unit 102 performs a process for learning the response data RES from the web server 2 (Step St6).

つまり、ウェブサーバ2との通信が正常に維持されている間(オンライン時)、プロキシ機能部102は、リクエストデータREQの変数に応じて変化するレスポンスデータRESの規則を学習し、学習した規則を反映したレスポンステンプレートを生成または更新する。レスポンステンプレートは、ウェブサーバ2との通信の切断時に用いられる代替レスポンスデータRESxを生成するための基礎となるデータである。   That is, while the communication with the web server 2 is normally maintained (when online), the proxy function unit 102 learns the rules of the response data RES that change according to the variable of the request data REQ, and the learned rules are Generate or update the reflected response template. The response template is data serving as a basis for generating alternative response data RESx used when communication with the web server 2 is disconnected.

通信状態が異常である場合(ステップSt2のNo)、プロキシ機能部102は、代替レスポンスデータRESxによるウェブページの表示処理を行う(ステップSt5)。プロキシ機能部102は、例えば、ウェブサーバ2との通信のエラーレートが所定の閾値より大きい場合、またはウェブサーバ2との通信セッションが消失している場合、通信状態を異常と判定する。   When the communication state is abnormal (No in step St2), the proxy function unit 102 performs a web page display process using the alternative response data RESx (step St5). For example, when the error rate of communication with the web server 2 is greater than a predetermined threshold, or when the communication session with the web server 2 has disappeared, the proxy function unit 102 determines that the communication state is abnormal.

つまり、ウェブサーバ2との通信が切断された場合(オフライン時)、プロキシ機能部102は、ブラウザ機能部101から入力されたリクエストデータREQに応じた代替レスポンスデータRESxを生成し、ブラウザ機能部101に出力する。すなわち、プロキシ機能部102は、ウェブサーバ2からのレスポンスデータRESを推測して、推測結果に基づいて代替レスポンスデータRESxを生成する。また、プロキシ機能部102は、ウェブサーバ2との通信が切断中、リクエストデータREQ及び代替レスポンスデータRESxのログをHDD13に保存する。   That is, when communication with the web server 2 is disconnected (when offline), the proxy function unit 102 generates alternative response data RESx corresponding to the request data REQ input from the browser function unit 101, and the browser function unit 101 Output to. That is, the proxy function unit 102 estimates response data RES from the web server 2 and generates alternative response data RESx based on the estimation result. Further, the proxy function unit 102 stores the log of the request data REQ and the alternative response data RESx in the HDD 13 while the communication with the web server 2 is disconnected.

また、前回の通信状態の判定結果が異常である場合(ステップSt3のYes)、プロキシ機能部102は、代替レスポンスデータRESxの検証処理を行う(ステップSt4)。つまり、ウェブサーバ2との通信が復旧した場合、プロキシ機能部102は、HDD13から、リクエストデータREQ及び代替レスポンスデータRESxのログを読み出して、代替レスポンスデータRESxの検証を行う。より具体的には、プロキシ機能部102は、ウェブサーバ2にリクエストデータREQを送信し、受信したレスポンスデータRESと、代替レスポンスデータRESxとを比較する。   When the determination result of the previous communication state is abnormal (Yes in Step St3), the proxy function unit 102 performs verification processing of the alternative response data RESx (Step St4). That is, when communication with the web server 2 is restored, the proxy function unit 102 reads the log of the request data REQ and the alternative response data RESx from the HDD 13 and verifies the alternative response data RESx. More specifically, the proxy function unit 102 transmits the request data REQ to the web server 2 and compares the received response data RES with the alternative response data RESx.

このように、プロキシ機能部102は、ウェブサーバ2との通信状態に応じて、3つの異なる処理(ステップSt4〜St6)を実行する。以下に各処理について説明する。   As described above, the proxy function unit 102 executes three different processes (steps St4 to St6) according to the communication state with the web server 2. Each process will be described below.

図7には、端末装置1の学習処理(ステップSt6)の様子が示されている。プロキシ機能部102は、ブラウザ機能部101から出力されたリクエストデータREQを、通信処理部14に中継する。通信処理部14は、リクエストデータREQを、ネットワークNWを介してウェブサーバ2に送信する。   FIG. 7 shows the learning process (step St6) of the terminal device 1. The proxy function unit 102 relays the request data REQ output from the browser function unit 101 to the communication processing unit 14. The communication processing unit 14 transmits the request data REQ to the web server 2 via the network NW.

また、通信処理部14は、ウェブサーバ2から受信したレスポンスデータRESをプロキシ機能部102に出力する。プロキシ機能部102は、通信処理部14から入力されたレスポンスデータRESをブラウザ機能部101に中継する。   In addition, the communication processing unit 14 outputs the response data RES received from the web server 2 to the proxy function unit 102. The proxy function unit 102 relays the response data RES input from the communication processing unit 14 to the browser function unit 101.

プロキシ機能部102は、リクエストデータREQに応じて変化するレスポンスデータRESの規則を学習する。より具体的には、プロキシ機能部102は、HDD13に格納された変換規則データベース(DB)131が示す各変換規則を用いて、リクエストデータREQ内の変数を変換する。プロキシ機能部102は、レスポンスデータRESから、変換後の変数に一致する箇所を検出することで(符号102b)、レスポンステンプレートを生成する。   The proxy function unit 102 learns the rule of the response data RES that changes according to the request data REQ. More specifically, the proxy function unit 102 converts the variable in the request data REQ using each conversion rule indicated by the conversion rule database (DB) 131 stored in the HDD 13. The proxy function unit 102 generates a response template by detecting a location that matches the converted variable from the response data RES (reference numeral 102b).

図8には、変換規則DB131の例が示されている。本例において、変換規則DB131は、複数の変換規則を列挙するリストの形態で示されているが、他の形態で構成されてもよい。   FIG. 8 shows an example of the conversion rule DB 131. In this example, the conversion rule DB 131 is shown in the form of a list listing a plurality of conversion rules, but may be configured in other forms.

「規則ID」は、変換規則の識別番号である。「名称」は、変換規則の名称である。「変換式」は、変数の変換に用いられる式であり、スクリプト言語などにより記述されている。「変換式」において、リクエストデータREQ内の変数(入力変数)は、「$in」と表記され、変換後の変数(出力変数)は、「$out」と表記されている。   “Rule ID” is an identification number of the conversion rule. “Name” is the name of the conversion rule. The “conversion expression” is an expression used for variable conversion, and is described in a script language or the like. In the “conversion formula”, a variable (input variable) in the request data REQ is expressed as “$ in”, and a variable (output variable) after conversion is expressed as “$ out”.

例えば、規則ID「0」の「単純埋め込み」の場合、図3及び図4の例のように、リクエストデータREQ内の変数(title,及びcontents)は、そのままレスポンスデータRES内に挿入される。規則ID「1」の「インクリメント」の場合、リクエストデータREQ内の変数は、1が加算されて、レスポンスデータRES内に挿入される。規則ID「2」の「改行変換」の場合、リクエストデータREQ内の変数は、改行コード「\n」であるとき、HTMLの改行コード「<br>」に変換されて、レスポンスデータRES内に挿入される。   For example, in the case of “simple embedding” with the rule ID “0”, the variables (title and contents) in the request data REQ are inserted into the response data RES as they are, as in the examples of FIGS. When the rule ID “1” is “increment”, 1 is added to the variable in the request data REQ and the variable is inserted into the response data RES. In the case of “line feed conversion” of rule ID “2”, when the variable in the request data REQ is the line feed code “\ n”, it is converted to the HTML line feed code “<br>” and is contained in the response data RES. Inserted.

「一致率リスト」は、当該規則による変換後の変数が、レスポンスデータRES内の当該箇所の変数に一致する確率(%)を、使用回数ごと「,」(カンマ)で区切って示す。「一致率リスト」は、過去の通信結果に基づいて算出された確率を列挙したものである。すなわち、「一致率リスト」内の最初(「一致率リスト」欄内の最も左)の数値は、1回目の使用時に一致した後、2回目の使用時も一致する確率を示し、その次の数字は、1回目及び2回目の使用時に一致した後、3回目の使用時も一致する確率を示す。一般的に表すと、「一致率リスト」内の左からN番目(N:整数)の数字は、1〜N回目の使用時に一致した後、N+1回目の使用時も一致する確率を示す。   The “match rate list” indicates the probability (%) that the variable after conversion according to the rule matches the variable at the corresponding location in the response data RES, separated by “,” (comma) for each use count. The “match rate list” is a list of probabilities calculated based on past communication results. That is, the first numerical value in the “matching rate list” (the leftmost in the “matching rate list” column) indicates the probability of matching after the first use and then the second use. The numbers indicate the probability of matching after the first use and the second use, and after the third use. Generally speaking, the Nth (N: integer) number from the left in the “matching rate list” indicates the probability of matching after the 1st to Nth use, and also after the N + 1th use.

例えば、規則ID「0」の「単純埋め込み」の場合、1回目の使用時に一致した後、2回目の使用時も一致する確率は、90(%)であり、1回目及び2回目の使用時に一致した後、3回目の使用時も一致する確率は、95(%)である。また、規則ID「1」の「インクリメント」の場合、1回目の使用時に一致した後、2回目の使用時も一致する確率は、80(%)であり、1回目及び2回目の使用時に一致した後、3回目の使用時も一致する確率は、95(%)である。なお、変換規則DB131は、ユーザが入力した情報に基づいて生成されてもよいし、機械的な学習手段などにより自動的に生成されてもよい。   For example, in the case of “simple embedding” with the rule ID “0”, the probability of matching after the first use after the first use is 90 (%), and at the first and second use After matching, the probability of matching at the third use is 95 (%). In addition, in the case of “increment” of the rule ID “1”, the probability of matching after the first use is 80 (%) after the first use and is the same when using the first and second times. After that, the probability of matching at the time of the third use is 95 (%). The conversion rule DB 131 may be generated based on information input by the user, or may be automatically generated by a mechanical learning unit or the like.

プロキシ機能部102は、変換規則DB131内の各変換規則を用いて、変数を変換し、レスポンスデータRESから、変換後の変数に一致する箇所を検出し(符号102a参照)、該箇所を変数に置換することにより、レスポンステンプレートを生成する。レスポンステンプレートは、ウェブサーバ2との通信が切断されたときに用いられる代替レスポンスデータの基礎となるデータである。生成されたレスポンスデータは、HDD13内の代替レスポンスデータベース(DB)132に登録される。   The proxy function unit 102 converts the variable using each conversion rule in the conversion rule DB 131, detects a position that matches the converted variable from the response data RES (see reference numeral 102a), and sets the position as a variable. A response template is generated by replacement. The response template is data serving as a basis for alternative response data used when communication with the web server 2 is disconnected. The generated response data is registered in an alternative response database (DB) 132 in the HDD 13.

図9には、代替レスポンスDB132の例が示されている。レスポンステンプレートは、URLごとに登録されている。レスポンステンプレートは、上記の検出処理102bで検出されたレスポンスデータRES内の箇所を、変数(「$a」,「$b」)で置き換えたものと、適用された変換規則の変換式(カッコ内参照)とを含む。   FIG. 9 shows an example of the alternative response DB 132. The response template is registered for each URL. In the response template, the place in the response data RES detected in the detection process 102b is replaced with a variable (“$ a”, “$ b”), and the conversion expression (in parentheses) of the applied conversion rule. Reference).

また、代替レスポンスDB132には、レスポンステンプレートごとに、当該レスポンステンプレートの「使用回数」、「規則ID」、及び「一致率」が登録されている。「使用回数」は、プロキシ機能部102が当該レスポンステンプレートに基づいて代替レスポンスデータRESxを生成した回数を示す。なお、レスポンステンプレートの生成時、「使用回数」は1回を示す。   In the alternative response DB 132, the “usage count”, “rule ID”, and “match rate” of the response template are registered for each response template. “Number of uses” indicates the number of times that the proxy function unit 102 has generated the alternative response data RESx based on the response template. Note that when the response template is generated, the “usage count” indicates one time.

「規則ID」は、図8に示された変換規則のうち、当該レスポンステンプレートに適用される1以上の変換規則の規則IDを示す。例えば、「http://example.com/contents」のレスポンステンプレートは、規則ID「0」の「単純埋め込み」の変換規則が適用される。このため、当該ウェブページの代替レスポンスデータRESxは、リクエストデータREQ内の変数「title」及び「contents」を、レスポンステンプレート内の「$a」及び「$b」に入力することにより生成される。   “Rule ID” indicates a rule ID of one or more conversion rules applied to the response template among the conversion rules shown in FIG. For example, the conversion rule of “simple embedding” with the rule ID “0” is applied to the response template “http://example.com/contents”. Therefore, the alternative response data RESx of the web page is generated by inputting the variables “title” and “contents” in the request data REQ into “$ a” and “$ b” in the response template.

「一致率」は、図8に示された変換規則の「一致率リスト」から、「使用回数」に応じて選択された確率を示す。例えば、「http://example.com/contents」のレスポンステンプレートは、規則ID「0」の「単純埋め込み」の変換規則が適用され、「使用回数」は1回である。このため、該レスポンステンプレートの「一致率」は、規則ID「0」の「一致率リスト」内の数字のうち、最初の数字である90(%)となる。   “Match rate” indicates a probability selected from the “Match rate list” of the conversion rule shown in FIG. For example, the conversion template of “simple embedding” with the rule ID “0” is applied to the response template “http://example.com/contents”, and the “use count” is one. Therefore, the “match rate” of the response template is 90 (%) which is the first number among the numbers in the “match rate list” of the rule ID “0”.

また、「http://example.org/profile」のレスポンステンプレートは、規則ID「2」の「改行変換」の変換規則が適用され、「使用回数」は3回である。このため、該レスポンステンプレートの「一致率」は、規則ID「2」の「一致率リスト」内の数字のうち、左から3番目の数字である90(%)となる。なお、「一致率」は、後述するように、レスポンステンプレートの使用可否の判定に用いられる。   The response template “http://example.org/profile” is applied with the conversion rule of “line feed conversion” with the rule ID “2”, and the “use count” is three. Therefore, the “match rate” of the response template is 90 (%), which is the third number from the left among the numbers in the “match rate list” of the rule ID “2”. The “match rate” is used to determine whether or not the response template can be used, as will be described later.

プロキシ機能部102は、レスポンステンプレートを用いて代替レスポンスデータRESxを生成する。しかし、レスポンステンプレートは、URLごとに生成されるため、ウェブサーバ2にアクセスするたびに生成され、増加する。このため、プロキシ機能部102は、例えば使用頻度に応じて、レスポンステンプレートを削除してもよい。   The proxy function unit 102 generates alternative response data RESx using the response template. However, since the response template is generated for each URL, the response template is generated and increased every time the web server 2 is accessed. For this reason, the proxy function part 102 may delete a response template, for example according to use frequency.

また、プロキシ機能部102は、リクエストデータREQをウェブサーバ2に送信するたびに、代替レスポンスDB132を用いて、送信したリクエストデータに応じた代替レスポンスデータRESxを生成する。プロキシ機能部102は、生成した代替レスポンスデータRESxと、ウェブサーバ2から受信したレスポンスデータRESと比較(符号102a参照)し、該比較結果に基づいて、レスポンステンプレート(つまり変換規則)を更新する。これにより、プロキシ機能部102は、代替レスポンスDB132の内容を充実させ、代替レスポンスデータRESxの確実性を向上することができる。   Further, every time the request function REQ is transmitted to the web server 2, the proxy function unit 102 uses the alternative response DB 132 to generate alternative response data RESx corresponding to the transmitted request data. The proxy function unit 102 compares the generated alternative response data RESx with the response data RES received from the web server 2 (see reference numeral 102a), and updates the response template (that is, the conversion rule) based on the comparison result. Thereby, the proxy function part 102 can enrich the content of the alternative response DB 132 and improve the certainty of the alternative response data RESx.

図10は、学習処理の例を示すフローチャートである。本処理は、図6のステップSt6において実行される。   FIG. 10 is a flowchart illustrating an example of learning processing. This process is executed in step St6 of FIG.

プロキシ機能部102は、ブラウザ機能部101からのリクエストデータREQの入力の検出の有無を判定する(ステップSt11)。プロキシ機能部102は、リクエストデータREQの入力が検出されない場合(ステップSt11のNo)、処理を終了する。プロキシ機能部102は、リクエストデータREQの入力が検出された場合(ステップSt11のYes)、代替レスポンスDB132に、リクエストデータREQ内のURLに対応するレスポンステンプレートが登録されているか否かを判定する(ステップSt12)。   The proxy function unit 102 determines whether or not the input of the request data REQ from the browser function unit 101 has been detected (step St11). When the input of the request data REQ is not detected (No in step St11), the proxy function unit 102 ends the process. When the input of the request data REQ is detected (Yes in step St11), the proxy function unit 102 determines whether or not a response template corresponding to the URL in the request data REQ is registered in the alternative response DB 132 ( Step St12).

レスポンステンプレートが登録されていない場合(ステップSt12のNo)、プロキシ機能部102は、通信処理部14を介し、リクエストデータREQをウェブサーバ2に送信する(ステップSt19)。次に、プロキシ機能部102は、通信処理部14を介し、ウェブサーバ2からレスポンスデータRESを受信する(ステップSt20)。図3のウェブページの例を挙げると、リクエストデータREQに、変数「title」及び「contents」として、文字列「新機能のご紹介」及び「利便性向上を実現」がそれぞれ含まれる場合、レスポンスデータRESは、図4に示される内容となる。   When the response template is not registered (No in Step St12), the proxy function unit 102 transmits the request data REQ to the web server 2 via the communication processing unit 14 (Step St19). Next, the proxy function unit 102 receives the response data RES from the web server 2 via the communication processing unit 14 (step St20). In the example of the web page in FIG. 3, if the request data REQ includes the characters “introduction of new functions” and “improve convenience” as the variables “title” and “contents”, the response The data RES has the contents shown in FIG.

次に、プロキシ機能部102は、レスポンスデータRESから、リクエストデータREQ内の変数の変換結果(変換後の変数)に一致する箇所を検出する(ステップSt21)。このとき、プロキシ機能部102は、変換規則DB131に登録された変換規則を順次に使用して変数を変換し、レスポンスデータRES内の一致箇所を検出する。   Next, the proxy function unit 102 detects, from the response data RES, a location that matches the variable conversion result (converted variable) in the request data REQ (step St21). At this time, the proxy function unit 102 sequentially converts the variables using the conversion rules registered in the conversion rule DB 131, and detects a matching portion in the response data RES.

次に、プロキシ機能部102は、検出結果に基づいて、レスポンステンプレートを生成する(ステップSt22)。次に、プロキシ機能部102は、生成したレスポンステンプレートを、代替レスポンスDB132に登録する(ステップSt23)。   Next, the proxy function part 102 produces | generates a response template based on a detection result (step St22). Next, the proxy function unit 102 registers the generated response template in the alternative response DB 132 (step St23).

図11には、レスポンステンプレートの生成例が示されている。図11は、ウェブサーバ2への初回のアクセスにおいて、図4のレスポンスデータRESに基づいて生成された代替レスポンスDB132内のレスポンステンプレートを示す。   FIG. 11 shows an example of generating a response template. FIG. 11 shows a response template in the alternative response DB 132 generated based on the response data RES of FIG. 4 in the first access to the web server 2.

図4のレスポンスデータRESのうち、文字列「新機能のご紹介」及び「利便性向上を実現」の箇所70,71は、変数「title」及び「contents」を、規則ID「0」の「単純埋め込み」で変換したものに一致する。このため、レスポンステンプレートは、文字列「新機能のご紹介」及び「利便性向上を実現」の箇所70,71を、規則ID「0」の「単純埋め込み」が適用される変数「$a」及び「$b」で置換することにより生成される。なお、生成されたレスポンステンプレートの「一致率」は、「使用回数」が1回であるため、90(%)となる。   In the response data RES of FIG. 4, the portions 70 and 71 of the character strings “introduction of new functions” and “improve convenience” are the variables “title” and “contents” and the rule ID “0” “ It matches the one converted by "simple embedding". For this reason, the response template includes the variable “$ a” to which “simple embedding” of the rule ID “0” is applied to the portions 70 and 71 of the character strings “introduction of new functions” and “improvement of convenience”. And “$ b”. The “match rate” of the generated response template is 90 (%) because the “use count” is one.

生成したレスポンステンプレートの登録後、プロキシ機能部102は、ウェブサーバ2から受信したレスポンスデータRESをブラウザ機能部101に出力し(ステップSt25)、処理を終了する。これにより、ディスプレイ170に、レスポンスデータRESに基づくウェブページが表示される。   After registering the generated response template, the proxy function unit 102 outputs the response data RES received from the web server 2 to the browser function unit 101 (step St25), and ends the process. Thereby, the web page based on the response data RES is displayed on the display 170.

また、レスポンステンプレートが登録されている場合(ステップSt12のYes)、プロキシ機能部102は、リクエストデータREQ内のURLに応じたレスポンステンプレートに基づいて、代替レスポンスデータRESxを生成する(ステップSt13)。なお、以下の処理の説明では、一例として、代替レスポンスDB132に、図11に示されたレスポンステンプレートが登録されていることを前提とする。   When the response template is registered (Yes in step St12), the proxy function unit 102 generates alternative response data RESx based on the response template corresponding to the URL in the request data REQ (step St13). In the following description of the processing, as an example, it is assumed that the response template shown in FIG. 11 is registered in the alternative response DB 132.

次に、プロキシ機能部102は、通信処理部14を介し、リクエストデータREQをウェブサーバ2に送信する(ステップSt14)。次に、プロキシ機能部102は、通信処理部14を介し、ウェブサーバ2からレスポンスデータRESを受信する(ステップSt15)。次に、プロキシ機能部102は、代替レスポンスデータRESxとレスポンスデータRESを比較する(ステップSt16)。   Next, the proxy function unit 102 transmits the request data REQ to the web server 2 via the communication processing unit 14 (Step St14). Next, the proxy function unit 102 receives the response data RES from the web server 2 via the communication processing unit 14 (step St15). Next, the proxy function unit 102 compares the alternative response data RESx and the response data RES (step St16).

例えば、ウェブサーバ2への2度目のアクセスにおいて、レスポンスデータRESが、変数「title」及び「contents」として、文字列「新機能のご紹介」及び「新機能の概要」をそれぞれ含むとする。この場合、レスポンスデータRESは、図12に示される内容となる。   For example, in the second access to the web server 2, it is assumed that the response data RES includes character strings “Introduction of new function” and “Outline of new function” as variables “title” and “contents”, respectively. In this case, the response data RES has the contents shown in FIG.

また、当該URLのレスポンステンプレート(図11参照)は、規則ID「0」の「単純埋め込み」が適用される。このため、代替レスポンスデータRESxは、レスポンステンプレート内の変数「$a」及び「$b」を、文字列「新機能のご紹介」及び「新機能の概要」によりそれぞれ置換することにより生成される。このため、代替レスポンスデータRESxは、図12に示されたレスポンスデータRESと同様の内容となる。つまり、代替レスポンスデータRESxは、レスポンスデータRESと一致する。   In addition, “simple embedding” of the rule ID “0” is applied to the response template of the URL (see FIG. 11). Therefore, the alternative response data RESx is generated by replacing the variables “$ a” and “$ b” in the response template with the character strings “Introduction of new function” and “Outline of new function”, respectively. . For this reason, the alternative response data RESx has the same contents as the response data RES shown in FIG. That is, the alternative response data RESx matches the response data RES.

代替レスポンスデータRESxとレスポンスデータRESが一致する場合(ステップSt17のYes)、プロキシ機能部102は、レスポンステンプレートの一致率を更新する(ステップSt18)。   When the alternative response data RESx and the response data RES match (Yes in step St17), the proxy function unit 102 updates the match rate of the response template (step St18).

図13には、一致率の更新例が示されている。レスポンステンプレートの使用回数は、ウェブサーバ2へのアクセスが2度目であるので、2回となる。このため、一致率は、図8の規則ID「0」の「単純埋め込み」の一致率リスト内の数字のうち、左から2番目の数字、つまり95(%)となる。   FIG. 13 shows an example of updating the match rate. Since the access to the web server 2 is the second time, the response template is used twice. Therefore, the match rate is the second number from the left among the numbers in the match rate list of “simple embedding” with the rule ID “0” in FIG. 8, that is, 95 (%).

レスポンステンプレートの一致率の更新後、プロキシ機能部102は、上記のステップSt25の処理を行い、処理を終了する。   After the response template match rate is updated, the proxy function unit 102 performs the process of step St25 and ends the process.

また、代替レスポンスデータRESxとレスポンスデータRESが一致しない場合(ステップSt17のNo)、プロキシ機能部102は、レスポンステンプレートを削除する(ステップSt24)。次に、プロキシ機能部102は、上記のステップSt21〜St23の処理を実行することにより、レスポンステンプレートを再生成する。つまり、プロキシ機能部102は、リクエストデータREQの変数に応じて変化するレスポンスデータRESの規則を更新する。レスポンステンプレートを再生成後、プロキシ機能部102は、上記のステップSt25の処理を行い、処理を終了する。   If the alternative response data RESx and the response data RES do not match (No in step St17), the proxy function unit 102 deletes the response template (step St24). Next, the proxy function unit 102 regenerates the response template by executing the processes of steps St21 to St23 described above. That is, the proxy function unit 102 updates the rule of the response data RES that changes according to the variable of the request data REQ. After regenerating the response template, the proxy function unit 102 performs the process of step St25 and ends the process.

例えば、ウェブサーバ2への3度目のアクセスにおいて、レスポンスデータRESが、変数「title」及び「contents」として、文字列「新機能のご紹介」及び「利便性向上を実現\n処理を高速化」をそれぞれ含むとする。ここで、「\n」は、改行コードを示す。この場合、プロキシ機能部102は、図13に示されるレスポンステンプレートに基づいて、図14に示される代替レスポンスデータRESxを生成する。   For example, in the third access to the web server 2, the response data RES is the variable “title” and “contents”, and the character string “Introduction of new functions” and “Convenience improvement” \ nSpeedup of processing Are included. Here, “\ n” indicates a line feed code. In this case, the proxy function unit 102 generates alternative response data RESx shown in FIG. 14 based on the response template shown in FIG.

また、ウェブサーバ2が送信するレスポンスデータRESは、図15に示される内容となる。この場合、レスポンスデータRES内の改行コード73は「<br>」であるのに対し、代替レスポンスデータRESx内の改行コード72は「\n」である。このため、プロキシ機能部102は、レスポンスデータRESと代替レスポンスデータRESxを比較した結果(ステップSt16)、両者を不一致と判定して(ステップSt17のNo)、レスポンステンプレートを更新する(ステップSt21〜St23)。   Further, the response data RES transmitted by the web server 2 has the contents shown in FIG. In this case, the line feed code 73 in the response data RES is “<br>”, whereas the line feed code 72 in the alternative response data RESx is “\ n”. For this reason, the proxy function unit 102 compares the response data RES and the alternative response data RESx (step St16), determines that they do not match (No in step St17), and updates the response template (steps St21 to St23). ).

図16には、この場合のレスポンステンプレートの更新例が示されている。本例では、リクエストデータREQ内の変数「title」(「新機能のご紹介」)は、レスポンスデータRES内の文字列「新機能のご紹介」に一致する。このため、レスポンステンプレートは、変数「title」に関して、規則ID「0」の「単純埋め込み」が適用される(「レスポンステンプレート」欄内の「$a」参照)。   FIG. 16 shows an example of updating the response template in this case. In this example, the variable “title” (“introduction of new function”) in the request data REQ matches the character string “introduction of new function” in the response data RES. Therefore, for the response template, “simple embedding” of the rule ID “0” is applied to the variable “title” (see “$ a” in the “response template” column).

また、リクエストデータREQ内の変数「contents」(「利便性向上を実現\n処理を高速化」)は、レスポンスデータRES内の文字列「利便性向上を実現<br>処理を高速化」に対応する。つまり、「\n」の改行コード72は、「<br>」の改行コード73に変換されている。このため、レスポンステンプレートは、変数「contents」に関して、規則ID「2」の「改行変換」が適用される(「レスポンステンプレート」欄内の「$b」参照)。   Also, the variable “contents” in the request data REQ (“improves convenience \ n speeds up processing”) is the character string in the response data RES “provides improved convenience <br> speeds up processing”. Correspond. That is, the line feed code 72 of “\ n” is converted into the line feed code 73 of “<br>”. For this reason, the response template is applied with “line feed conversion” of the rule ID “2” regarding the variable “contents” (see “$ b” in the “response template” column).

したがって、レスポンステンプレートの「規則ID」として、「0」及び「2」が登録される。また、「使用回数」は、レスポンステンプレートが再生成されたので、「1」となる。「一致率」は、規則ID「0」,「1」の一致率リスト内の1回目に該当する数字のうち、最小の数字である80(%)が選択される。   Therefore, “0” and “2” are registered as the “rule ID” of the response template. Further, “usage count” is “1” because the response template is regenerated. As the “match rate”, 80 (%) which is the smallest number among the numbers corresponding to the first time in the match rate list of the rule IDs “0” and “1” is selected.

このように、プロキシ機能部102は、リクエストデータREQ内の変数に応じて変化するレスポンスデータRESの規則を学習し、代替レスポンスDB132内のレスポンステンプレートを生成及び更新する。このため、以下に述べるウェブページの表示処理において、正確な代替レスポンスデータRESxが生成され、代替のウェブページの精度を向上される。   As described above, the proxy function unit 102 learns the rules of the response data RES that change according to the variables in the request data REQ, and generates and updates the response template in the alternative response DB 132. Therefore, in the web page display process described below, accurate alternative response data RESx is generated, and the accuracy of the alternative web page is improved.

図17には、端末装置1のウェブページの表示処理(ステップSt5)の様子が示されている。ここで、端末装置1は、符号9で示されるように、ウェブサーバ2との通信が切断されている。なお、図17において、図7と共通する構成については同一の符号を付し、その説明を省略する。   FIG. 17 shows a state of the web page display process (step St5) of the terminal device 1. Here, the terminal device 1 is disconnected from the web server 2 as indicated by reference numeral 9. In FIG. 17, the same reference numerals are given to the same components as those in FIG. 7, and description thereof is omitted.

プロキシ機能部102は、ブラウザ機能部101からリクエストデータREQが入力されると、代替レスポンスDB132を用いて、リクエストデータREQに応じた代替レスポンスデータRESxを生成し、ブラウザ機能部101に出力する。すなわち、プロキシ機能部102は、上記の学習処理において学習した変換規則に従い、リクエストデータREQに応じた代替レスポンスデータRESxを生成し、ブラウザ機能部101により代替レスポンスデータRESxに基づいてウェブページを表示する。   When the request data REQ is input from the browser function unit 101, the proxy function unit 102 generates alternative response data RESx corresponding to the request data REQ using the alternative response DB 132, and outputs it to the browser function unit 101. That is, the proxy function unit 102 generates alternative response data RESx corresponding to the request data REQ in accordance with the conversion rule learned in the learning process, and displays a web page based on the alternative response data RESx by the browser function unit 101. .

また、プロキシ機能部102は、リクエストデータREQ内の変数及び代替レスポンスデータRESxを、HDD13内のログデータベース(DB)133に記録する。図18には、ログDB133の例が示されている。リクエストデータREQ内の変数(「key1」、「key2」)及び代替レスポンスデータRESxは、URLごとに記録される。ログデータベース(DB)133は、後述するレスポンステンプレートの検証処理に用いられる。   Further, the proxy function unit 102 records the variable in the request data REQ and the alternative response data RESx in the log database (DB) 133 in the HDD 13. FIG. 18 shows an example of the log DB 133. The variables (“key1”, “key2”) and the alternative response data RESx in the request data REQ are recorded for each URL. The log database (DB) 133 is used for a response template verification process to be described later.

図19は、ウェブページの表示処理の例を示すフローチャートである。本処理は、図6のステップSt5において実行される。   FIG. 19 is a flowchart illustrating an example of web page display processing. This process is executed in step St5 of FIG.

プロキシ機能部102は、ブラウザ機能部101からのリクエストデータREQの入力の検出の有無を判定する(ステップSt31)。プロキシ機能部102は、リクエストデータREQの入力が検出されない場合(ステップSt31のNo)、処理を終了する。プロキシ機能部102は、リクエストデータREQの入力が検出された場合(ステップSt31のYes)、代替レスポンスDB132に、リクエストデータREQ内のURLに対応するレスポンステンプレートが登録されているか否かを判定する(ステップSt32)。   The proxy function unit 102 determines whether or not the input of the request data REQ from the browser function unit 101 has been detected (step St31). When the input of the request data REQ is not detected (No in Step St31), the proxy function unit 102 ends the process. When the input of the request data REQ is detected (Yes in step St31), the proxy function unit 102 determines whether or not a response template corresponding to the URL in the request data REQ is registered in the alternative response DB 132 ( Step St32).

レスポンステンプレートが登録されていない場合(ステップSt32のNo)、プロキシ機能部102は、ユーザにエラーを通知し(ステップSt37)、処理を終了する。より具体的には、プロキシ機能部102は、ブラウザ機能部101に、当該URLのウェブページが表示できない旨のメッセージを、ディスプレイ170に表示させる。   When the response template is not registered (No in Step St32), the proxy function unit 102 notifies the user of an error (Step St37) and ends the process. More specifically, the proxy function unit 102 causes the display unit 170 to display a message indicating that the web page with the URL cannot be displayed on the browser function unit 101.

レスポンステンプレートが登録されている場合(ステップSt32のYes)、プロキシ機能部102は、代替レスポンスDB132から、当該レスポンステンプレートの一致率を検索し、一致率>閾値THの成否を判定する(ステップSt33)。一致率>閾値THが成立しない場合(ステップSt33のNo)、プロキシ機能部102は、ユーザにエラーを通知し(ステップSt37)、処理を終了する。これにより、精度が低いレスポンステンプレートの使用が防止される。   When the response template is registered (Yes in step St32), the proxy function unit 102 searches the alternative response DB 132 for the matching rate of the response template, and determines whether or not the matching rate> the threshold value TH (step St33). . When the coincidence rate> threshold value TH is not satisfied (No in Step St33), the proxy function unit 102 notifies the user of an error (Step St37) and ends the process. This prevents use of a response template with low accuracy.

また、一致率>閾値THが成立する場合(ステップSt33のYes)、プロキシ機能部102は、レスポンステンプレートに基づいて代替レスポンスデータRESxを生成する(ステップSt34)。代替レスポンスデータRESxの生成については、図14などを参照して述べた通りである。   Further, when the coincidence rate> the threshold value TH is satisfied (Yes in step St33), the proxy function unit 102 generates alternative response data RESx based on the response template (step St34). The generation of the alternative response data RESx is as described with reference to FIG.

次に、プロキシ機能部102は、生成した代替レスポンスデータRESxをブラウザ機能部101に出力する(ステップSt35)。これにより、ディスプレイ170に、代替レスポンスデータRESxに基づくウェブページが表示される。したがって、ユーザは、端末装置1とウェブサーバ2の通信が切断された場合でも、図3(b)に例示されたブログの確認用ウェブページのように、入力した情報に基づいて表示内容が変化するウェブページを閲覧できる。   Next, the proxy function unit 102 outputs the generated alternative response data RESx to the browser function unit 101 (step St35). As a result, the web page based on the alternative response data RESx is displayed on the display 170. Therefore, even when the communication between the terminal device 1 and the web server 2 is disconnected, the display content changes based on the input information, such as the blog confirmation web page illustrated in FIG. Can browse web pages.

次に、プロキシ機能部102は、ログDB133に、リクエストデータREQ内の変数及び代替レスポンスデータRESxを記録する(ステップSt36)。このようにして、ウェブページの表示処理は行われる。   Next, the proxy function unit 102 records the variable in the request data REQ and the alternative response data RESx in the log DB 133 (Step St36). In this way, web page display processing is performed.

このように、プロキシ機能部102は、予め学習したレスポンスデータRESの規則に従って、ウェブサーバ2に代わり、疑似的な代替レスポンスデータRESxを生成し、代替レスポンスデータRESxに基づいてウェブページを表示する。したがって、端末装置1は、リクエストデータREQに応じたウェブページを表示することができる。ウェブページの精度(正確さ)は、上記の学習処理だけでなく、レスポンステンプレートの検証処理によっても高めることができる。   As described above, the proxy function unit 102 generates pseudo substitute response data RESx instead of the web server 2 according to the rules of the response data RES learned in advance, and displays the web page based on the substitute response data RESx. Therefore, the terminal device 1 can display a web page corresponding to the request data REQ. The accuracy (accuracy) of the web page can be improved not only by the learning process described above but also by the response template verification process.

図20には、端末装置1のレスポンステンプレートの検証処理(図6のステップSt4)の様子が示されている。ここで、端末装置1とウェブサーバ2の通信は、復旧している。なお、図20において、図7及び図17と共通する構成については同一の符号を付し、その説明を省略する。   FIG. 20 shows the response template verification process (step St4 in FIG. 6) of the terminal device 1. Here, the communication between the terminal device 1 and the web server 2 is restored. In FIG. 20, the same components as those in FIGS. 7 and 17 are denoted by the same reference numerals, and the description thereof is omitted.

プロキシ機能部102は、ウェブサーバ2との通信が復旧すると、ログDB133からリクエストデータREQ内の変数及び代替レスポンスデータRESxを読み出す。プロキシ機能部102は、読み出した変数を、当該URLとともにリクエストデータREQに含めて、ウェブサーバ2に送信する。   When communication with the web server 2 is restored, the proxy function unit 102 reads the variables in the request data REQ and the alternative response data RESx from the log DB 133. The proxy function unit 102 includes the read variable together with the URL in the request data REQ and transmits it to the web server 2.

プロキシ機能部102は、ウェブサーバ2から受信したレスポンスデータRESと、ログDB133から読み出した代替レスポンスデータRESxとを比較し(符号102c)、比較結果を、ユーザに通知するためにブラウザ機能部101に出力する。これにより、例えば、代替レスポンスデータRESxを用いて表示したウェブページと、ウェブサーバ2から受信したレスポンスデータRESを用いて表示されるウェブページの差分が、ディスプレイ170に表示される。したがって、ユーザは、ウェブページから誤った情報を取得したことを認識するとともに、正しい情報を取得することができる。   The proxy function unit 102 compares the response data RES received from the web server 2 with the alternative response data RESx read from the log DB 133 (reference numeral 102c), and sends the comparison result to the browser function unit 101 to notify the user of the comparison result. Output. Thereby, for example, the difference between the web page displayed using the alternative response data RESx and the web page displayed using the response data RES received from the web server 2 is displayed on the display 170. Therefore, the user can acquire the correct information while recognizing that the incorrect information is acquired from the web page.

また、プロキシ機能部102は、上記の比較結果に基づいて代替レスポンスDB132内のレスポンステンプレート(つまり変換規則)を更新する。これにより、プロキシ機能部102は、代替レスポンスDB132の内容を充実させ、代替レスポンスデータRESxの確実性を向上することができる。なお、レスポンステンプレートの検証処理は、ログDB133に記録されている全てのリクエストデータREQ内の変数及び代替レスポンスデータRESxについて実行される。   Further, the proxy function unit 102 updates the response template (that is, the conversion rule) in the alternative response DB 132 based on the comparison result. Thereby, the proxy function part 102 can enrich the content of the alternative response DB 132 and improve the certainty of the alternative response data RESx. Note that the response template verification process is executed for all the variables in the request data REQ and the alternative response data RESx recorded in the log DB 133.

図21は、レスポンステンプレートの検証処理の例を示すフローチャートである。本処理は、図6のステップSt4において実行される。   FIG. 21 is a flowchart illustrating an example of response template verification processing. This process is executed in step St4 of FIG.

プロキシ機能部102は、ブラウザ機能部101を介して、ウェブサーバ2との通信が復旧したことを、ユーザに通知する(ステップSt41)。次に、プロキシ機能部102は、ログDB133が空であるか否かを判定する(ステップSt42)。ログDB133が空である場合(ステップSt42のYes)、プロキシ機能部102は、処理を終了する。   The proxy function unit 102 notifies the user that the communication with the web server 2 has been restored via the browser function unit 101 (step St41). Next, the proxy function unit 102 determines whether or not the log DB 133 is empty (step St42). When the log DB 133 is empty (Yes in step St42), the proxy function unit 102 ends the process.

また、ログDB133が空ではない場合(ステップSt42のNo)、プロキシ機能部102は、ログDB133から、リクエストデータREQ内の変数及び代替レスポンスデータRESxを読み出す(ステップSt43)。次に、プロキシ機能部102は、及びログDB133から読み出した変数、及び当該URLを含むリクエストデータREQを生成して、ウェブサーバ2に送信する(ステップSt44)。   Further, when the log DB 133 is not empty (No in Step St42), the proxy function unit 102 reads out the variable and the alternative response data RESx in the request data REQ from the log DB 133 (Step St43). Next, the proxy function unit 102 generates request data REQ including the variable read from the log DB 133 and the URL, and transmits the request data REQ to the web server 2 (step St44).

次に、プロキシ機能部102は、ウェブサーバ2から通信処理部14を介してレスポンスデータRESを受信する(ステップSt45)。次に、プロキシ機能部102は、受信したレスポンスデータRESと、ログDB133から読み出した代替レスポンスデータRESxとを比較する(ステップSt46)。すなわち、プロキシ機能部102は、サーバとの通信の切断中に生成されたリクエストデータREQをウェブサーバ2に送信し、ウェブサーバ2から受信したレスポンスデータRESを、代替レスポンスデータRESxと比較する。   Next, the proxy function unit 102 receives the response data RES from the web server 2 via the communication processing unit 14 (step St45). Next, the proxy function unit 102 compares the received response data RES with the alternative response data RESx read from the log DB 133 (step St46). That is, the proxy function unit 102 transmits the request data REQ generated during the disconnection of communication with the server to the web server 2, and compares the response data RES received from the web server 2 with the alternative response data RESx.

レスポンスデータRESと代替レスポンスデータRESxが一致した場合(ステップSt47のYes)、プロキシ機能部102は、ログDB133から、レスポンスデータRESと代替レスポンスデータRESxを削除して(ステップSt48)、処理を終了する。   When the response data RES and the alternative response data RESx match (Yes in Step St47), the proxy function unit 102 deletes the response data RES and the alternative response data RESx from the log DB 133 (Step St48), and ends the processing. .

また、レスポンスデータRESと代替レスポンスデータRESxが不一致である場合(ステップSt47のNo)、プロキシ機能部102は、ブラウザ機能部101を介して、不一致の箇所をユーザに通知する(ステップSt49)。次に、プロキシ機能部102は、
代替レスポンスDB132から、当該レスポンステンプレートを削除する(ステップSt50)。
If the response data RES and the alternative response data RESx do not match (No in step St47), the proxy function unit 102 notifies the user of the mismatched location via the browser function unit 101 (step St49). Next, the proxy function unit 102
The response template is deleted from the alternative response DB 132 (step St50).

次に、プロキシ機能部102は、レスポンスデータRESから、リクエストデータREQ内の変数の変換結果(変換後の変数)に一致する箇所を検出する(ステップSt51)。このとき、プロキシ機能部102は、変換規則DB131に登録された変換規則を順次に使用して変数を変換し、レスポンスデータRES内の一致箇所を検出する。   Next, the proxy function unit 102 detects, from the response data RES, a location that matches the variable conversion result (converted variable) in the request data REQ (step St51). At this time, the proxy function unit 102 sequentially converts the variables using the conversion rules registered in the conversion rule DB 131, and detects a matching portion in the response data RES.

次に、プロキシ機能部102は、検出結果に基づいて、レスポンステンプレートを生成する(ステップSt52)。次に、プロキシ機能部102は、生成したレスポンステンプレートを、代替レスポンスDB132に登録し(ステップSt53)、処理を終了する。このようにして、レスポンステンプレートの検証処理は実行される。   Next, the proxy function unit 102 generates a response template based on the detection result (step St52). Next, the proxy function unit 102 registers the generated response template in the alternative response DB 132 (step St53), and ends the process. In this way, the response template verification process is executed.

このように、プロキシ機能部102は、ウェブサーバ2との通信の切断中にブラウザ機能部101から入力されたリクエストデータREQに応じて生成した代替レスポンスデータRESxを、ウェブサーバ2から受信したレスポンスデータRESと比較する。これにより、ユーザは、代替レスポンスデータRESxに基づいて表示されたウェブページの内容を検証できる。   As described above, the proxy function unit 102 receives the response data received from the web server 2 as the alternative response data RESx generated according to the request data REQ input from the browser function unit 101 while the communication with the web server 2 is disconnected. Compare with RES. Thereby, the user can verify the content of the web page displayed based on the alternative response data RESx.

これまで述べたように、実施例に係るウェブページ表示システムは、端末装置1と、サーバ(ウェブサーバ)2とを有する。サーバ2は、受信したリクエストデータREQに応じて、レスポンスデータRESを送信する。端末装置1は、ユーザから入力された情報に基づいて生成されたリクエストデータREQをサーバ2に送信し、サーバ2から受信したレスポンスデータRESに基づいてウェブページを表示する。   As described above, the web page display system according to the embodiment includes the terminal device 1 and the server (web server) 2. The server 2 transmits response data RES in response to the received request data REQ. The terminal device 1 transmits request data REQ generated based on information input by the user to the server 2 and displays a web page based on the response data RES received from the server 2.

端末装置1は、リクエストデータREQに応じて変化するレスポンスデータRESの規則を学習する。端末装置1は、サーバ2との通信が切断された場合、学習した規則に従い、リクエストデータREQに応じた代替レスポンスデータRESxを生成し、代替レスポンスデータRESxに基づいてウェブページを表示する。   The terminal device 1 learns the rule of the response data RES that changes according to the request data REQ. When the communication with the server 2 is disconnected, the terminal device 1 generates alternative response data RESx corresponding to the request data REQ according to the learned rule, and displays a web page based on the alternative response data RESx.

上記の構成によると、端末装置1は、サーバ2との通信の切断中、レスポンスデータRESの規則に従った代替レスポンスデータRESxに基づいてウェブページを表示する。このため、ユーザは、サーバ2との通信の切断中でも、例えばブログの更新内容の確認用のウェブページ(図3(b)参照)のように、ユーザの入力に応じて表示内容が変化するウェブページを閲覧できる。   According to the above configuration, the terminal device 1 displays a web page based on the alternative response data RESx according to the rules of the response data RES while the communication with the server 2 is disconnected. Therefore, even when the communication with the server 2 is cut off, the user can change the display content according to the user input, such as a web page for checking the update content of the blog (see FIG. 3B). You can view the page.

したがって、実施例に係るウェブページ表示システムは、ウェブページの表示の利便性を向上することができる。   Therefore, the web page display system according to the embodiment can improve the convenience of displaying the web page.

また、実施例に係るウェブページ表示プログラムは、以下の処理をコンピュータ(CPU)10に実行させる。
処理(1):ユーザから入力された情報に基づいて生成されたリクエストデータREQをサーバ(ウェブサーバ)2に送信する。
処理(2):サーバ2から受信したレスポンスデータRESに基づいてウェブページを表示する。
処理(3):リクエストデータREQに応じて変化する前記レスポンスデータの規則を学習する。
処理(4):サーバ2との通信が切断された場合、学習した規則に従い、リクエストデータREQに応じた代替レスポンスデータRESxを生成し、代替レスポンスデータRESxに基づいてウェブページを表示する。
The web page display program according to the embodiment causes the computer (CPU) 10 to execute the following processing.
Process (1): Request data REQ generated based on information input by the user is transmitted to the server (web server) 2.
Process (2): A web page is displayed based on the response data RES received from the server 2.
Process (3): The response data rules that change according to the request data REQ are learned.
Process (4): When communication with the server 2 is disconnected, the alternative response data RESx corresponding to the request data REQ is generated according to the learned rule, and the web page is displayed based on the alternative response data RESx.

実施例に係るウェブページ表示プログラムは、上記のウェブページ表示システムと同様の構成を含むので、上述した内容と同様の作用効果を奏する。   Since the web page display program according to the embodiment includes the same configuration as the above-described web page display system, the same effects as those described above can be obtained.

なお、上記の処理機能は、コンピュータによって実現することができる。その場合、処理装置が有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体(ただし、搬送波は除く)に記録しておくことができる。   The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the processing apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium (except for a carrier wave).

プログラムを流通させる場合には、例えば、そのプログラムが記録されたDVD(Digital Versatile Disc)、CD−ROM(Compact Disc Read Only Memory)などの可搬型記録媒体の形態で販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。   When the program is distributed, for example, it is sold in the form of a portable recording medium such as a DVD (Digital Versatile Disc) or a CD-ROM (Compact Disc Read Only Memory) on which the program is recorded. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.

プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。   The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

上述した実施形態は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施可能である。   The above-described embodiment is an example of a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.

なお、以上の説明に関して更に以下の付記を開示する。
(付記1) 受信したリクエストデータに応じて、レスポンスデータを送信するサーバと、
ユーザから入力された情報に基づいて生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータに基づいてウェブページを表示する端末装置とを有し、
前記端末装置は、
前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、
前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示することを特徴とするウェブページ表示システム。
(付記2) 前記端末装置は、前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果に基づいて前記規則を更新することを特徴とする付記1に記載のウェブページ表示システム。
(付記3) 前記端末装置は、前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果をユーザに通知することを特徴とする付記1または2に記載のウェブページ表示システム。
(付記4) 前記端末装置は、前記リクエストデータを前記サーバに送信するたびに、送信した前記リクエストデータに応じた前記代替レスポンスデータを生成して、前記サーバから受信した前記レスポンスデータと比較し、該比較結果に基づいて前記規則を更新することを特徴とする付記1乃至3の何れかに記載のウェブページ表示システム。
(付記5) ユーザから入力された情報に基づいて生成されたリクエストデータをサーバに送信し、
前記サーバから受信したレスポンスデータに基づいてウェブページを表示し、
前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、
前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示する、処理を、コンピュータに実行させることを特徴とするウェブページ表示プログラム。
(付記6) 前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果に基づいて前記規則を更新する処理を、さらに前記コンピュータに実行させることを特徴とする付記5に記載のウェブページ表示プログラム。
(付記7) 前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果をユーザに通知する、処理を、さらに前記コンピュータに実行させることを特徴とする付記5または6に記載のウェブページ表示プログラム。
(付記8) 前記リクエストデータを前記サーバに送信するたびに、送信した前記リクエストデータに応じた前記代替レスポンスデータを生成して、前記サーバから受信した前記レスポンスデータと比較し、該比較結果に基づいて前記規則を更新する、処理を、さらに前記コンピュータに実行させることを特徴とする付記5乃至7の何れかに記載のウェブページ表示プログラム。
In addition, the following additional notes are disclosed regarding the above description.
(Supplementary note 1) In response to the received request data, a server that transmits response data;
A terminal device that transmits the request data generated based on information input from a user to the server and displays a web page based on the response data received from the server;
The terminal device
Learn the rules of the response data that change according to the request data,
When communication with the server is cut off, according to the learned rules, substitute response data corresponding to the request data is generated, and a web page is displayed based on the substitute response data system.
(Supplementary Note 2) When the communication with the server is restored, the terminal device transmits the request data generated during the disconnection of the communication with the server to the server, and receives the response data received from the server. The web page display system according to appendix 1, wherein the rule is compared with the alternative response data and the rule is updated based on the comparison result.
(Supplementary Note 3) When the communication with the server is restored, the terminal device transmits the request data generated during the disconnection of the communication with the server to the server, and receives the response data received from the server. The web page display system according to appendix 1 or 2, wherein the web page display system compares with the alternative response data and notifies the user of the comparison result.
(Supplementary Note 4) Each time the terminal device transmits the request data to the server, the terminal device generates the alternative response data according to the transmitted request data, and compares it with the response data received from the server. 4. The web page display system according to any one of appendices 1 to 3, wherein the rule is updated based on the comparison result.
(Supplementary Note 5) Send request data generated based on information input from the user to the server,
Display a web page based on the response data received from the server,
Learn the rules of the response data that change according to the request data,
When communication with the server is cut, the computer executes a process of generating alternative response data according to the request data according to the learned rule and displaying a web page based on the alternative response data. A web page display program characterized by that.
(Supplementary Note 6) When communication with the server is restored, the request data generated during disconnection of communication with the server is transmitted to the server, and the response data received from the server is replaced with the alternative response data. The web page display program according to appendix 5, further comprising: causing the computer to further execute a process of updating the rule based on the comparison result.
(Supplementary Note 7) When communication with the server is restored, the request data generated during disconnection of communication with the server is transmitted to the server, and the response data received from the server is replaced with the alternative response data. The web page display program according to appendix 5 or 6, wherein the computer is further caused to execute a process of comparing the result and notifying the user of the comparison result.
(Supplementary note 8) Each time the request data is transmitted to the server, the alternative response data corresponding to the transmitted request data is generated, compared with the response data received from the server, and based on the comparison result The web page display program according to any one of appendices 5 to 7, further causing the computer to execute a process of updating the rule.

1 端末装置
2 ウェブサーバ(サーバ)
13b プロキシプログラム(ウェブページ表示プログラム)
REQ リクエストデータ
RES レスポンスデータ
RESx 代替レスポンスデータ
1 Terminal device 2 Web server (server)
13b Proxy program (Web page display program)
REQ Request data RES Response data RESx Alternative response data

Claims (5)

受信したリクエストデータに応じて、レスポンスデータを送信するサーバと、
ユーザから入力された情報に基づいて生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータに基づいてウェブページを表示する端末装置とを有し、
前記端末装置は、
前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、
前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示することを特徴とするウェブページ表示システム。
In response to the received request data, a server that sends response data,
A terminal device that transmits the request data generated based on information input from a user to the server and displays a web page based on the response data received from the server;
The terminal device
Learn the rules of the response data that change according to the request data,
When communication with the server is cut off, according to the learned rules, substitute response data corresponding to the request data is generated, and a web page is displayed based on the substitute response data system.
前記端末装置は、前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果に基づいて前記規則を更新することを特徴とする請求項1に記載のウェブページ表示システム。   When the communication with the server is restored, the terminal device transmits the request data generated during the disconnection with the server to the server, and the response data received from the server is used as the alternative response. 2. The web page display system according to claim 1, wherein the rule is compared with data and the rule is updated based on the comparison result. 前記端末装置は、前記サーバとの通信が復旧した場合、前記サーバとの通信の切断中に生成された前記リクエストデータを前記サーバに送信し、前記サーバから受信した前記レスポンスデータを、前記代替レスポンスデータと比較し、該比較結果をユーザに通知することを特徴とする請求項1または2に記載のウェブページ表示システム。   When the communication with the server is restored, the terminal device transmits the request data generated during the disconnection with the server to the server, and the response data received from the server is used as the alternative response. The web page display system according to claim 1, wherein the web page display system compares the data and notifies the user of the comparison result. 前記端末装置は、前記リクエストデータを前記サーバに送信するたびに、送信した前記リクエストデータに応じた前記代替レスポンスデータを生成して、前記サーバから受信した前記レスポンスデータと比較し、該比較結果に基づいて前記規則を更新することを特徴とする請求項1乃至3の何れかに記載のウェブページ表示システム。   Each time the terminal device transmits the request data to the server, the terminal device generates the alternative response data according to the transmitted request data, compares it with the response data received from the server, and 4. The web page display system according to claim 1, wherein the rule is updated based on the rule. ユーザから入力された情報に基づいて生成されたリクエストデータをサーバに送信し、
前記サーバから受信したレスポンスデータに基づいてウェブページを表示し、
前記リクエストデータに応じて変化する前記レスポンスデータの規則を学習し、
前記サーバとの通信が切断された場合、学習した前記規則に従い、前記リクエストデータに応じた代替レスポンスデータを生成し、前記代替レスポンスデータに基づいてウェブページを表示する、処理を、コンピュータに実行させることを特徴とするウェブページ表示プログラム。
Sends request data generated based on information entered by the user to the server,
Display a web page based on the response data received from the server,
Learn the rules of the response data that change according to the request data,
When communication with the server is cut, the computer executes a process of generating alternative response data according to the request data according to the learned rule and displaying a web page based on the alternative response data. A web page display program characterized by that.
JP2014050247A 2014-03-13 2014-03-13 Web page display system and web page display program Expired - Fee Related JP6245005B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014050247A JP6245005B2 (en) 2014-03-13 2014-03-13 Web page display system and web page display program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014050247A JP6245005B2 (en) 2014-03-13 2014-03-13 Web page display system and web page display program

Publications (2)

Publication Number Publication Date
JP2015176215A true JP2015176215A (en) 2015-10-05
JP6245005B2 JP6245005B2 (en) 2017-12-13

Family

ID=54255403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014050247A Expired - Fee Related JP6245005B2 (en) 2014-03-13 2014-03-13 Web page display system and web page display program

Country Status (1)

Country Link
JP (1) JP6245005B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021133152A1 (en) * 2019-12-23 2021-07-01 Mimos Berhad A method for authenticating and synchronizing offline data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120108A (en) * 1997-08-28 1999-04-30 Internatl Business Mach Corp <Ibm> Server side asynchronous form management method and device
EP1041497A2 (en) * 1999-03-31 2000-10-04 Kabushiki Kaisha Toshiba Information fetching control scheme using data type dependent strategy for reducing user response time
JP2002334013A (en) * 2001-05-09 2002-11-22 Sharp Corp Information display device and recording medium with recorded information display program
JP2007272742A (en) * 2006-03-31 2007-10-18 Ntt Docomo Inc Communication terminal and communication method
JP2010170574A (en) * 2010-03-30 2010-08-05 Base Technology Inc Information search method and web system
US20110197126A1 (en) * 2010-02-05 2011-08-11 Research In Motion Limited Display Placeholders For Rich Media Content

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120108A (en) * 1997-08-28 1999-04-30 Internatl Business Mach Corp <Ibm> Server side asynchronous form management method and device
US6070184A (en) * 1997-08-28 2000-05-30 International Business Machines Corporation Server-side asynchronous form management
EP1041497A2 (en) * 1999-03-31 2000-10-04 Kabushiki Kaisha Toshiba Information fetching control scheme using data type dependent strategy for reducing user response time
JP2000285006A (en) * 1999-03-31 2000-10-13 Toshiba Corp Information acquisition controller and its controlling method
JP2002334013A (en) * 2001-05-09 2002-11-22 Sharp Corp Information display device and recording medium with recorded information display program
JP2007272742A (en) * 2006-03-31 2007-10-18 Ntt Docomo Inc Communication terminal and communication method
US20110197126A1 (en) * 2010-02-05 2011-08-11 Research In Motion Limited Display Placeholders For Rich Media Content
JP2010170574A (en) * 2010-03-30 2010-08-05 Base Technology Inc Information search method and web system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021133152A1 (en) * 2019-12-23 2021-07-01 Mimos Berhad A method for authenticating and synchronizing offline data

Also Published As

Publication number Publication date
JP6245005B2 (en) 2017-12-13

Similar Documents

Publication Publication Date Title
US8935364B2 (en) Method, apparatus, and program for supporting creation and management of metadata for correcting problem in dynamic web application
KR20170141248A (en) Systems and methods for proactively providing recommendations to a user of a computing device
CN102385594A (en) Method and device for controlling inner cores of multi-core browser
WO2016178916A1 (en) Transfer of content between documents of different storage types
US10095794B2 (en) Augmenting search results with device and application history
KR20190095099A (en) Transaction system error detection method, apparatus, storage medium and computer device
JP2007317031A (en) Electronic document update notification apparatus and electronic document update notification method
JP2014071493A (en) Data analyzing device and program
JP2016146017A (en) Application management device, application management system, and program
JP6481387B2 (en) Related information providing method, related information providing apparatus, and related information providing program
JP6245005B2 (en) Web page display system and web page display program
JP6119189B2 (en) License management apparatus, license management system, and license management method
US9471650B2 (en) System and method for contextual workflow automation
US20160188324A1 (en) Configuration of applications to desired application states
JP2012133609A (en) Filename creation device
JP4955051B2 (en) Database system, terminal device and program
WO2017143931A1 (en) Method and apparatus for identifying smart card, method and apparatus for processing smart card identification data, and device
JP2009099007A (en) Service server, update information management server, service system, service program and update information management program
US10719308B1 (en) System and method for dynamically monitoring a configuration of a server computing device
JP2017162182A (en) Test device, test method, and test program
US10402785B2 (en) Terminal apparatus
US20240012909A1 (en) Correction of non-compliant files in a code repository
US20140289741A1 (en) Cooperation method, image processing device, and medium
JP2010128776A (en) Apparatus and method for automatic maintenance of portable terminal
JP6497087B2 (en) Information processing apparatus and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161102

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170822

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171005

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171017

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171030

R150 Certificate of patent or registration of utility model

Ref document number: 6245005

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees