JP5251753B2 - Terminal, request transmission method, and program - Google Patents

Terminal, request transmission method, and program Download PDF

Info

Publication number
JP5251753B2
JP5251753B2 JP2009149992A JP2009149992A JP5251753B2 JP 5251753 B2 JP5251753 B2 JP 5251753B2 JP 2009149992 A JP2009149992 A JP 2009149992A JP 2009149992 A JP2009149992 A JP 2009149992A JP 5251753 B2 JP5251753 B2 JP 5251753B2
Authority
JP
Japan
Prior art keywords
request
transmission
response
web server
terminal
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.)
Expired - Fee Related
Application number
JP2009149992A
Other languages
Japanese (ja)
Other versions
JP2011008414A (en
Inventor
博幸 富森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2009149992A priority Critical patent/JP5251753B2/en
Publication of JP2011008414A publication Critical patent/JP2011008414A/en
Application granted granted Critical
Publication of JP5251753B2 publication Critical patent/JP5251753B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、Webページを管理するWebサーバに、Webページのデータを要求するリクエストを送信する端末、リクエスト送信方法、およびプログラムに関する。   The present invention relates to a terminal that transmits a request for requesting data of a Web page to a Web server that manages the Web page, a request transmission method, and a program.

近年、パーソナルコンピュータ、携帯電話、ゲーム機器、車載端末、あるいはテレビなどの端末の多くは、ネットワークアクセス機能を有するようになっている。これに伴い、ユーザが、ネットワークアクセス機能を有する端末を用いて、Webサーバがネットワークを介して提供するWebサービスを利用するケースも増えている。例えば、Webサービスとは、Webサイトを構成するWebページの閲覧や、Webページへの書込みを行うサービスを指す。   In recent years, many terminals such as personal computers, mobile phones, game machines, in-vehicle terminals, and televisions have a network access function. Along with this, there are increasing cases in which a user uses a web service provided via a network by a web server using a terminal having a network access function. For example, a web service refers to a service for browsing a web page constituting a website and writing to the web page.

ユーザがWebサービスを利用する場合、端末は、ユーザの操作に基づき、そのWebサービスに対応するWebページのデータを要求するリクエストを発行し、発行したリクエストをWebサーバに送信する。なお、リクエストにより要求されるWebページのデータには、ユーザが利用するWebサービスに応じて、Webページの閲覧画面用のデータや、Webページの書込み画面用のデータなどがある。   When a user uses a web service, the terminal issues a request for requesting data of a web page corresponding to the web service based on the user's operation, and transmits the issued request to the web server. The Web page data requested by the request includes Web page browsing screen data, Web page writing screen data, and the like, depending on the Web service used by the user.

しかし、端末の起動直後や、ユーザが移動しながら端末を使用する場合、ネットワークと安定して接続することは困難である。そのため、端末は、ネットワークと接続されていないオフライン状態でリクエストを発行する場合があり、この場合には、発行したリクエストをWebサーバに送信することができない。この場合、ユーザは、端末がネットワークと接続されるオンライン状態になるのを待って、既に一度発行したリクエストと同じリクエストを発行するための操作を再度行う必要がある。   However, it is difficult to connect to the network stably immediately after starting the terminal or when the user uses the terminal while moving. Therefore, the terminal may issue a request in an offline state not connected to the network. In this case, the issued request cannot be transmitted to the Web server. In this case, the user needs to perform an operation for issuing the same request as the request that has already been issued, after waiting for the terminal to be in an online state connected to the network.

そこで、特許文献1には、オフライン状態でリクエストを発行した場合、そのリクエストを保存しておき、オンライン状態になった後に、保存しておいたリクエストを自動的に送信する遅延送信を行う端末が記載されている。   Therefore, in Patent Document 1, if a request is issued in an offline state, the request is stored, and after entering the online state, a terminal that performs delayed transmission that automatically transmits the stored request Have been described.

特許文献1に記載の端末は、オフライン状態であるためにリクエストが送信できない場合にも、オンライン状態になった後に、自動的にリクエストをWebサーバに送信するので、既にオフライン状態で発行されたリクエストと同じリクエストを発行するための操作を、ユーザが再度行う必要がない。   Even if the terminal described in Patent Document 1 cannot send a request because it is offline, it automatically sends the request to the Web server after it is online, so requests that have already been issued offline There is no need for the user to perform the operation for issuing the same request as the above.

特開2001−103122号公報JP 2001-103122 A

しかしながら、特許文献1に記載の端末は、オフライン時にリクエストが保存され、その後、オンライン状態で、保存されたリクエストと同一のWebページのデータを要求するリクエストが新たに発行された場合、これらのリクエストの送信順序について何ら考慮がなされていないため、これらのリクエストの送信順序の入れ替わりが起こる可能性があるという課題がある。   However, if the terminal described in Patent Document 1 stores a request when it is offline and then issues a request for the same Web page data as the stored request in an online state, these requests are issued. Since no consideration is given to the transmission order, there is a problem that the transmission order of these requests may be changed.

このようなリクエストの送信順序の入れ替えが起こると、例えば、オフライン時に保存されたWebページの書込み画面用のデータを要求するリクエストと、オンライン状態で新たに発行された、同一のWebページの閲覧画面用のデータを要求するリクエストとがある場合に、Webページの閲覧画面用のデータを要求するリクエストが先に送信されることになる。   When such a change in the transmission order of requests occurs, for example, a request for requesting data for a Web page writing screen saved when offline and a browsing screen for the same Web page newly issued in an online state When there is a request for requesting data for use, a request for requesting data for a web page browsing screen is transmitted first.

そうすると、Webサーバでは、先に送信されたWebページの閲覧画面用のデータを要求するリクエストの処理を行うため、ユーザは、Webページの書込み画面用のデータを要求するリクエストを先に発行する操作をしたにもかかわらず、書込みが行われる前のWebページしか閲覧できないという問題が生じる。   Then, in the Web server, in order to process the request for requesting the data for the browsing screen of the Web page transmitted earlier, the user first issues a request for requesting the data for the writing screen of the Web page. In spite of having performed, the problem that only the Web page before writing is browsed arises.

そこで、本発明の目的は、オフライン時に発行されたリクエストとオンライン時に発行されたリクエストとの間で、リクエストの送信順序の入れ替えが起こるのを防ぐことができる端末、リクエスト送信方法、およびプログラムを提供することにある。   Accordingly, an object of the present invention is to provide a terminal, a request transmission method, and a program capable of preventing a request transmission order from being changed between a request issued when offline and a request issued when online. There is to do.

上記目的を達成するために本発明の端末は、
Webページを管理するWebサーバとネットワークを介して接続された端末であって、
前記Webページのデータを要求するリクエストを発行する発行部と、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視部と、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する保存部と、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で前記保存部に未送信のまま保存されている第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存部に保存されている前記第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信部と、を有する。
In order to achieve the above object, the terminal of the present invention
A terminal connected via a network to a web server that manages web pages,
An issuing unit for issuing a request for requesting data of the Web page;
A monitoring unit that monitors whether the own terminal and the network are connected online or offline;
A storage unit that stores the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
When the second request issued in the online state requests the same Web page data as the first request stored unsent in the storage unit at the time of the issue, A transmission unit that transmits the first request stored in the storage unit to the Web server before the second request.

上記目的を達成するために本発明のリクエスト送信方法は、
Webページを管理するWebサーバとネットワークを介して接続された端末に適用される、前記Webページのデータを要求するリクエストを送信するリクエスト送信方法であって、
前記リクエストを発行する発行ステップと、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視ステップと、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する第1の保存ステップと、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で未送信のまま保存されている前記第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存されている第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信ステップと、を有する。
In order to achieve the above object, the request transmission method of the present invention comprises:
A request transmission method for transmitting a request for requesting data of the Web page, which is applied to a terminal connected via a network to a Web server that manages the Web page,
An issuing step for issuing the request;
A monitoring step of monitoring whether the own terminal and the network are connected online or not connected offline;
A first storage step of storing the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
If the second request issued in the online state requests data of the same Web page as the first request stored untransmitted at the time of the issuance, the stored Transmitting a first request to the Web server prior to the second request.

上記目的を達成するために本発明のプログラムは、
Webページを管理するWebサーバとネットワークを介して接続された端末に、
前記Webページのデータを要求するリクエストを発行する発行手順と、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視手順と、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する保存手順と、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で未送信のまま保存されている前記第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存されている第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信手順と、を実行させる。
In order to achieve the above object, the program of the present invention
To a terminal connected via a network to a web server that manages web pages,
An issuing procedure for issuing a request for requesting data of the Web page;
A monitoring procedure for monitoring whether the own terminal and the network are connected online or not connected offline;
A storage procedure for storing the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
If the second request issued in the online state requests data of the same Web page as the first request stored untransmitted at the time of the issuance, the stored A transmission procedure for transmitting the first request to the Web server prior to the second request.

本発明によれば、端末は、オフライン状態で発行された第1のリクエストを、その第1のリクエストが未送信であるか否かを示す情報と共に保存し、オンライン状態で発行された第2のリクエストが、発行の時点で未送信のまま保存されている第1のリクエストと同一のWebページのデータを要求するものである場合、保存されている第1のリクエストを第2のリクエストよりも先にWebサーバに送信する。   According to the present invention, the terminal stores the first request issued in the offline state together with information indicating whether or not the first request has not been transmitted, and the second request issued in the online state. When the request is for requesting data of the same Web page as the first request that has been stored untransmitted at the time of issuance, the stored first request is preceded by the second request. To the web server.

このように、端末は、第1のリクエストを第2のリクエストよりも先に送信するので、第1のリクエストと第2のリクエストとの間で送信順序の入れ替えが起こるのを防ぐことができる。   In this way, since the terminal transmits the first request before the second request, it is possible to prevent the transmission order from being changed between the first request and the second request.

本発明の一実施形態の端末が適用される通信システムの構成の一例を示す図である。It is a figure which shows an example of a structure of the communication system with which the terminal of one Embodiment of this invention is applied. 図1に示す端末の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the terminal shown in FIG. 図2に示す遅延送信データ保存部に保存される遅延送信データの構成の一例を示す図である。It is a figure which shows an example of a structure of the delay transmission data preserve | saved at the delay transmission data preservation | save part shown in FIG. 図2に示す端末の、リクエストが発行された際の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement when the request of the terminal shown in FIG. 2 is issued. 図2に示す端末の、保存された未送信リクエストを自動的に送信する際の動作の一例を示すフローチャートである。3 is a flowchart showing an example of an operation when the terminal shown in FIG. 2 automatically transmits a stored untransmitted request. 図2に示す端末の、遅延送信要求リクエストの送信状況を示す通知画面を出力部に表示する際の動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation when a notification screen indicating a transmission status of a delayed transmission request is displayed on an output unit of the terminal illustrated in FIG. 図2に示す端末の、未送信リクエストの内容変更が要求された際の動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation when a change in the content of an unsent request is requested by the terminal illustrated in FIG. 2.

以下に、本発明を実施するための形態について図面を参照して説明する。   EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated with reference to drawings.

図1は、本発明の一実施形態の端末100が適用される通信システムの構成の一例を示す図である。   FIG. 1 is a diagram illustrating an example of a configuration of a communication system to which a terminal 100 according to an embodiment of the present invention is applied.

図1に示す通信システムは、ユーザ10がWebサービスを利用する際に用いる端末100と、端末100とネットワーク20を介して接続されるWebサーバ200と、を有する。   The communication system illustrated in FIG. 1 includes a terminal 100 used when a user 10 uses a Web service, and a Web server 200 connected to the terminal 100 via a network 20.

端末100は、ネットワークアクセス機能を有し、ユーザ10の操作に基づき、Webサーバ200が管理するWebページのデータを要求するリクエストを発行し、ネットワーク20を介してWebサーバ200に送信する。   The terminal 100 has a network access function, issues a request for requesting data of a Web page managed by the Web server 200 based on an operation of the user 10, and transmits the request to the Web server 200 via the network 20.

また、端末100は、送信したリクエストに応答してWebサーバ200から送信されてきた、Webページのデータを含むレスポンスを受信する。   Further, the terminal 100 receives a response including data of the web page transmitted from the web server 200 in response to the transmitted request.

なお、本実施形態においては、端末100は、HTTP(Hyper Text Transfer Protocol)と呼ばれる通信プロトコルによりWebサーバ200と通信を行い、端末100とWebサーバ200との間で送受信されるリクエストとレスポンスは、HTTPで規定されるHTTPリクエストとHTTPレスポンスに相当する。   In the present embodiment, the terminal 100 communicates with the Web server 200 using a communication protocol called HTTP (Hyper Text Transfer Protocol), and requests and responses transmitted and received between the terminal 100 and the Web server 200 are: This corresponds to an HTTP request and an HTTP response specified by HTTP.

Webサーバ200は、検索サイト、SNS(Social Networking Service)サイト、写真共有サイト、ブログサイト等のWebサイトのWebページのデータを管理する。   The Web server 200 manages data of Web pages of Web sites such as a search site, an SNS (Social Networking Service) site, a photo sharing site, and a blog site.

Webページのデータの具体例としては、HTML(HyperText Markup Language)ファイル、XML(Extensible Markup Language)ファイル、CSS(Cascading Style Sheets)、画像ファイル、データベース、スクリプトファイル等がある。   Specific examples of Web page data include an HTML (HyperText Markup Language) file, an XML (Extensible Markup Language) file, a CSS (Cascading Style Sheets), an image file, a database, and a script file.

そして、Webサーバ200は、送信されてきたリクエストに対する応答として、要求されたWebページのデータを含むレスポンスを端末100に送信する。   Then, the web server 200 transmits a response including data of the requested web page to the terminal 100 as a response to the transmitted request.

次に、端末100の構成について説明する。   Next, the configuration of the terminal 100 will be described.

図2は、端末100の構成の一例を示すブロック図である。   FIG. 2 is a block diagram illustrating an example of the configuration of the terminal 100.

図2に示す端末100は、入力部101と、出力部102と、Webアプリケーション実行制御部103と、通信制御部104と、ネットワーク接続監視部105と、遅延送信制御部110と、を有する。   The terminal 100 illustrated in FIG. 2 includes an input unit 101, an output unit 102, a Web application execution control unit 103, a communication control unit 104, a network connection monitoring unit 105, and a delay transmission control unit 110.

なお、Webアプリケーション実行制御部103は、発行部の一例である。   The web application execution control unit 103 is an example of an issuing unit.

また、通信制御部104は、送信部および受信部の一例である。   The communication control unit 104 is an example of a transmission unit and a reception unit.

入力部101は、ユーザ10の操作を示す操作情報をWebアプリケーション実行制御部103に出力する。入力部101の具体例としては、キーボードやマウス等がある。   The input unit 101 outputs operation information indicating the operation of the user 10 to the web application execution control unit 103. Specific examples of the input unit 101 include a keyboard and a mouse.

出力部102は、Webページの画面等を表示する表示部である。出力部102の具体例としては、ディスプレイ等がある。   The output unit 102 is a display unit that displays a web page screen or the like. A specific example of the output unit 102 is a display.

Webアプリケーション実行制御部103は、入力部101から出力された操作情報に基づき、Webページのデータを要求するリクエストを発行する。   The Web application execution control unit 103 issues a request for requesting Web page data based on the operation information output from the input unit 101.

なお、Webアプリケーション実行制御部103により発行されるリクエストには、データの提供を要求するWebページのURL(Uniform Resource Locator)の他に、後述のクッキー(Cookie)が含まれている。   Note that the request issued by the Web application execution control unit 103 includes a cookie (Cookie), which will be described later, in addition to the URL (Uniform Resource Locator) of the Web page requesting the provision of data.

ここで、クッキーとは、端末100を識別する識別情報を含み、リクエストによるWebページのデータの要求状況に基づきWebサーバ200により設定される制御情報である。   Here, the cookie is control information set by the Web server 200 based on the request status of the Web page data by the request, including identification information for identifying the terminal 100.

一般に、HTTPによる通信では、1つのリクエストに対して1つのレスポンスが送受信されることで通信が終了するため、同一の端末100が連続して同一のWebページにアクセスするような、端末100とWebサーバ200との一連の通信が行われる場合にも、Webサーバ200は、Webページにアクセスするのが同一の端末100であることを認識することができない。   In general, in communication using HTTP, communication ends when one response is transmitted / received for one request. Therefore, the terminal 100 and the Web that access the same Web page continuously from the same terminal 100 can be obtained. Even when a series of communications with the server 200 is performed, the Web server 200 cannot recognize that the same terminal 100 accesses the Web page.

そこで、Webサーバ200は、リクエストを受信した場合、クッキーを含むレスポンスを端末100に送信し、端末100は、Webサーバ200から送信されてきたレスポンスに含まれるクッキーを不図示の保存部に保存し、保存したクッキーをその後に送信するリクエストに含めて送信する。   Therefore, when receiving the request, the Web server 200 transmits a response including a cookie to the terminal 100, and the terminal 100 stores the cookie included in the response transmitted from the Web server 200 in a storage unit (not illustrated). Send the saved cookie in subsequent requests.

また、端末100は、受信したレスポンスに、新たに設定された最新のクッキーを示すSet−Cookieヘッダーが含まれているかを判定し、Set−Cookieヘッダーが含まれている場合には、既に保存されているクッキーをその新たに設定されたクッキーに更新する。   Further, the terminal 100 determines whether the received response includes a Set-Cookie header indicating the latest set cookie. If the Set-Cookie header is included, the terminal 100 is already stored. Update the existing cookie to the newly set cookie.

こうすることにより、端末100とWebサーバ200との間で、同じクッキーが共有されることになり、Webサーバ200は、端末100を識別し、端末100との間の一連の通信を管理するセッション管理を行うことができる。   By doing so, the same cookie is shared between the terminal 100 and the Web server 200, and the Web server 200 identifies the terminal 100 and manages a series of communications with the terminal 100. Management can be performed.

また、Webアプリケーション実行制御部103は、レスポンスに含まれるデータを取得したWebページの画面等を出力部102に表示させる。   In addition, the Web application execution control unit 103 causes the output unit 102 to display a screen of the Web page from which data included in the response is acquired.

通信制御部104は、Webアプリケーション実行制御部103により発行されたリクエストを、ネットワーク20を介してWebサーバ200に送信する。   The communication control unit 104 transmits the request issued by the web application execution control unit 103 to the web server 200 via the network 20.

また、通信制御部104は、Webサーバ200から送信されてきたレスポンスを受信し、受信したレスポンスを遅延送信制御部110に出力する。   In addition, the communication control unit 104 receives a response transmitted from the Web server 200 and outputs the received response to the delayed transmission control unit 110.

ネットワーク接続監視部105は、端末100とネットワーク20との接続が、オンライン状態であるかオフライン状態であるかを監視する。   The network connection monitoring unit 105 monitors whether the connection between the terminal 100 and the network 20 is online or offline.

遅延送信制御部110は、リクエストのWebサーバ200への送信を制御し、特に、オフライン状態で発行されたリクエストを、オンライン状態になった後にWebサーバ200に送信する遅延送信の制御を行う。   The delayed transmission control unit 110 controls transmission of a request to the Web server 200, and in particular controls delayed transmission in which a request issued in an offline state is transmitted to the Web server 200 after entering the online state.

遅延送信制御部110の内部構成について説明する。   The internal configuration of the delay transmission control unit 110 will be described.

遅延送信制御部110は、遅延送信判定部111と、リクエスト遅延送信制御部112と、遅延送信データ保存部113と、リクエスト変更部114と、を有する。   The delay transmission control unit 110 includes a delay transmission determination unit 111, a request delay transmission control unit 112, a delay transmission data storage unit 113, and a request change unit 114.

遅延送信判定部111は、オフライン状態でリクエストが発行された場合、そのリクエストを遅延送信すると判定し、リクエスト遅延送信制御部112に、そのリクエストの遅延送信を要求する。そして、遅延送信判定部111は、遅延送信を要求したリクエストである遅延送信要求リクエストをリクエスト遅延送信制御部112に出力する。   When a request is issued in an off-line state, the delay transmission determination unit 111 determines that the request is delayed, and requests the request delay transmission control unit 112 to delay transmission of the request. Then, the delayed transmission determination unit 111 outputs a delayed transmission request request, which is a request for requesting delayed transmission, to the request delayed transmission control unit 112.

また、遅延送信判定部111は、オンライン状態でリクエストが発行された場合、そのリクエストを遅延送信しないと判定し、通信制御部104に出力する。   Further, when a request is issued in an online state, the delayed transmission determination unit 111 determines that the request is not delayed transmitted and outputs the request to the communication control unit 104.

リクエスト遅延送信制御部112は、遅延送信判定部111から出力された遅延送信要求リクエストを遅延送信データ保存部113に保存する。   The request delay transmission control unit 112 stores the delay transmission request request output from the delay transmission determination unit 111 in the delay transmission data storage unit 113.

また、リクエスト遅延送信制御部112は、遅延送信データ保存部113に保存された遅延送信要求リクエストの遅延送信を制御する。   Further, the request delay transmission control unit 112 controls the delay transmission of the delay transmission request request stored in the delay transmission data storage unit 113.

遅延送信データ保存部113は、遅延送信要求リクエストと、その遅延送信要求リクエストが発行された際に出力部102に表示されていたWebページのデータと、その遅延送信要求リクエストのWebサーバ200への送信状況と、その遅延送信要求リクエストに対して、Webサーバ200から送信されてきたレスポンスと、を対応つけた遅延送信データを保存する。   The delayed transmission data storage unit 113 transmits the delayed transmission request request, the Web page data displayed on the output unit 102 when the delayed transmission request is issued, and the delayed transmission request request to the Web server 200. Delayed transmission data in which the transmission status and the response transmitted from the Web server 200 are associated with the delayed transmission request is stored.

図3は、遅延送信データ保存部113に保存される遅延送信データの構成の一例を示す図である。   FIG. 3 is a diagram illustrating an example of a configuration of delayed transmission data stored in the delayed transmission data storage unit 113.

遅延送信データ保存部113は、遅延送信要求リクエストとして、遅延送信要求リクエストによりデータを要求するWebページのURLやクッキーなどの遅延送信要求リクエストに含まれる情報を保存する。   The delayed transmission data storage unit 113 stores, as a delayed transmission request, information included in the delayed transmission request such as a URL of a Web page or a cookie that requests data by the delayed transmission request.

また、遅延送信データ保存部113は、リクエスト発行Webページとして、Webアプリケーション実行制御部103により遅延送信要求リクエストが発行された際に出力部102に表示されていたWebページであるリクエスト発行Webページのデータを保存する。   The delayed transmission data storage unit 113 also includes a request issuance Web page that is a Web page displayed on the output unit 102 when the delayed transmission request is issued by the Web application execution control unit 103 as a request issuance Web page. Save the data.

なお、リクエスト発行Webページのデータは、リクエスト遅延送信制御部112が、Webアプリケーション実行制御部103から取得する。   The request issuance Web page data is acquired from the Web application execution control unit 103 by the request delay transmission control unit 112.

また、遅延送信データ保存部113は、リクエスト送信状況として、Webサーバ200に対する遅延送信要求リクエストの送信状況の情報を保存する。   The delayed transmission data storage unit 113 stores information on the transmission status of the delayed transmission request to the Web server 200 as the request transmission status.

具体的には、遅延送信データ保存部113は、遅延送信要求リクエストが、Webサーバ200への送信が行われていない場合には「未送信」を、Webサーバ200への送信が行われ、正常に処理された場合には「送信成功」を、Webサーバ200への送信が行われたが、正常に処理されなかった場合には「送信失敗」を保存する。   Specifically, the delayed transmission data storage unit 113 indicates that the delayed transmission request is “not transmitted” when the transmission to the Web server 200 is not performed, and the transmission to the Web server 200 is performed normally. “Transmission success” is stored in the case of processing, and “Transmission failure” is stored in the case where transmission to the Web server 200 has been performed but processing has not been performed normally.

また、遅延送信データ保存部113は、レスポンスとして、送信した遅延送信要求リクエストに対してWebサーバ200から送信されてきたレスポンスを保存する。   Further, the delayed transmission data storage unit 113 stores a response transmitted from the Web server 200 in response to the transmitted delayed transmission request.

リクエスト変更部114は、遅延送信要求リクエストのうち、リクエスト送信状況が「未送信」である未送信リクエストの変更を要求する操作がユーザ10により行われた場合、その未送信リクエストに対応するリクエスト発行Webページの画面をWebアプリケーション実行制御部103に表示させ、そのWebページ上でユーザ10から受けた未送信リクエストの変更指示に従い、遅延送信データ保存部113に保存された未送信リクエストを変更する。   The request changing unit 114 issues a request corresponding to an unsent request when the user 10 performs an operation for requesting a change of an unsent request whose status of request transmission is “unsent” among the delayed transmission request. The web page screen is displayed on the web application execution control unit 103, and the unsent request stored in the delayed transmission data storage unit 113 is changed in accordance with the unsent request change instruction received from the user 10 on the web page.

次に、端末100の動作について図4から図7を参照して説明する。   Next, the operation of the terminal 100 will be described with reference to FIGS.

(1)リクエスト発行の際の動作
図4は、リクエストが発行された際の端末100の動作の一例を示すフローチャートである。
(1) Operation when request is issued FIG. 4 is a flowchart showing an example of the operation of the terminal 100 when a request is issued.

まず、Webページの画面を出力部102に表示した状態で、ユーザ10により、そのWebページに含まれるリンク先のWebページの閲覧や、Webページへの書込みなどを要求する操作が行われると、Webアプリケーション実行制御部103は、ユーザ10の操作を示す操作情報に基づき、Webページのデータを要求するリクエストを発行する(ステップA1)。   First, when the user 10 performs an operation requesting browsing of a linked web page included in the web page, writing to the web page, or the like while the screen of the web page is displayed on the output unit 102, The web application execution control unit 103 issues a request for requesting web page data based on the operation information indicating the operation of the user 10 (step A1).

ここで、Webアプリケーション実行制御部103により発行されたリクエストには、データの提供を要求するWebページのURLの他に、上述した不図示の保存部に保存されているクッキーが含まれている。   Here, the request issued by the Web application execution control unit 103 includes a cookie stored in the storage unit (not shown) in addition to the URL of the Web page requesting the provision of data.

遅延送信判定部111は、リクエストが発行されると、ネットワーク接続監視部105により監視されている端末100とネットワーク20との接続が、オンライン状態であるかを判定する(ステップA2)。   When the request is issued, the delayed transmission determination unit 111 determines whether the connection between the terminal 100 and the network 20 monitored by the network connection monitoring unit 105 is online (step A2).

オフライン状態の場合(ステップA2:NO)、遅延送信判定部111は、ステップA1で発行されたリクエストを遅延送信すると判定し、遅延送信を要求する遅延送信要求リクエストをリクエスト遅延送信制御部112に出力する(ステップA3)。   In the offline state (step A2: NO), the delayed transmission determination unit 111 determines to delay-transmit the request issued in step A1, and outputs a delayed transmission request request for requesting delayed transmission to the request delay transmission control unit 112. (Step A3).

リクエスト遅延送信制御部112は、遅延送信要求リクエストを遅延送信データ保存部113に保存する(ステップA4)。   The request delay transmission control unit 112 stores the delay transmission request request in the delay transmission data storage unit 113 (step A4).

次に、リクエスト遅延送信制御部112は、遅延送信要求リクエストに対応するリクエスト発行WebページのデータをWebアプリケーション実行制御部103から取得し、遅延送信データ保存部113に保存する。   Next, the request delay transmission control unit 112 acquires data of the request issuance Web page corresponding to the delay transmission request from the Web application execution control unit 103 and stores it in the delay transmission data storage unit 113.

そして、リクエスト遅延送信制御部112は、オンライン状態になったことを通知するように、ネットワーク接続監視部105に要求する(ステップA5)。   Then, the request delay transmission control unit 112 requests the network connection monitoring unit 105 to notify that the online state has been entered (step A5).

次に、リクエスト遅延送信制御部112は、遅延送信要求リクエストに対して、遅延送信を行うための処理が完了したことをWebアプリケーション実行制御部103に通知し、Webアプリケーション実行制御部103は、その旨の通知を受けて、遅延送信の要求が行われたことをユーザ10に通知する通知画面を出力部102に表示させる(ステップA6)。   Next, the request delay transmission control unit 112 notifies the Web application execution control unit 103 that the processing for performing the delay transmission is completed in response to the delay transmission request, and the Web application execution control unit 103 In response to the notification, the output unit 102 is displayed on the output unit 102 to notify the user 10 that the delayed transmission request has been made (step A6).

一方、端末100とネットワーク20とがオンライン状態の場合(ステップA2:YES)、リクエスト遅延送信制御部112は、ステップA1において、オンライン状態で発行されたリクエストと同一のWebページのデータを要求する未送信リクエストが、遅延送信データ保存部113に保存されているかを判定する(ステップA7)。   On the other hand, when the terminal 100 and the network 20 are in the online state (step A2: YES), the request delay transmission control unit 112 does not request the same Web page data as the request issued in the online state in step A1. It is determined whether the transmission request is stored in the delayed transmission data storage unit 113 (step A7).

なお、リクエスト遅延送信制御部112は、オンライン状態で発行されたリクエストと未送信リクエストとが同一のWebページのデータを要求するかを、これらのリクエストに含まれる、データを要求するWebページのURLの情報に基づき判定する。   The request delay transmission control unit 112 determines whether the request issued in the online state and the unsent request request the same Web page data, and the URL of the Web page that requests data included in these requests. Determine based on the information.

オンライン状態で発行されたリクエストと、同一のWebページのデータを要求する未送信リクエストが保存されていない場合(ステップA7:NO)、遅延送信判定部111は、そのオンライン状態で発行されたリクエストを通信制御部104に出力する。   When the request issued in the online state and the unsent request for requesting the data of the same Web page are not stored (step A7: NO), the delayed transmission determining unit 111 displays the request issued in the online state. Output to the communication control unit 104.

そして、通信制御部104は、オンライン状態で発行されたリクエストを、ネットワーク20を介してWebサーバ200に送信する(ステップA8)。   And the communication control part 104 transmits the request issued in the online state to the Web server 200 via the network 20 (step A8).

次に、通信制御部104は、ステップA8で送信したリクエストに対するレスポンスを受信する(ステップA9)。   Next, the communication control unit 104 receives a response to the request transmitted in step A8 (step A9).

次に、Webアプリケーション実行制御部103は、通信制御部104により受信されたレスポンスに含まれるWebページのデータを、遅延送信制御部110を介して取得し、そのWebページの画面を出力部102に表示させる(ステップA10)。   Next, the Web application execution control unit 103 acquires the Web page data included in the response received by the communication control unit 104 via the delayed transmission control unit 110, and displays the Web page screen to the output unit 102. Display (step A10).

一方、オンライン状態で発行されたリクエストと同一のWebページのデータを要求する未送信リクエストが保存されている場合(ステップA7:YES)、リクエスト遅延送信制御部112は、その未送信リクエストを遅延送信データ保存部113から取得する(ステップA11)。   On the other hand, when an unsent request for requesting data of the same Web page as the request issued in the online state is stored (step A7: YES), the request delay transmission control unit 112 transmits the unsent request in a delayed manner. Obtained from the data storage unit 113 (step A11).

通信制御部104は、リクエスト遅延送信制御部112が取得した未送信リクエストを、オンライン状態で発行されたリクエストよりも先に、ネットワーク20を介してWebサーバ200に送信する(ステップA12)。   The communication control unit 104 transmits the untransmitted request acquired by the request delay transmission control unit 112 to the Web server 200 via the network 20 before the request issued in the online state (step A12).

なお、以下の説明では、未送信リクエストと同一のWebページのデータを要求し、オンライン状態で発行されたリクエストを、送信待機リクエストと称する。   In the following description, a request issued on-line that requests the same Web page data as an unsent request is referred to as a transmission waiting request.

このように、遅延送信を行う場合にも、未送信リクエストを送信待機リクエストよりも先に送信するので、同一のWebページのデータを要求する未送信リクエストと送信待機リクエストとの間で、送信順序の入れ替わりが起こるのを防ぐことができる。   As described above, even in the case of delayed transmission, an untransmitted request is transmitted before a transmission standby request, so the transmission order between an untransmitted request and a transmission standby request for requesting data of the same Web page. Can be prevented from happening.

次に、通信制御部104は、送信した未送信リクエストに対するレスポンスを受信する(ステップA13)。   Next, the communication control unit 104 receives a response to the transmitted untransmitted request (step A13).

リクエスト遅延送信制御部112は、受信されたレスポンスを、そのレスポンスに対応する未送信リクエストと対応つけて遅延送信データ保存部113に保存する(ステップA14)。   The request delay transmission control unit 112 stores the received response in the delay transmission data storage unit 113 in association with the untransmitted request corresponding to the response (step A14).

また、リクエスト遅延送信制御部112は、送信した未送信リクエストのリクエスト送信状況を「未送信」から、「送信成功」または「送信失敗」に更新する(ステップA15)。   Further, the request delay transmission control unit 112 updates the request transmission status of the transmitted untransmitted request from “not transmitted” to “successful transmission” or “transmission failure” (step A15).

ここで、リクエスト遅延送信制御部112は、Webサーバ200から送信されてきたレスポンスが、リクエストが正常に処理された「200OK」を示す場合には「送信成功」に更新し、何らかのエラーが発生したことを示す場合には「送信失敗」に更新する。   Here, when the response transmitted from the Web server 200 indicates “200 OK” in which the request has been processed normally, the request delay transmission control unit 112 updates it to “successful transmission” and some error has occurred. If it indicates, update to “transmission failure”.

次に、リクエスト遅延送信制御部112は、送信待機リクエストと同一のWebページのデータを要求する未送信リクエストが、遅延送信データ保存部113に保存されているかを再度判定する(ステップA16)。   Next, the request delay transmission control unit 112 determines again whether an unsent request for requesting data of the same Web page as the transmission standby request is stored in the delayed transmission data storage unit 113 (step A16).

送信待機リクエストと同一のWebページのデータを要求する未送信リクエストが保存されている場合(ステップA16:YES)、端末100は、ステップA11からA16までの処理を繰り返す。   When an unsent request for requesting the same Web page data as the transmission standby request is stored (step A16: YES), the terminal 100 repeats the processing from steps A11 to A16.

送信待機リクエストと同一のWebページのデータを要求する未送信リクエストが全てWebサーバ200に送信され、遅延送信データ保存部113に保存されていない場合(ステップA16:NO)、遅延送信判定部111は、ステップA1で発行された送信待機リクエストに含まれるクッキーの更新を行う(ステップA17)。   When all unsent requests that request data on the same Web page as the transmission standby request are transmitted to the Web server 200 and are not stored in the delayed transmission data storage unit 113 (step A16: NO), the delayed transmission determination unit 111 Then, the cookie included in the transmission standby request issued in step A1 is updated (step A17).

上述したように、Webサーバ200は、リクエストに含まれるクッキーにより端末100を識別し、端末100との間の一連の通信を管理するセッション管理を行う。   As described above, the Web server 200 identifies the terminal 100 based on the cookie included in the request, and performs session management for managing a series of communications with the terminal 100.

ここで、未送信リクエストが送信されることにより、新たにクッキーが設定される場合、その未送信リクエストよりも後に発行された送信待機リクエストには、その新たに設定されたクッキーが含まれていることが、Webサーバ200によるセッション管理のために必要である。   Here, when a new cookie is set by transmitting an unsent request, the newly set cookie is included in the transmission waiting request issued after the unsent request. Is necessary for session management by the Web server 200.

しかし、送信待機リクエストは未送信リクエストに対するレスポンスの受信前に発行されているので、送信待機リクエストには、その発行時点で不図示の保存部に保存されていたクッキーが含まれている。   However, since the transmission standby request is issued before receiving a response to the untransmitted request, the transmission standby request includes a cookie stored in a storage unit (not shown) at the time of the issue.

従って、そのまま送信待機リクエストを送信すると、未送信リクエストを送信することにより新たにクッキーが設定された場合、Webサーバ200が設定したクッキーと、送信待機リクエストに含まれるクッキーとが食い違い、Webサーバ200によるセッション管理に不整合が生じる。   Therefore, if the transmission standby request is transmitted as it is, and a new cookie is set by transmitting an untransmitted request, the cookie set by the Web server 200 and the cookie included in the transmission standby request are inconsistent. Inconsistency occurs in session management.

そこで、本実施形態においては、遅延送信判定部111は、未送信リクエストの送信後、未送信リクエストに対するレスポンスが通信制御部104により受信されるまで、送信待機リクエストの送信を待機する。   Therefore, in the present embodiment, the delayed transmission determination unit 111 waits for transmission of a transmission standby request until a response to the untransmitted request is received by the communication control unit 104 after transmission of the untransmitted request.

そして、遅延送信判定部111は、受信されたレスポンスに新たに設定されたクッキーが含まれているかを判定する。   Then, the delayed transmission determination unit 111 determines whether the newly set cookie is included in the received response.

受信されたレスポンスに新たに設定されたクッキーが含まれている場合、遅延送信判定部111は、送信待機リクエストに含まれるクッキーを新たに設定されたクッキーに更新して通信制御部104に出力する。   When the newly set cookie is included in the received response, the delayed transmission determination unit 111 updates the cookie included in the transmission standby request to the newly set cookie and outputs the cookie to the communication control unit 104. .

このようにすることで、未送信リクエストを送信することにより新たなクッキーが設定される場合にも、送信待機リクエストには新たに設定されたクッキーが含まれることになるので、Webサーバ200が設定したクッキーと送信待機リクエストに含まれるクッキーとの食い違いによるセッション管理の不整合が生じるのを防ぐことができる。   In this way, even when a new cookie is set by transmitting an unsent request, the newly set cookie is included in the transmission standby request. It is possible to prevent inconsistency in session management due to a discrepancy between the received cookie and the cookie included in the transmission waiting request.

(2)未送信リクエストの送信動作
図5は、遅延送信データ保存部113に保存された未送信リクエストを自動的に送信する際の端末100の動作の一例を示すフローチャートである。
(2) Transmission Operation of Unsent Request FIG. 5 is a flowchart showing an example of the operation of the terminal 100 when automatically transmitting the unsent request stored in the delayed transmission data storage unit 113.

まず、ネットワーク接続監視部105は、オフライン状態から、オンライン状態になったことをリクエスト遅延送信制御部112に通知する(ステップB1)。   First, the network connection monitoring unit 105 notifies the request delay transmission control unit 112 that the online state has been changed from the offline state (step B1).

ネットワーク接続監視部105から通知を受けると、リクエスト遅延送信制御部112は、保存された未送信リクエストを取得する(ステップB2)。   Upon receiving the notification from the network connection monitoring unit 105, the request delay transmission control unit 112 acquires the stored untransmitted request (step B2).

通信制御部104は、リクエスト遅延送信制御部112が取得した未送信リクエストを、ネットワーク20を介してWebサーバ200に送信し(ステップB3)、ステップB3で送信した未送信リクエストに対するレスポンスを受信する(ステップB4)。   The communication control unit 104 transmits the untransmitted request acquired by the request delay transmission control unit 112 to the Web server 200 via the network 20 (Step B3), and receives a response to the untransmitted request transmitted at Step B3 ( Step B4).

リクエスト遅延送信制御部112は、受信されたレスポンスを、そのレスポンスに対応する未送信リクエストと対応つけて遅延送信データ保存部113に保存する(ステップB5)。   The request delay transmission control unit 112 stores the received response in the delay transmission data storage unit 113 in association with the untransmitted request corresponding to the response (step B5).

また、リクエスト遅延送信制御部112は、遅延送信データ保存部113における未送信リクエストのリクエスト送信状況を、「未送信」から、「送信成功」または「送信失敗」に更新する(ステップB6)。   Further, the request delay transmission control unit 112 updates the request transmission status of the untransmitted request in the delayed transmission data storage unit 113 from “not transmitted” to “successful transmission” or “transmission failure” (step B6).

次に、リクエスト遅延送信制御部112は、未送信リクエストが、遅延送信データ保存部113に保存されているかを再度判定する(ステップB7)。   Next, the request delay transmission control unit 112 determines again whether an untransmitted request is stored in the delay transmission data storage unit 113 (step B7).

未送信リクエストが全てWebサーバ200に送信され、遅延送信データ保存部113に保存されていない場合、リクエスト遅延送信制御部112は、その旨をネットワーク接続監視部105に通知し、ネットワーク接続監視部105は、端末100とネットワーク20との接続状態の監視を終了する(ステップB8)。   When all unsent requests are transmitted to the Web server 200 and are not stored in the delayed transmission data storage unit 113, the request delay transmission control unit 112 notifies the network connection monitoring unit 105 to that effect, and the network connection monitoring unit 105 Terminates the monitoring of the connection state between the terminal 100 and the network 20 (step B8).

(3)遅延送信要求リクエストの送信状況を示す通知画面の表示動作
図6は、遅延送信要求リクエストの送信状況を示す通知画面を出力部102に表示する際の端末100の動作の一例を示すフローチャートである。
(3) Display Operation of Notification Screen Showing Transmission Status of Delayed Transmission Request Request FIG. 6 is a flowchart showing an example of operation of the terminal 100 when displaying a notification screen showing the transmission status of the delayed transmission request request on the output unit 102. It is.

遅延送信要求リクエストの送信状況の確認を要求する操作がユーザ10により行われると(ステップC1)、Webアプリケーション実行制御部103は、その旨を遅延送信制御部110に通知する。   When an operation for requesting confirmation of the transmission status of the delayed transmission request is performed by the user 10 (step C1), the Web application execution control unit 103 notifies the delayed transmission control unit 110 to that effect.

Webアプリケーション実行制御部103からの通知を受けると、リクエスト遅延送信制御部112は、保存された遅延送信データから、遅延送信要求リクエストのリクエスト送信状況の情報を取得し(ステップC2)、遅延送信要求リクエストの送信状況を示すリストを作成する(ステップC3)。   Upon receiving the notification from the Web application execution control unit 103, the request delay transmission control unit 112 acquires information on the request transmission status of the delay transmission request from the stored delay transmission data (step C2), and the delay transmission request. A list indicating the transmission status of the request is created (step C3).

Webアプリケーション実行制御部103は、リクエスト遅延送信制御部112にて作成された遅延送信要求リクエストの送信状況を示すリストを、出力部102に表示させる(ステップC4)。   The Web application execution control unit 103 causes the output unit 102 to display a list indicating the transmission status of the delayed transmission request generated by the request delay transmission control unit 112 (step C4).

(4)未送信リクエストの変更動作
図7は、未送信リクエストの変更が要求された際の端末100の動作の一例を示すフローチャートである。
(4) Unsent Request Change Operation FIG. 7 is a flowchart illustrating an example of the operation of the terminal 100 when a change of an unsent request is requested.

未送信リクエストの変更を要求する操作がユーザ10により行われると(ステップD1)、リクエスト変更部114は、ユーザ10が変更を要求する未送信リクエストに対応するリクエスト発行Webページのデータを取得する(ステップD2)。   When an operation for requesting a change of an unsent request is performed by the user 10 (step D1), the request changing unit 114 acquires data of a request issuance Web page corresponding to an unsent request for which the user 10 requests a change ( Step D2).

Webアプリケーション実行制御部103は、リクエスト変更部114が取得したデータのWebページの画面を出力部102に表示させる(ステップD3)。   The web application execution control unit 103 causes the output unit 102 to display the screen of the web page of the data acquired by the request change unit 114 (step D3).

そして、出力部102に表示されたWebページ上で、ユーザ10により未送信リクエストの変更指示を受けると、Webアプリケーション実行制御部103は、その変更指示を未送信リクエスト変更部114に出力する(ステップD4)。   When the user 10 receives a change instruction for an unsent request on the Web page displayed on the output unit 102, the Web application execution control unit 103 outputs the change instruction to the unsent request change unit 114 (step S1). D4).

