JP5251753B2 - Terminal, request transmission method, and program - Google Patents
Terminal, request transmission method, and program Download PDFInfo
- 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
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
特許文献1に記載の端末は、オフライン状態であるためにリクエストが送信できない場合にも、オンライン状態になった後に、自動的にリクエストをWebサーバに送信するので、既にオフライン状態で発行されたリクエストと同じリクエストを発行するための操作を、ユーザが再度行う必要がない。
Even if the terminal described in
しかしながら、特許文献1に記載の端末は、オフライン時にリクエストが保存され、その後、オンライン状態で、保存されたリクエストと同一のWebページのデータを要求するリクエストが新たに発行された場合、これらのリクエストの送信順序について何ら考慮がなされていないため、これらのリクエストの送信順序の入れ替わりが起こる可能性があるという課題がある。
However, if the terminal described in
このようなリクエストの送信順序の入れ替えが起こると、例えば、オフライン時に保存された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.
以下に、本発明を実施するための形態について図面を参照して説明する。 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
図1に示す通信システムは、ユーザ10がWebサービスを利用する際に用いる端末100と、端末100とネットワーク20を介して接続されるWebサーバ200と、を有する。
The communication system illustrated in FIG. 1 includes a
端末100は、ネットワークアクセス機能を有し、ユーザ10の操作に基づき、Webサーバ200が管理するWebページのデータを要求するリクエストを発行し、ネットワーク20を介してWebサーバ200に送信する。
The
また、端末100は、送信したリクエストに応答してWebサーバ200から送信されてきた、Webページのデータを含むレスポンスを受信する。
Further, the
なお、本実施形態においては、端末100は、HTTP(Hyper Text Transfer Protocol)と呼ばれる通信プロトコルによりWebサーバ200と通信を行い、端末100とWebサーバ200との間で送受信されるリクエストとレスポンスは、HTTPで規定されるHTTPリクエストとHTTPレスポンスに相当する。
In the present embodiment, the
Webサーバ200は、検索サイト、SNS(Social Networking Service)サイト、写真共有サイト、ブログサイト等のWebサイトのWebページのデータを管理する。
The
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
次に、端末100の構成について説明する。
Next, the configuration of the
図2は、端末100の構成の一例を示すブロック図である。
FIG. 2 is a block diagram illustrating an example of the configuration of the
図2に示す端末100は、入力部101と、出力部102と、Webアプリケーション実行制御部103と、通信制御部104と、ネットワーク接続監視部105と、遅延送信制御部110と、を有する。
The
なお、Webアプリケーション実行制御部103は、発行部の一例である。
The web application
また、通信制御部104は、送信部および受信部の一例である。
The
入力部101は、ユーザ10の操作を示す操作情報をWebアプリケーション実行制御部103に出力する。入力部101の具体例としては、キーボードやマウス等がある。
The
出力部102は、Webページの画面等を表示する表示部である。出力部102の具体例としては、ディスプレイ等がある。
The
Webアプリケーション実行制御部103は、入力部101から出力された操作情報に基づき、Webページのデータを要求するリクエストを発行する。
The Web application
なお、Webアプリケーション実行制御部103により発行されるリクエストには、データの提供を要求するWebページのURL(Uniform Resource Locator)の他に、後述のクッキー(Cookie)が含まれている。
Note that the request issued by the Web application
ここで、クッキーとは、端末100を識別する識別情報を含み、リクエストによるWebページのデータの要求状況に基づきWebサーバ200により設定される制御情報である。
Here, the cookie is control information set by the
一般に、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
そこで、Webサーバ200は、リクエストを受信した場合、クッキーを含むレスポンスを端末100に送信し、端末100は、Webサーバ200から送信されてきたレスポンスに含まれるクッキーを不図示の保存部に保存し、保存したクッキーをその後に送信するリクエストに含めて送信する。
Therefore, when receiving the request, the
また、端末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アプリケーション実行制御部103は、レスポンスに含まれるデータを取得したWebページの画面等を出力部102に表示させる。
In addition, the Web application
通信制御部104は、Webアプリケーション実行制御部103により発行されたリクエストを、ネットワーク20を介してWebサーバ200に送信する。
The
また、通信制御部104は、Webサーバ200から送信されてきたレスポンスを受信し、受信したレスポンスを遅延送信制御部110に出力する。
In addition, the
ネットワーク接続監視部105は、端末100とネットワーク20との接続が、オンライン状態であるかオフライン状態であるかを監視する。
The network
遅延送信制御部110は、リクエストのWebサーバ200への送信を制御し、特に、オフライン状態で発行されたリクエストを、オンライン状態になった後にWebサーバ200に送信する遅延送信の制御を行う。
The delayed
遅延送信制御部110の内部構成について説明する。
The internal configuration of the delay
遅延送信制御部110は、遅延送信判定部111と、リクエスト遅延送信制御部112と、遅延送信データ保存部113と、リクエスト変更部114と、を有する。
The delay
遅延送信判定部111は、オフライン状態でリクエストが発行された場合、そのリクエストを遅延送信すると判定し、リクエスト遅延送信制御部112に、そのリクエストの遅延送信を要求する。そして、遅延送信判定部111は、遅延送信を要求したリクエストである遅延送信要求リクエストをリクエスト遅延送信制御部112に出力する。
When a request is issued in an off-line state, the delay
また、遅延送信判定部111は、オンライン状態でリクエストが発行された場合、そのリクエストを遅延送信しないと判定し、通信制御部104に出力する。
Further, when a request is issued in an online state, the delayed
リクエスト遅延送信制御部112は、遅延送信判定部111から出力された遅延送信要求リクエストを遅延送信データ保存部113に保存する。
The request delay
また、リクエスト遅延送信制御部112は、遅延送信データ保存部113に保存された遅延送信要求リクエストの遅延送信を制御する。
Further, the request delay
遅延送信データ保存部113は、遅延送信要求リクエストと、その遅延送信要求リクエストが発行された際に出力部102に表示されていたWebページのデータと、その遅延送信要求リクエストのWebサーバ200への送信状況と、その遅延送信要求リクエストに対して、Webサーバ200から送信されてきたレスポンスと、を対応つけた遅延送信データを保存する。
The delayed transmission
図3は、遅延送信データ保存部113に保存される遅延送信データの構成の一例を示す図である。
FIG. 3 is a diagram illustrating an example of a configuration of delayed transmission data stored in the delayed transmission
遅延送信データ保存部113は、遅延送信要求リクエストとして、遅延送信要求リクエストによりデータを要求するWebページのURLやクッキーなどの遅延送信要求リクエストに含まれる情報を保存する。
The delayed transmission
また、遅延送信データ保存部113は、リクエスト発行Webページとして、Webアプリケーション実行制御部103により遅延送信要求リクエストが発行された際に出力部102に表示されていたWebページであるリクエスト発行Webページのデータを保存する。
The delayed transmission
なお、リクエスト発行Webページのデータは、リクエスト遅延送信制御部112が、Webアプリケーション実行制御部103から取得する。
The request issuance Web page data is acquired from the Web application
また、遅延送信データ保存部113は、リクエスト送信状況として、Webサーバ200に対する遅延送信要求リクエストの送信状況の情報を保存する。
The delayed transmission
具体的には、遅延送信データ保存部113は、遅延送信要求リクエストが、Webサーバ200への送信が行われていない場合には「未送信」を、Webサーバ200への送信が行われ、正常に処理された場合には「送信成功」を、Webサーバ200への送信が行われたが、正常に処理されなかった場合には「送信失敗」を保存する。
Specifically, the delayed transmission
また、遅延送信データ保存部113は、レスポンスとして、送信した遅延送信要求リクエストに対してWebサーバ200から送信されてきたレスポンスを保存する。
Further, the delayed transmission
リクエスト変更部114は、遅延送信要求リクエストのうち、リクエスト送信状況が「未送信」である未送信リクエストの変更を要求する操作がユーザ10により行われた場合、その未送信リクエストに対応するリクエスト発行Webページの画面をWebアプリケーション実行制御部103に表示させ、そのWebページ上でユーザ10から受けた未送信リクエストの変更指示に従い、遅延送信データ保存部113に保存された未送信リクエストを変更する。
The
次に、端末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
ここで、Webアプリケーション実行制御部103により発行されたリクエストには、データの提供を要求するWebページのURLの他に、上述した不図示の保存部に保存されているクッキーが含まれている。
Here, the request issued by the Web application
遅延送信判定部111は、リクエストが発行されると、ネットワーク接続監視部105により監視されている端末100とネットワーク20との接続が、オンライン状態であるかを判定する(ステップA2)。
When the request is issued, the delayed
オフライン状態の場合(ステップA2:NO)、遅延送信判定部111は、ステップA1で発行されたリクエストを遅延送信すると判定し、遅延送信を要求する遅延送信要求リクエストをリクエスト遅延送信制御部112に出力する(ステップA3)。
In the offline state (step A2: NO), the delayed
リクエスト遅延送信制御部112は、遅延送信要求リクエストを遅延送信データ保存部113に保存する(ステップA4)。
The request delay
次に、リクエスト遅延送信制御部112は、遅延送信要求リクエストに対応するリクエスト発行WebページのデータをWebアプリケーション実行制御部103から取得し、遅延送信データ保存部113に保存する。
Next, the request delay
そして、リクエスト遅延送信制御部112は、オンライン状態になったことを通知するように、ネットワーク接続監視部105に要求する(ステップA5)。
Then, the request delay
次に、リクエスト遅延送信制御部112は、遅延送信要求リクエストに対して、遅延送信を行うための処理が完了したことをWebアプリケーション実行制御部103に通知し、Webアプリケーション実行制御部103は、その旨の通知を受けて、遅延送信の要求が行われたことをユーザ10に通知する通知画面を出力部102に表示させる(ステップA6)。
Next, the request delay
一方、端末100とネットワーク20とがオンライン状態の場合(ステップA2:YES)、リクエスト遅延送信制御部112は、ステップA1において、オンライン状態で発行されたリクエストと同一のWebページのデータを要求する未送信リクエストが、遅延送信データ保存部113に保存されているかを判定する(ステップA7)。
On the other hand, when the terminal 100 and the
なお、リクエスト遅延送信制御部112は、オンライン状態で発行されたリクエストと未送信リクエストとが同一のWebページのデータを要求するかを、これらのリクエストに含まれる、データを要求するWebページのURLの情報に基づき判定する。
The request delay
オンライン状態で発行されたリクエストと、同一の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
そして、通信制御部104は、オンライン状態で発行されたリクエストを、ネットワーク20を介してWebサーバ200に送信する(ステップA8)。
And the
次に、通信制御部104は、ステップA8で送信したリクエストに対するレスポンスを受信する(ステップA9)。
Next, the
次に、Webアプリケーション実行制御部103は、通信制御部104により受信されたレスポンスに含まれるWebページのデータを、遅延送信制御部110を介して取得し、そのWebページの画面を出力部102に表示させる(ステップA10)。
Next, the Web application
一方、オンライン状態で発行されたリクエストと同一の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
通信制御部104は、リクエスト遅延送信制御部112が取得した未送信リクエストを、オンライン状態で発行されたリクエストよりも先に、ネットワーク20を介してWebサーバ200に送信する(ステップA12)。
The
なお、以下の説明では、未送信リクエストと同一の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
リクエスト遅延送信制御部112は、受信されたレスポンスを、そのレスポンスに対応する未送信リクエストと対応つけて遅延送信データ保存部113に保存する(ステップA14)。
The request delay
また、リクエスト遅延送信制御部112は、送信した未送信リクエストのリクエスト送信状況を「未送信」から、「送信成功」または「送信失敗」に更新する(ステップA15)。
Further, the request delay
ここで、リクエスト遅延送信制御部112は、Webサーバ200から送信されてきたレスポンスが、リクエストが正常に処理された「200OK」を示す場合には「送信成功」に更新し、何らかのエラーが発生したことを示す場合には「送信失敗」に更新する。
Here, when the response transmitted from the
次に、リクエスト遅延送信制御部112は、送信待機リクエストと同一のWebページのデータを要求する未送信リクエストが、遅延送信データ保存部113に保存されているかを再度判定する(ステップA16)。
Next, the request delay
送信待機リクエストと同一の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サーバ200は、リクエストに含まれるクッキーにより端末100を識別し、端末100との間の一連の通信を管理するセッション管理を行う。
As described above, the
ここで、未送信リクエストが送信されることにより、新たにクッキーが設定される場合、その未送信リクエストよりも後に発行された送信待機リクエストには、その新たに設定されたクッキーが含まれていることが、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
しかし、送信待機リクエストは未送信リクエストに対するレスポンスの受信前に発行されているので、送信待機リクエストには、その発行時点で不図示の保存部に保存されていたクッキーが含まれている。 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
そこで、本実施形態においては、遅延送信判定部111は、未送信リクエストの送信後、未送信リクエストに対するレスポンスが通信制御部104により受信されるまで、送信待機リクエストの送信を待機する。
Therefore, in the present embodiment, the delayed
そして、遅延送信判定部111は、受信されたレスポンスに新たに設定されたクッキーが含まれているかを判定する。
Then, the delayed
受信されたレスポンスに新たに設定されたクッキーが含まれている場合、遅延送信判定部111は、送信待機リクエストに含まれるクッキーを新たに設定されたクッキーに更新して通信制御部104に出力する。
When the newly set cookie is included in the received response, the delayed
このようにすることで、未送信リクエストを送信することにより新たなクッキーが設定される場合にも、送信待機リクエストには新たに設定されたクッキーが含まれることになるので、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
まず、ネットワーク接続監視部105は、オフライン状態から、オンライン状態になったことをリクエスト遅延送信制御部112に通知する(ステップB1)。
First, the network
ネットワーク接続監視部105から通知を受けると、リクエスト遅延送信制御部112は、保存された未送信リクエストを取得する(ステップB2)。
Upon receiving the notification from the network
通信制御部104は、リクエスト遅延送信制御部112が取得した未送信リクエストを、ネットワーク20を介してWebサーバ200に送信し(ステップB3)、ステップB3で送信した未送信リクエストに対するレスポンスを受信する(ステップB4)。
The
リクエスト遅延送信制御部112は、受信されたレスポンスを、そのレスポンスに対応する未送信リクエストと対応つけて遅延送信データ保存部113に保存する(ステップB5)。
The request delay
また、リクエスト遅延送信制御部112は、遅延送信データ保存部113における未送信リクエストのリクエスト送信状況を、「未送信」から、「送信成功」または「送信失敗」に更新する(ステップB6)。
Further, the request delay
次に、リクエスト遅延送信制御部112は、未送信リクエストが、遅延送信データ保存部113に保存されているかを再度判定する(ステップB7)。
Next, the request delay
未送信リクエストが全てWebサーバ200に送信され、遅延送信データ保存部113に保存されていない場合、リクエスト遅延送信制御部112は、その旨をネットワーク接続監視部105に通知し、ネットワーク接続監視部105は、端末100とネットワーク20との接続状態の監視を終了する(ステップB8)。
When all unsent requests are transmitted to the
(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
遅延送信要求リクエストの送信状況の確認を要求する操作がユーザ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
Webアプリケーション実行制御部103からの通知を受けると、リクエスト遅延送信制御部112は、保存された遅延送信データから、遅延送信要求リクエストのリクエスト送信状況の情報を取得し(ステップC2)、遅延送信要求リクエストの送信状況を示すリストを作成する(ステップC3)。
Upon receiving the notification from the Web application
Webアプリケーション実行制御部103は、リクエスト遅延送信制御部112にて作成された遅延送信要求リクエストの送信状況を示すリストを、出力部102に表示させる(ステップC4)。
The Web application
(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
Webアプリケーション実行制御部103は、リクエスト変更部114が取得したデータのWebページの画面を出力部102に表示させる(ステップD3)。
The web application
そして、出力部102に表示されたWebページ上で、ユーザ10により未送信リクエストの変更指示を受けると、Webアプリケーション実行制御部103は、その変更指示を未送信リクエスト変更部114に出力する(ステップD4)。
When the
リクエスト変更部114は、Webアプリケーション実行制御部103から出力された変更指示に従い、遅延送信データ保存部113に保存されている未送信リクエストを変更する(ステップD5)。
The
そして、リクエスト遅延送信制御部112は、オンライン状態になった後に、変更された未送信リクエストを通信制御部104に出力する。
Then, the request delay
このように、本実施形態によれば、端末100は、未送信リクエストを、オンライン状態になった後に、送信待機リクエストよりも先に、Webサーバ200に送信する。
As described above, according to the present embodiment, the terminal 100 transmits an unsent request to the
そのため、未送信リクエストと送信待機リクエストとの間で、送信順序の入れ替わりが起こるのを防ぐことができる。 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
そのため、未送信リクエストを送信することによりクッキーが新たに設定される場合にも、端末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
また、出力部102には、リクエストをWebサーバ200に送信したことを、ユーザ10に通知する通知画面を表示させることも可能である。
The
また、本発明の端末100にて行われる方法は、コンピュータに実行させるためのプログラムに適用してもよい。また、そのプログラムを記憶媒体に格納することも可能であり、ネットワークを介して外部に提供することも可能である。
The method performed in the
100 端末
101 入力部
102 出力部
103 Webアプリケーション実行制御部
104 通信制御部
105 ネットワーク接続監視部
110 遅延送信制御部
111 遅延送信判定部
112 リクエスト遅延送信制御部
113 遅延送信データ保存部
114 リクエスト変更部
20 ネットワーク
200 Webサーバ
DESCRIPTION OF
Claims (11)
前記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.
前記保存部は、
前記受信部により受信されたレスポンスに含まれる前記制御情報が最新のものである場合に該制御情報を保存し、
前記発行部は、
前記リクエストの発行時に、その時点で前記保存部に保存されている制御情報を含めたリクエストを発行し、
前記送信部は、
前記第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.
前記リクエストを発行する発行ステップと、
自端末と前記ネットワークとが、接続されたオンライン状態か、接続されていないオフライン状態かを監視する監視ステップと、
前記オフライン状態で発行された第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.
前記受信ステップにより受信されたレスポンスに含まれる前記制御情報が最新のものである場合に該制御情報を保存する第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.
前記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.
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)
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 |
-
2009
- 2009-06-24 JP JP2009149992A patent/JP5251753B2/en not_active Expired - Fee Related
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 |