リクエスト変更部114は、Webアプリケーション実行制御部103から出力された変更指示に従い、遅延送信データ保存部113に保存されている未送信リクエストを変更する(ステップD5)。   The request change unit 114 changes the untransmitted request stored in the delayed transmission data storage unit 113 in accordance with the change instruction output from the Web application execution control unit 103 (step D5).

そして、リクエスト遅延送信制御部112は、オンライン状態になった後に、変更された未送信リクエストを通信制御部104に出力する。   Then, the request delay transmission control unit 112 outputs the changed non-transmission request to the communication control unit 104 after entering the online state.

このように、本実施形態によれば、端末100は、未送信リクエストを、オンライン状態になった後に、送信待機リクエストよりも先に、Webサーバ200に送信する。   As described above, according to the present embodiment, the terminal 100 transmits an unsent request to the Web server 200 prior to the transmission standby request after entering the online state.

そのため、未送信リクエストと送信待機リクエストとの間で、送信順序の入れ替わりが起こるのを防ぐことができる。   Therefore, it is possible to prevent the transmission order from being changed between the untransmitted request and the transmission standby request.

また、端末100は、未送信リクエストに対するレスポンスに新たに設定されたクッキーが含まれている場合、送信待機リクエストに含まれるクッキーを、新たに設定されたクッキーに更新して、Webサーバ200に送信する。   In addition, when the newly set cookie is included in the response to the unsent request, the terminal 100 updates the cookie included in the transmission standby request to the newly set cookie and transmits it to the Web server 200. To do.

そのため、未送信リクエストを送信することによりクッキーが新たに設定される場合にも、端末100は、その新たに設定された制御情報を送信待機リクエストに含めて送信することができるため、Webサーバ200が新たに設定したクッキーと、送信待機リクエストに含まれるクッキーとの食い違いによるセッション管理の不整合が生じるのを防ぐことができる。   Therefore, even when a cookie is newly set by transmitting an unsent request, the terminal 100 can transmit the newly set control information in the transmission standby request. Can prevent inconsistency in session management due to a discrepancy between the newly set cookie and the cookie included in the transmission waiting request.

なお、本実施形態においては、出力部102には、未送信リクエストに対するレスポンスを受信したことを、ユーザ10に通知する通知画面を表示させることも可能である。   In the present embodiment, the output unit 102 can also display a notification screen that notifies the user 10 that a response to an unsent request has been received.

また、出力部102には、リクエストをWebサーバ200に送信したことを、ユーザ10に通知する通知画面を表示させることも可能である。   The output unit 102 can also display a notification screen that notifies the user 10 that the request has been transmitted to the Web server 200.

また、本発明の端末100にて行われる方法は、コンピュータに実行させるためのプログラムに適用してもよい。また、そのプログラムを記憶媒体に格納することも可能であり、ネットワークを介して外部に提供することも可能である。   The method performed in the terminal 100 of the present invention may be applied to a program for causing a computer to execute. In addition, the program can be stored in a storage medium and can be provided to the outside via a network.

100 端末
101 入力部
102 出力部
103 Webアプリケーション実行制御部
104 通信制御部
105 ネットワーク接続監視部
110 遅延送信制御部
111 遅延送信判定部
112 リクエスト遅延送信制御部
113 遅延送信データ保存部
114 リクエスト変更部
20 ネットワーク
200 Webサーバ
DESCRIPTION OF SYMBOLS 100 Terminal 101 Input part 102 Output part 103 Web application execution control part 104 Communication control part 105 Network connection monitoring part 110 Delay transmission control part 111 Delay transmission determination part 112 Request delay transmission control part 113 Delay transmission data preservation | save part 114 Request change part 20 Network 200 Web server

Claims (11)

Webページを管理するWebサーバとネットワークを介して接続された端末であって、
前記Webページのデータを要求するリクエストを発行する発行部と、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視部と、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する保存部と、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で前記保存部に未送信のまま保存されている第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存部に保存されている前記第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信部と、を有する端末。
A terminal connected via a network to a web server that manages web pages,
An issuing unit for issuing a request for requesting data of the Web page;
A monitoring unit that monitors whether the own terminal and the network are connected online or offline;
A storage unit that stores the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
When the second request issued in the online state requests the same Web page data as the first request stored unsent in the storage unit at the time of the issue, A transmission unit configured to transmit the first request stored in the storage unit to the Web server before the second request.
前記保存部に未送信のまま前記第1のリクエストが保存されている状態で、該第1のリクエストの変更指示を受けた場合、該変更指示に従って前記保存部に保存されている第1のリクエストを変更する変更部をさらに有する、請求項1に記載の端末。   When receiving a change instruction for the first request in a state where the first request is stored without being transmitted to the storage unit, the first request stored in the storage unit according to the change instruction The terminal according to claim 1, further comprising: a changing unit that changes. 前記Webサーバから、前記リクエストに対する応答として、Webページのデータと、自端末の前記リクエストによる前記Webページのデータの要求状況に基づき前記Webサーバにより設定される制御情報と、該制御情報が最新のものであるか否かを示す情報と、を含むレスポンスを受信する受信部をさらに有し、
前記保存部は、
前記受信部により受信されたレスポンスに含まれる前記制御情報が最新のものである場合に該制御情報を保存し、
前記発行部は、
前記リクエストの発行時に、その時点で前記保存部に保存されている制御情報を含めたリクエストを発行し、
前記送信部は、
前記第2のリクエストが発行された時点で前記保存部に未送信のまま保存されている第1のリクエストがある場合、前記第1のリクエストの送信後、前記第1のリクエストに対するレスポンスが受信されるまで、前記第2のリクエストの送信を待機し、
前記第1のリクエストに対するレスポンスが受信され、該レスポンスに含まれる制御情報が最新のものである場合、前記第2のリクエストに含まれる制御情報を該レスポンスに含まれる最新の制御情報に更新した上で、前記第2のリクエストを前記Webサーバに送信する、請求項1または2に記載の端末。
As a response to the request from the Web server, the Web page data, the control information set by the Web server based on the request status of the Web page data by the request of the own terminal, and the control information are the latest And a receiver that receives a response including information indicating whether or not
The storage unit is
If the control information included in the response received by the receiving unit is the latest, save the control information,
The issuing unit
When issuing the request, issue a request including the control information stored in the storage unit at that time,
The transmitter is
When there is a first request that is stored in the storage unit without being transmitted when the second request is issued, a response to the first request is received after the transmission of the first request. Until the second request is sent,
When a response to the first request is received and the control information included in the response is the latest, the control information included in the second request is updated to the latest control information included in the response. The terminal according to claim 1, wherein the second request is transmitted to the Web server.
前記受信部により前記レスポンスが受信された場合、前記レスポンスが受信されたことを表示する出力部を有する請求項3に記載の端末。   The terminal according to claim 3, further comprising: an output unit that displays that the response has been received when the response is received by the receiving unit. 前記出力部は、前記送信部により前記Webサーバへの前記リクエストの送信が行われた場合、前記Webサーバへの前記リクエストの送信が行われたことを表示する請求項4に記載の端末。   The terminal according to claim 4, wherein the output unit displays that the transmission of the request to the Web server is performed when the transmission unit transmits the request to the Web server. Webページを管理するWebサーバとネットワークを介して接続された端末に適用される、前記Webページのデータを要求するリクエストを送信するリクエスト送信方法であって、
前記リクエストを発行する発行ステップと、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視ステップと、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する第1の保存ステップと、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で未送信のまま保存されている前記第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存されている第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信ステップと、を有するリクエスト送信方法。
A request transmission method for transmitting a request for requesting data of the Web page, which is applied to a terminal connected via a network to a Web server that manages the Web page,
An issuing step for issuing the request;
A monitoring step of monitoring whether the own terminal and the network are connected online or not connected offline;
A first storage step of storing the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
If the second request issued in the online state requests data of the same Web page as the first request stored untransmitted at the time of the issuance, the stored A transmission step of transmitting the first request to the Web server before the second request.
未送信のまま前記第1のリクエストが保存されている状態で、該第1のリクエストの変更指示を受けた場合、該変更指示に従って前記保存されている第1のリクエストを変更する変更ステップをさらに有する、請求項6に記載のリクエスト送信方法。   A change step of changing the stored first request according to the change instruction when the change request of the first request is received in a state where the first request is stored without being transmitted; The request transmission method according to claim 6. 前記Webサーバから、前記リクエストに対する応答として、Webページのデータと、自端末の前記リクエストによる前記Webページのデータの要求状況に基づき前記Webサーバにより設定される制御情報と、該制御情報が最新のものであるか否かを示す情報と、を含むレスポンスを受信する受信ステップと、
前記受信ステップにより受信されたレスポンスに含まれる前記制御情報が最新のものである場合に該制御情報を保存する第2の保存ステップと、を有し
前記発行ステップでは、
前記リクエストの発行時に、その時点で前記保存されている制御情報を含めたリクエストを発行し、
前記送信ステップでは、
前記第2のリクエストが発行された時点で未送信のまま保存されている前記第1のリクエストがある場合、前記第1のリクエストの送信後、前記第1のリクエストに対するレスポンスが受信されるまで、前記第2のリクエストの送信を待機し、
前記第1のリクエストに対するレスポンスが受信され、該レスポンスに含まれる制御情報が最新のものである場合、前記第2のリクエストに含まれる制御情報を該レスポンスに含まれる最新の制御情報に更新した上で、前記第2のリクエストを前記Webサーバに送信する、請求項6または7に記載のリクエスト送信方法。
As a response to the request from the Web server, the Web page data, the control information set by the Web server based on the request status of the Web page data by the request of the own terminal, and the control information are the latest A reception step of receiving a response including information indicating whether or not
A second storing step for storing the control information when the control information included in the response received by the receiving step is the latest, and in the issuing step,
When issuing the request, issue a request including the stored control information at that time,
In the transmission step,
If there is the first request that is stored untransmitted at the time when the second request is issued, after the first request is transmitted, a response to the first request is received. Waiting to send the second request,
When a response to the first request is received and the control information included in the response is the latest, the control information included in the second request is updated to the latest control information included in the response. The request transmission method according to claim 6, wherein the second request is transmitted to the Web server.
前記受信ステップにより前記レスポンスが受信された場合、前記レスポンスが受信されたことを表示する出力ステップを有する請求項8に記載のリクエスト送信方法。   The request transmission method according to claim 8, further comprising an output step of displaying that the response is received when the response is received in the reception step. 前記出力ステップでは、前記送信ステップにより前記Webサーバへの前記リクエストの送信が行われた場合、前記Webサーバへの前記リクエストの送信が行われたことを表示する請求9に記載のリクエスト送信方法。   The request transmission method according to claim 9, wherein, in the output step, when the transmission of the request to the Web server is performed in the transmission step, the request transmission to the Web server is displayed. Webページを管理するWebサーバとネットワークを介して接続された端末に、
前記Webページのデータを要求するリクエストを発行する発行手順と、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視手順と、
前記オフライン状態で発行された第1のリクエストを、該第1のリクエストが未送信であるか否かを示す情報と共に保存する保存手順と、
前記オンライン状態で発行された第2のリクエストが、該発行の時点で未送信のまま保存されている前記第1のリクエストと同一のWebページのデータを要求するものである場合、前記保存されている第1のリクエストを前記第2のリクエストよりも先に前記Webサーバに送信する送信手順と、を実行させるプログラム。
To a terminal connected via a network to a web server that manages web pages,
An issuing procedure for issuing a request for requesting data of the Web page;
A monitoring procedure for monitoring whether the own terminal and the network are connected online or not connected offline;
A storage procedure for storing the first request issued in the offline state together with information indicating whether the first request has not been transmitted;
If the second request issued in the online state requests data of the same Web page as the first request stored untransmitted at the time of the issuance, the stored A transmission procedure for transmitting the first request to the Web server prior to the second request.
JP2009149992A 2009-06-24 2009-06-24 Terminal, request transmission method, and program Expired - Fee Related JP5251753B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009149992A JP5251753B2 (en) 2009-06-24 2009-06-24 Terminal, request transmission method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009149992A JP5251753B2 (en) 2009-06-24 2009-06-24 Terminal, request transmission method, and program

Publications (2)

Publication Number Publication Date
JP2011008414A JP2011008414A (en) 2011-01-13
JP5251753B2 true JP5251753B2 (en) 2013-07-31

Family

ID=43565019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009149992A Expired - Fee Related JP5251753B2 (en) 2009-06-24 2009-06-24 Terminal, request transmission method, and program

Country Status (1)

Country Link
JP (1) JP5251753B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10336274A (en) * 1997-05-29 1998-12-18 Mitsubishi Electric Corp Data communication system and data communication method
JPH11272573A (en) * 1998-03-19 1999-10-08 Toshiba Corp File transfer method, file transfer system and recording medium
CN1108578C (en) * 1999-01-28 2003-05-14 国际商业机器公司 Method and apparatus of invoking and providing response for off-line customer
JP3439397B2 (en) * 1999-09-29 2003-08-25 日本電気通信システム株式会社 Internet mobile phone

Also Published As

Publication number Publication date
JP2011008414A (en) 2011-01-13

Similar Documents

Publication Publication Date Title
JP4634547B2 (en) Real-time information distribution method
JP5022301B2 (en) Proxy server, communication relay program, and communication relay method
JP4698756B2 (en) Offline execution of web-based applications
US10120847B2 (en) Methods for transforming requests for web content and devices thereof
US8676880B2 (en) Server apparatus, communication apparatus, and method for generating navigation information
US20150296027A1 (en) Continuous Browsing Across Devices
KR20160118378A (en) Application program control
JP5654285B2 (en) Data communication apparatus, method and program between web applications
US8521891B1 (en) Network browser system, method, and computer program product for conditionally loading a portion of data from a network based on a data transfer rate
CN102004729A (en) Method and system for showing website webpage and website server
JP5255006B2 (en) Web system, method and program
US9948693B2 (en) Generic cloud service for publishing data to be consumed by RSS readers
JP6397312B2 (en) Network system and network system control method
JP2007079988A (en) Www browser, html page sharing system and html page sharing method
JP5251753B2 (en) Terminal, request transmission method, and program
JP2011164749A (en) Apparatus and method for making web application highly available
KR100365137B1 (en) System and method for maintaining a mobile internet connection
US20150242376A1 (en) Publishing Information Technology Data As A Newsfeed
JP2009080587A (en) Data transfer server
JP2002041377A (en) Data communication system, data processor used for the communication system, session maintenance method using browser and recording medium
US11108872B2 (en) System and method using the same, information processing apparatus and method using the same, and storage medium
JP2011150423A (en) Web browser system and data update method
JP2022012403A (en) Program, information processing device, and control method
JPWO2009001895A1 (en) Browser control method, program, computer-usable recording medium, client device, and network system
US20150006679A1 (en) Individual information management system, electronic device, and method for managing individual information

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120511

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130307

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: 20130319

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130401

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160426

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees