JP2011128762A - Information processor, information processing method, and information processing program - Google Patents

Information processor, information processing method, and information processing program Download PDF

Info

Publication number
JP2011128762A
JP2011128762A JP2009285018A JP2009285018A JP2011128762A JP 2011128762 A JP2011128762 A JP 2011128762A JP 2009285018 A JP2009285018 A JP 2009285018A JP 2009285018 A JP2009285018 A JP 2009285018A JP 2011128762 A JP2011128762 A JP 2011128762A
Authority
JP
Japan
Prior art keywords
program
alternative
uri
acquisition
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009285018A
Other languages
Japanese (ja)
Other versions
JP5500968B2 (en
Inventor
Takao Inui
隆夫 乾
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2009285018A priority Critical patent/JP5500968B2/en
Publication of JP2011128762A publication Critical patent/JP2011128762A/en
Application granted granted Critical
Publication of JP5500968B2 publication Critical patent/JP5500968B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an application operatable in accordance with the type of information processor. <P>SOLUTION: A determination information storage unit c121 stores determination information associating program identification information with an acquisition destination of an alternative program. A URI determination unit c122 extracts an acquisition destination of an alternative program to a program to be executed based on identification information of the program to be executed and the determination information. A script acquisition unit c112 acquires the alternative program from the acquisition destination extracted by the URI determination unit c122. A display control unit c111 executes the alternative program acquired by the script acquisition unit c112, instead of the program to be executed. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、情報処理装置、情報処理方法、及び情報処理プログラムに関する。   The present invention relates to an information processing apparatus, an information processing method, and an information processing program.

従来、情報処理装置では、予め情報処理装置にインストールされたソフトウエアを実行して様々なアプリケーション(ローカルアプリケーション)を提供していた。しかし、近年では、情報処理装置がWebサーバ等と通信し、Webサーバと情報処理装置とが一体となってアプリケーション(Webアプリケーション)を提供することがある。
具体的に、Webアプリケーションは、従来のローカルアプリケーションにおけるソフトウエアに代えて、Webサーバ側のソフトウエアとWebクライアント(情報処理装置、例えば、Webブラウザ機能を有するWebブラウザ端末)側のソフトウエアを実行することによって提供される。提供に際しては、Webサーバ側のソフトウエアは主にデータ処理を実行し、Webクライアント側のソフトウエアは画面表示やユーザによる操作に関する処理を実行する分担になっていることが多い。
ここで、Webクライアント側のソフトウエアは、Webブラウザ端末で実行されるソフトウエアである。なお、Webクライアント側のソフトウエアには、従来の静的なHTMLコンテンツと異なり、アプリケーションとして動作するための動的なコンテンツを提供するソフトウエアが含まれる。また、Webクライアント側のソフトウエアは、例えばJavascript(登録商標。以下同じ)言語のようなスクリプト言語で記述されたプログラム(JSプログラムという)を、Webブラウザ機能の一部として実行する。具体的には、JSプログラムは、Webサーバ側で保持され、Webアプリケーション実行時にWebクライアント側へダウンロードされた後、Webブラウザ機能の一部として実行される。
Conventionally, in an information processing apparatus, various applications (local applications) are provided by executing software installed in the information processing apparatus in advance. However, in recent years, an information processing apparatus may communicate with a Web server or the like, and the Web server and the information processing apparatus may provide an application (Web application).
Specifically, the Web application executes software on the Web server side and software on the Web client (information processing apparatus, for example, a Web browser terminal having a Web browser function) instead of the software in the conventional local application. Provided by. At the time of provision, software on the Web server side mainly executes data processing, and software on the Web client side is often assigned to execute processing related to screen display and user operations.
Here, the software on the Web client side is software executed on the Web browser terminal. The software on the Web client side includes software that provides dynamic content for operating as an application, unlike conventional static HTML content. The software on the Web client side executes a program (referred to as a JS program) described in a script language such as Javascript (registered trademark, the same applies hereinafter) language as a part of the Web browser function. Specifically, the JS program is held on the Web server side, downloaded to the Web client side when executing the Web application, and then executed as a part of the Web browser function.

以上のように、Webアプリケーションを作成する場合、Webクライアント側のソフトウエアとしてJavascript言語を用いてアプリケーションの機能を実装するが、その際、複数のWebアプリケーション間で流用が可能な機能を実装することが多くなっている。このため、共通利用できる機能を「ライブラリ」としてまとめ、再利用による作成の効率化が図られている。Javascript言語で作成された汎用のライブラリとしては、例えばprototype.js(http://www.prototypejs.org)やjquery.js(http://jquery.com)などが存在する。
これらライブラリとして用意されたJSプログラムを利用する際には、ライブラリ毎に定められたAPI(Application Program Interface)を用いる。APIとは、命令や関数の集合を利用するためのプログラム上の手続きを定めた規約の集合であり、JSプログラムでは規約に従ってライブラリが提供する機能を呼び出す。例えば、上述のprototype.jsやjquery.jsなどのライブラリについても、その機能を利用するAPIが定められ、公開されている。
As described above, when creating a web application, the function of the application is implemented using the JavaScript language as software on the web client side. At that time, a function that can be used between a plurality of web applications is implemented. Is increasing. For this reason, functions that can be used in common are collected as a “library”, and the creation efficiency is improved by reuse. As a general-purpose library created in the Javascript language, for example, prototype. js (http://www.prototypes.org) and jquery. js (http://jquery.com) exists.
When using these JS programs prepared as libraries, an API (Application Program Interface) defined for each library is used. An API is a set of rules that define a procedure on a program for using a set of instructions and functions. In a JS program, a function provided by a library is called according to the rules. For example, the above-mentioned prototype. js and jquery. An API that uses the function of a library such as js is also defined and made public.

ところで、例えば、PC(パーソナルコンピュータ)上のWebブラウザで実行する事を想定したJSプログラムを、PCと機能(画面の大きさや情報処理能力等)が異なる携帯電話装置上のWebブラウザ機能の一部として実行する場合を考える。このとき、JSプログラムの作成時に携帯電話装置での利用が想定されていなかった場合、表示画面の大きさや画面描画速度の違い、入力操作手段の差などによって、Webアプリケーションを快適に利用できない場合が発生することがある。
この問題に対して、Webアプリケーションの画面表示内容については、従来の静的なHTMLコンテンツの場合と同様に、携帯電話装置上のWebブラウザで「ユーザCSS(Cascading Style Sheets)」を設定することで、その携帯電話装置の表示画面のサイズに応じた表示に合わせて修正することが知られている。CCSとは、HTMLやXMLで記載されたプログラムをどのように修飾して表示するかを指示する仕様である。
By the way, for example, a JS program that is assumed to be executed by a Web browser on a PC (personal computer) is part of a Web browser function on a mobile phone device that has different functions (screen size, information processing capability, etc.) from the PC. Consider the case of running as: At this time, if the use of the mobile phone device is not assumed when the JS program is created, the web application may not be used comfortably due to a difference in display screen size, screen drawing speed, input operation means, or the like. May occur.
In response to this problem, the content displayed on the screen of the Web application can be set by setting “User CSS (Cascading Style Sheets)” in the Web browser on the mobile phone device, as in the case of conventional static HTML content. It is known to correct the display according to the size of the display screen of the mobile phone device. CCS is a specification that indicates how to modify and display a program written in HTML or XML.

しかし、例えばPC上のWebブラウザで実行する際にはユーザ操作における利便性を提供していたアニメーション処理なども、描画速度が遅い情報処理装置上のWebブラウザで実行すると、操作における反応性の低下を引き起こしてしまう。また、例えばPC上のWebブラウザで実行する際には画面上にポップアップ表示する情報提示の方法も、表示画面が狭い携帯電話装置上のWebブラウザで実行すると、画面の表示範囲をはみ出してしまい情報提示としての役目を果せない場合がある。
この問題に対して、特許文献1には、個々の端末がそれぞれ異なる処理性能、表示能力、ネット通信頻度を持ち、サーバが個々の端末の前記情報を保持管理するシステムについて記載されている。このシステムでは、サーバが保持管理している個々の端末の情報に基づいて個々の端末毎に適切な処理スクリプトを供給し、端末は供給された処理スクリプトをサーバからダウンロードして実行する。
However, for example, animation processing that provides convenience in user operation when executed on a Web browser on a PC decreases in operation responsiveness when executed on a Web browser on an information processing apparatus with a slow drawing speed. Will cause. For example, when a web browser on a PC is used to display information in a pop-up display on a screen, if the web browser on a mobile phone device with a narrow display screen is used, the display range of the screen protrudes. It may not serve as a presentation.
With respect to this problem, Patent Document 1 describes a system in which each terminal has different processing performance, display capability, and network communication frequency, and a server holds and manages the information of each terminal. In this system, an appropriate processing script is supplied to each terminal based on information of each terminal held and managed by the server, and the terminal downloads the supplied processing script from the server and executes it.

特表2004−506282号公報JP-T-2004-506282

しかしながら、特許文献1記載の技術では、アプリケーションを提供する装置各々が、情報処理装置の種類に応じて異なる処理スクリプトを供給する必要があるという欠点があった。特にWebアプリケーションの提供者と情報処理装置の製造者とが異なる場合、Webアプリケーション提供者が情報処理装置の製造者の要望に応えた動作をするWebアプリケーションを提供できない場合がある。   However, the technique described in Patent Document 1 has a drawback in that each device that provides an application needs to supply a different processing script depending on the type of information processing device. In particular, when the Web application provider and the information processing device manufacturer are different, the Web application provider may not be able to provide a Web application that operates in response to the demand of the information processing device manufacturer.

本発明は上記の点に鑑みてなされたものであり、情報処理装置に応じた動作をするアプリケーションを提供することができる情報処理装置、情報処理方法、及び情報処理プログラムを提供する。   The present invention has been made in view of the above points, and provides an information processing apparatus, an information processing method, and an information processing program capable of providing an application that operates in accordance with the information processing apparatus.

(1)本発明は上記の課題を解決するためになされたものであり、本発明は、動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置おいて、実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行することを特徴とする情報処理装置である。   (1) The present invention has been made to solve the above-described problems. The present invention is an information processing apparatus that executes a script language program that describes an operation process. The information processing apparatus is characterized in that the program is replaced with another alternative program based on the above and the replaced program is executed.

(2)また、本発明は、上記の情報処理装置において、前記プログラムの識別情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、実行予定の前記プログラムの識別情報と前記判定情報とに基づいて、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、を備えることを特徴とする   (2) Further, in the information processing apparatus according to the present invention, a determination information storage unit that stores determination information in which identification information of the program is associated with an acquisition destination of the alternative program, and a program to be executed Based on the identification information and the determination information, an acquisition destination extraction unit that extracts an acquisition destination of an alternative program of the program to be executed, and an acquisition unit that acquires the alternative program from the acquisition source extracted by the acquisition destination extraction unit And a control unit that executes the substitute program acquired by the acquisition unit instead of the program scheduled to be executed.

(3)また、本発明は、上記の情報処理装置において、前記代替プログラムは、情報処理装置の情報処理能力に応じたプログラムであることを特徴とする。   (3) Further, in the information processing apparatus according to the present invention, the alternative program is a program according to the information processing capability of the information processing apparatus.

(4)また、本発明は、上記の情報処理装置において、前記代替プログラムは、情報処理装置の種類に応じたプログラムであることを特徴とする。   (4) Further, in the information processing apparatus according to the present invention, the alternative program is a program corresponding to a type of the information processing apparatus.

(5)また、本発明は、上記の情報処理装置において、前記情報処理装置は、プログラムを実行して画像を表示する表示装置であり、前記代替プログラムは、情報処理装置の動画の再生能力に応じたプログラムであることを特徴とする。   (5) Further, according to the present invention, in the information processing apparatus described above, the information processing apparatus is a display device that displays an image by executing a program, and the alternative program has a function of reproducing a moving image of the information processing apparatus. It is characterized by being a corresponding program.

(6)また、本発明は、上記の情報処理装置において、前記プログラムの識別情報は、プログラムの取得先を示す情報であることを特徴とする。   (6) In the information processing apparatus according to the present invention, the identification information of the program is information indicating a program acquisition source.

(7)また、本発明は、上記の情報処理装置において、前記プログラムの識別情報は、プログラムの内容を示す情報であることを特徴とする。   (7) Further, in the information processing apparatus according to the present invention, the identification information of the program is information indicating a content of the program.

(8)また、本発明は、上記の情報処理装置において、前記プログラムの識別情報は、プログラム内に記載された文字列の一部であることを特徴とする。   (8) Further, in the information processing apparatus according to the present invention, the identification information of the program is a part of a character string described in the program.

(9)また、本発明は、上記の情報処理装置において、前記プログラムの取得先を示す情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、前記実行予定の前記プログラムの取得先を示す情報と、前記判定情報のプログラムの取得先を示す情報と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、を備えることを特徴とする。   (9) In the information processing apparatus, the present invention provides a determination information storage unit that stores determination information in which information indicating the acquisition destination of the program and an acquisition destination of the alternative program are associated with each other, and the execution schedule An acquisition destination extraction unit for extracting an acquisition destination of an alternative program of the program scheduled to be executed when the information indicating the acquisition destination of the program and the information indicating the acquisition destination of the program of the determination information completely match; An acquisition unit that acquires the alternative program from the acquisition source extracted by the acquisition source extraction unit, and a control unit that executes the alternative program acquired by the acquisition unit instead of the program scheduled to be executed. Features.

(10)また、本発明は、上記の情報処理装置において、前記プログラムの取得先を示す情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、前記実行予定の前記プログラムの取得先を示す情報と、前記判定情報のプログラムの取得先を示す情報と、が部分一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、を備えることを特徴とする。   (10) According to the present invention, in the information processing apparatus described above, a determination information storage unit that stores determination information in which information indicating the acquisition destination of the program is associated with an acquisition destination of the alternative program, and the execution schedule An acquisition destination extraction unit that extracts an acquisition destination of an alternative program of the program to be executed when the information indicating the acquisition destination of the program and the information indicating the acquisition destination of the program of the determination information partially match, An acquisition unit that acquires the alternative program from the acquisition source extracted by the acquisition source extraction unit, and a control unit that executes the alternative program acquired by the acquisition unit instead of the program scheduled to be executed. Features.

(11)また、本発明は、上記の情報処理装置において、前記プログラムの内容と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、前記実行予定の前記プログラムの内容と、前記判定情報のプログラムの内容と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、を備えることを特徴とする。   (11) According to the present invention, in the information processing apparatus described above, a determination information storage unit that stores determination information in which the content of the program is associated with an acquisition destination of the alternative program, and the program to be executed When the content and the content of the program of the determination information completely match, the acquisition source extraction unit that extracts the acquisition source of the alternative program of the program to be executed, and the acquisition source extracted by the acquisition source extraction unit An acquisition unit that acquires the alternative program, and a control unit that executes the alternative program acquired by the acquisition unit instead of the program scheduled to be executed.

(12)また、本発明は、上記の情報処理装置において、前記プログラムの内容を変換した文字列と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、前記実行予定の前記プログラムの内容を変換した文字列と、前記判定情報のプログラムの内容を変換した文字列と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、を備えることを特徴とする。   (12) Further, according to the present invention, in the information processing apparatus described above, a determination information storage unit that stores determination information in which a character string obtained by converting the content of the program is associated with an acquisition destination of the alternative program, and the execution An acquisition destination for extracting an acquisition destination of an alternative program of the program to be executed when a character string obtained by converting the content of the scheduled program and a character string obtained by converting the content of the program of the determination information completely match An extraction unit, an acquisition unit that acquires the alternative program from the acquisition source extracted by the acquisition source extraction unit, and a control unit that executes the alternative program acquired by the acquisition unit instead of the program to be executed It is characterized by providing.

(13)また、本発明は、上記の情報処理装置において、前記プログラム内に記載された文字列の一部は、予め定めた命令文で用いられる変数に関する文字列であることを特徴とする。   (13) Further, in the information processing apparatus according to the present invention, a part of a character string described in the program is a character string related to a variable used in a predetermined command statement.

(14)また、本発明は、上記の情報処理装置において、前記命令文は、変数に値を代入する代入文であることを特徴とする。   (14) Further, in the information processing apparatus according to the present invention, the command statement is an assignment statement that assigns a value to a variable.

(15)また、本発明は、上記の情報処理装置において、前記命令文は、関数を定義する定義文であることを特徴とする。   (15) Further, in the information processing apparatus according to the present invention, the command statement is a definition statement that defines a function.

(16)また、本発明は、上記の情報処理装置において、前記代替プログラムを記憶する記憶部を備えることを特徴とする。   (16) Further, the present invention is characterized in that the information processing apparatus includes a storage unit that stores the alternative program.

(17)また、本発明は、上記の情報処理装置において、前記判定情報を更新することを特徴とする。   (17) Further, the present invention is characterized in that, in the information processing apparatus, the determination information is updated.

(18)また、本発明は、上記の情報処理装置において、前記取得手段は、外部の装置から前記代替プログラムを取得することを特徴とする。   (18) In the information processing apparatus according to the present invention, the acquisition unit acquires the alternative program from an external apparatus.

(19)また、本発明は、上記の情報処理装置において、前記プログラムは、ライブラリで提供されるプログラムであることを特徴とする。   (19) Further, in the information processing apparatus according to the present invention, the program is a program provided in a library.

(20)また、本発明は、上記の情報処理装置において、前記プログラムは、Javascript言語のプログラムであることを特徴とする。   (20) In the information processing apparatus according to the present invention, the program is a Javascript language program.

(21)また、本発明は、動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置における情報処理方法において、前記情報処理装置が、実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行することを特徴とする情報処理方法である。   (21) Further, the present invention provides an information processing method in an information processing apparatus for executing a script language program describing an operation process, wherein the information processing apparatus executes the program based on identification information of the program to be executed. It is an information processing method characterized by replacing with another alternative program and executing the replaced alternative program.

(22)また、本発明は、上記の情報処理装置において、動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置のコンピュータに、実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行させる情報処理プログラムである。   (22) Further, according to the present invention, in the information processing apparatus described above, the program may be transferred to the computer of the information processing apparatus that executes the script language program describing the operation process based on the identification information of the program to be executed. It is an information processing program that replaces the alternative program and causes the replacement program to be executed.

本発明によれば、情報処理装置各々に応じた動作をするアプリケーションを提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the application which operate | moves according to each information processing apparatus can be provided.

本発明の第1の実施形態に係る情報処理システムを示す概念図である。It is a conceptual diagram which shows the information processing system which concerns on the 1st Embodiment of this invention. 本実施形態に係るWebブラウザ端末のハードウェア構成を示す概略ブロック図である。It is a schematic block diagram which shows the hardware constitutions of the web browser terminal which concerns on this embodiment. 本実施形態に係るWebブラウザ端末の論理的な構成を示す概略ブロック図である。It is a schematic block diagram which shows the logical structure of the web browser terminal which concerns on this embodiment. 本実施形態に係る代替JavascriptファイルのJSプログラムの一例を示す概略図である。It is the schematic which shows an example of the JS program of the alternative Javascript file which concerns on this embodiment. 本実施形態に係るWebブラウザアプリケーションを表わすオブジェクト図である。It is an object figure showing the Web browser application concerning this embodiment. Webブラウザアプリケーションの実行動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of execution operation | movement of a web browser application. 本実施形態に係るWebブラウザアプリケーションの実行動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of execution operation | movement of the web browser application which concerns on this embodiment. 本実施形態に係るURI判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the URI determination information table which concerns on this embodiment. 本実施形態に係る代替URI処理の一例を示すフローチャートである。It is a flowchart which shows an example of the alternative URI process which concerns on this embodiment. 本実施形態の変形例1に係るURI判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the URI determination information table which concerns on the modification 1 of this embodiment. 本実施形態の変形例2に係るURI判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the URI determination information table which concerns on the modification 2 of this embodiment. 本発明の第2の実施形態に係るWebブラウザ端末の論理的な構成を示す概略ブロック図である。It is a schematic block diagram which shows the logical structure of the web browser terminal which concerns on the 2nd Embodiment of this invention. 本実施形態に係るWebブラウザアプリケーションを表わすオブジェクト図である。It is an object figure showing the Web browser application concerning this embodiment. 本実施形態に係るWebブラウザアプリケーションの実行動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of execution operation | movement of the web browser application which concerns on this embodiment. 本実施形態に係るデータ判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the data determination information table which concerns on this embodiment. 本実施形態に係るデータファイルの一例を示す概略図である。It is the schematic which shows an example of the data file which concerns on this embodiment. 本実施形態に係るデータファイルの別の一例を示す概略図である。It is the schematic which shows another example of the data file which concerns on this embodiment. 本実施形態に係る代替データ処理の一例を示すフローチャートである。It is a flowchart which shows an example of the alternative data process which concerns on this embodiment. 本実施形態の変形例3に係るデータ判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the data determination information table which concerns on the modification 3 of this embodiment. 本発明の第3の実施形態に係るWebブラウザ端末の論理的な構成を示す概略ブロック図である。It is a schematic block diagram which shows the logical structure of the web browser terminal which concerns on the 3rd Embodiment of this invention. 本実施形態に係るWebブラウザアプリケーションを表わすオブジェクト図である。It is an object figure showing the Web browser application concerning this embodiment. 本実施形態に係る本実施形態に係るWebブラウザアプリケーションの実行動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of execution operation | movement of the web browser application which concerns on this embodiment which concerns on this embodiment. 本実施形態に係るモジュール判定情報テーブルの一例を示す概略図である。It is the schematic which shows an example of the module determination information table which concerns on this embodiment. 本実施形態に係る代替モジュール処理の一例を示すフローチャートである。It is a flowchart which shows an example of the alternative module process which concerns on this embodiment.

(第1の実施形態)
以下、図面を参照しながら本発明の実施形態について詳しく説明する。
図1は、本発明の第1の実施形態に係る情報処理システムを示す概念図である。図1において、情報処理システムは、WebサーバA1、WebサーバB1、Webブラウザ端末C11、C12、・・・(各々をWebブラウザ端末C1という)を具備する。ネットワークN1はインターネットやLAN等のネットワークであり、WebサーバA1、WebサーバB1、及びWebブラウザ端末C1はネットワークN1を介して無線又は有線で接続され、互いに通信を行う。
(First embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a conceptual diagram showing an information processing system according to the first embodiment of the present invention. 1, the information processing system includes a Web server A1, a Web server B1, Web browser terminals C11, C12,... (Each referred to as a Web browser terminal C1). The network N1 is a network such as the Internet or a LAN, and the Web server A1, the Web server B1, and the Web browser terminal C1 are connected to each other wirelessly or via the network N1 and communicate with each other.

WebサーバA1は、Webサイトa1として提供するサイト情報を記憶する。具体的には、WebサーバA1は、サイト情報として、HTML(HyperText Markup Language)で記述されたプログラムが記載されたhtmlファイルa11、HTMLファイルをどのように修飾して表示するかを指示する仕様のプログラムが記載されたCSS(Cascading Style Sheets)ファイルa12、及び、主にWebブラウザ上での動的処理(例えば、HTMLの動的書き換えや入力フォームでの入力文字の自動補完)を記述するプログラムが記載されたJavascriptファイル(以下、JSファイルという)a13を記憶する。   The Web server A1 stores site information provided as the Web site a1. Specifically, the Web server A1 has specifications that specify how to modify and display the html file a11 and the HTML file in which a program written in HTML (HyperText Markup Language) is written as site information. A CSS (Cascading Style Sheets) file a12 in which the program is described, and a program describing dynamic processing (for example, dynamic rewriting of HTML or automatic completion of input characters in an input form) mainly on a Web browser The described JavaScript file (hereinafter referred to as JS file) a13 is stored.

なお、JSファイルa13のプログラムは、Javascript言語で記載されている(以下、Javascript言語で記載されたプログラムをJSプログラムという)。JSファイルは、複数の共通利用できるJSプログラムをまとめた汎用のライブラリ(JSライブラリという)として用いられる。JSライブラリとして用意されたJSプログラムを利用する際には、JSライブラリ毎に定められたAPI(Application Program Interface)を用いる。APIとは、命令や関数の集合を利用するためのプログラム上の手続きを定めた規約の集合である。また、WebサーバA1が提供するWebサイトa1は、一般的なWebアプリケーションを提供しているWebサイトである。
なお、HTMLとは、Webページを記述するためのマークアップ言語でありW3Cが規格を作成している。また、CSSファイルa12も複数の共通利用できるプログラムをまとめた汎用のライブラリであり、APIを用いて利用される。
Note that the program of the JS file a13 is written in the Javascript language (hereinafter, the program written in the Javascript language is referred to as a JS program). The JS file is used as a general-purpose library (referred to as a JS library) in which a plurality of commonly available JS programs are collected. When using a JS program prepared as a JS library, an API (Application Program Interface) defined for each JS library is used. An API is a set of rules that define a procedure on a program for using a set of instructions and functions. The web site a1 provided by the web server A1 is a web site that provides a general web application.
Note that HTML is a markup language for describing Web pages, and the W3C has created a standard. The CSS file a12 is also a general-purpose library in which a plurality of programs that can be used in common are collected, and is used using an API.

WebサーバA1は、Webブラウザ端末C1からの要求に応じて、記憶するサイト情報をネットワークN1を介してWebブラウザ端末C1へ送信する。具体的には、Webブラウザ端末C1は、Webサイトa1に割り当てられているURI(Uniform Resource Identifier;統一書式資源識別子)を指定し、WebサーバA1にサイト情報を要求する。ここで、URIとは、ネットワーク上であるか端末上であるかを問わず、統一した書式でファイルなどのリソースの所在を記述する方法である。例えば、インターネットで広く用いられているURL(Uniform Resource Locator)がURIに含まれる。   In response to a request from the web browser terminal C1, the web server A1 transmits the stored site information to the web browser terminal C1 via the network N1. Specifically, the Web browser terminal C1 specifies a URI (Uniform Resource Identifier) assigned to the Web site a1, and requests the Web server A1 for site information. Here, the URI is a method of describing the location of a resource such as a file in a unified format regardless of whether it is on a network or a terminal. For example, a URL (Uniform Resource Locator) widely used on the Internet is included in the URI.

WebサーバB1は、Webサイトb1として提供する代替JSファイル(WebサーバB1が記憶する代替JSファイルを、Web代替JSファイルb11という)を記憶する。ここで、代替JSファイルは、複数の共通利用できるJSプログラムをまとめた汎用のJSライブラリ(代替ライブラリという)として用いられる。ただし、この代替ライブラリの利用に用いるAPIはJSライブラリの利用に用いるAPIと同等のインタフェースであるが、それぞれのAPIが提供するJSプログラムの内容は異なり(図3参照)、それぞれのJSプログラムが実行された場合の動作処理も異なる。   The Web server B1 stores an alternative JS file provided as the Web site b1 (the alternative JS file stored by the Web server B1 is referred to as a Web alternative JS file b11). Here, the alternative JS file is used as a general-purpose JS library (referred to as an alternative library) in which a plurality of commonly available JS programs are collected. However, the API used to use this alternative library is an interface equivalent to the API used to use the JS library, but the contents of the JS program provided by each API are different (see FIG. 3), and each JS program is executed. The operation process in the case of being performed is different.

WebサーバB1は、Webブラウザ端末C1からのAPIを用いた要求に応じて、代替ライブラリからJSプログラムを読み出し、ネットワークN1を介してWebブラウザ端末C1へ送信する。ここで、Webブラウザ端末C1は、Webサイトb1に割り当てられているURI(このURIはWebサイトa1のものと異なる)を指定して、Webサイトb1が提供するAPIを利用する。   In response to a request using the API from the web browser terminal C1, the web server B1 reads the JS program from the alternative library and transmits it to the web browser terminal C1 via the network N1. Here, the Web browser terminal C1 designates a URI assigned to the Web site b1 (this URI is different from that of the Web site a1), and uses the API provided by the Web site b1.

Webブラウザ端末C1は、Webブラウザ機能を有する端末である。ここで、Webブラウザ機能とは、HTMLやJavascript等で記載されたWebページを表示する機能である。Webブラウザ端末C1は、WebサーバA1からHTMLファイルをダウンロードし、APIを用いてダウンロードしたCSSのプログラムやJSプログラムを利用して、Webページを表示する。
ここで、Webブラウザ端末C1は、APIを用いるとき、JSライブラリのAPIを用いるか、代替ライブラリのAPIを用いるかを判定し、判定結果に基づいて、WebサーバA1又はB1のいずれかが提供するAPIを用いてJSプログラムを利用する。
The web browser terminal C1 is a terminal having a web browser function. Here, the web browser function is a function for displaying a web page described in HTML, Javascript, or the like. The Web browser terminal C1 downloads an HTML file from the Web server A1, and displays a Web page using a CSS program or JS program downloaded using the API.
Here, when using the API, the Web browser terminal C1 determines whether to use the API of the JS library or the API of the alternative library, and provides either the Web server A1 or B1 based on the determination result. Use JS program using API.

<Webブラウザ端末C1の構成について>
図2は、本実施形態に係るWebブラウザ端末C1のハードウェア構成を示す概略ブロック図である。この図において、Webブラウザ端末C1は、CPU(央演算処理装置)c101、メモリ(主記憶装置)c102、外部記憶部c103、入力部c104、表示部c105、通信部c106、及びデータバスc107を含んで構成される。
<Configuration of Web Browser Terminal C1>
FIG. 2 is a schematic block diagram showing a hardware configuration of the Web browser terminal C1 according to the present embodiment. In this figure, the Web browser terminal C1 includes a CPU (central processing unit) c101, a memory (main storage device) c102, an external storage unit c103, an input unit c104, a display unit c105, a communication unit c106, and a data bus c107. Consists of.

CPU c101は、メモリc102から読み出した情報を実行し、各部を制御する。例えば、CPU c101は、メモリc102からWebブラウザアプリケーションf1を読み出して実行することで、通信部c106から入力されたWebページ(例えば、図1のhtmlファイルa11)の表示データを生成して表示部c105へ出力する。また、入力部c104から入力されたデータを演算処理し、通信部c106からネットワークN1を介して外部の装置(例えば、図1のWebサーバA1)に送信する。   The CPU c101 executes information read from the memory c102 and controls each unit. For example, the CPU c101 reads out and executes the Web browser application f1 from the memory c102, thereby generating display data of the Web page (for example, the html file a11 in FIG. 1) input from the communication unit c106, and the display unit c105. Output to. Further, the data input from the input unit c104 is subjected to arithmetic processing, and transmitted from the communication unit c106 to an external device (for example, the Web server A1 in FIG. 1) via the network N1.

メモリc102は、CPU c101が実行をするソフトウエアプログラムやこのプログラムが使用するデータ等の情報を一時的に記憶する。メモリc102が記憶する情報は、予め記憶する情報、又は、外部記憶部c103、入力部c104、或いは通信部c106から書き込まれる。メモリc102は、例えば、RAM(Random Access Memory)等の半導体記憶装置である。
外部記憶部c103は、ソフトウエアプログラムやこのプログラムが使用するデータファイル等の情報を記憶する。例えば、外部記憶部c103は、代替JSファイル(Webブラウザ端末C1が記憶する代替JSファイルをローカル代替JSファイルf2という)を予め記憶する。外部記憶部c103は、例えば、不揮発性半導体記憶装置や、ハードディスク装置である。
The memory c102 temporarily stores information such as software programs executed by the CPU c101 and data used by the programs. The information stored in the memory c102 is written in advance from information stored in the memory c102, or from the external storage unit c103, the input unit c104, or the communication unit c106. The memory c102 is a semiconductor storage device such as a RAM (Random Access Memory).
The external storage unit c103 stores information such as a software program and a data file used by the program. For example, the external storage unit c103 stores in advance an alternative JS file (the alternative JS file stored in the Web browser terminal C1 is referred to as a local alternative JS file f2). The external storage unit c103 is, for example, a nonvolatile semiconductor storage device or a hard disk device.

入力部c104は、Webブラウザ端末C1を操作するユーザからの入力を受け付ける。入力部c104は、受け付けた入力に基づいて生成した情報をメモリc102に書き込む。入力部c104は、例えば、キーボードやマウス、タッチパネル等である。
表示部c105は、CPU c101の演算処理結果の情報(表示データ)を取得し、その情報をWebブラウザで表示する。表示部c105は、例えば、液晶ディスプレイやCRT(カソード・レイ・チューブ)モニタである。
The input unit c104 receives an input from a user who operates the web browser terminal C1. The input unit c104 writes information generated based on the received input in the memory c102. The input unit c104 is, for example, a keyboard, a mouse, a touch panel, or the like.
The display unit c105 acquires information (display data) of the calculation processing result of the CPU c101, and displays the information using a web browser. The display unit c105 is, for example, a liquid crystal display or a CRT (cathode ray tube) monitor.

通信部c106は、CPU c101の演算処理結果の情報をネットワークN1を介して他の装置に送信する。また、通信部c106は、他の装置からネットワークN1を介して受信した情報をメモリc102又は外部記憶部c103に書き込む。通信部c106は、有線又は無線の送受信装置である。
データバスc107は、CPU c101、メモリc102、外部記憶部c103、入力部c104、表示部c105、及び通信部c106を相互に接続し、情報を交換するための経路である。
The communication unit c106 transmits information on the calculation processing result of the CPU c101 to another device via the network N1. Further, the communication unit c106 writes information received from another device via the network N1 in the memory c102 or the external storage unit c103. The communication unit c106 is a wired or wireless transmission / reception device.
The data bus c107 is a path for mutually connecting the CPU c101, the memory c102, the external storage unit c103, the input unit c104, the display unit c105, and the communication unit c106 to exchange information.

図3は、本実施形態に係るWebブラウザ端末C1の論理的な構成を示す概略ブロック図である。この図において、Webブラウザ端末C1(情報処理装置)は、入力部c104、通信部c106、表示制御部c111(制御部)、表示部c105、スクリプト取得部c112(取得部)、外部記憶部c103、及び代替判定部c12を含んで構成される。ここで、代替判定部c12は、判定情報記憶部c121(取得先抽出部)及びURI判定部c122を含んで構成される。なお、図3において図2と同じ符号を付した構成は、図2と同じ機能を有する。   FIG. 3 is a schematic block diagram showing a logical configuration of the Web browser terminal C1 according to the present embodiment. In this figure, a Web browser terminal C1 (information processing apparatus) includes an input unit c104, a communication unit c106, a display control unit c111 (control unit), a display unit c105, a script acquisition unit c112 (acquisition unit), an external storage unit c103, And an alternative determination unit c12. Here, the substitution determination unit c12 includes a determination information storage unit c121 (acquisition source extraction unit) and a URI determination unit c122. 3, the same reference numerals as those in FIG. 2 have the same functions as those in FIG. 2.

通信部c106は、入力部c104から入力された情報(例えば、URI)に基づいて、他の通信装置と通信を行う。通信部c106は、通信で取得したファイル(htmlファイルa11等)を表示制御部c111に出力する。
また、通信部c106は、スクリプト取得部c112から入力されたリソース取得先URIが示す通信装置へアクセスし、図1のWeb代替JSファイルb11又はJSファイルa13を取得する。通信部c106は、取得したWeb代替JSファイルb11及びJSファイルa13をスクリプト取得部c112に出力する。
The communication unit c106 communicates with other communication devices based on information (for example, URI) input from the input unit c104. The communication unit c106 outputs a file (such as an html file a11) acquired through communication to the display control unit c111.
Further, the communication unit c106 accesses the communication device indicated by the resource acquisition destination URI input from the script acquisition unit c112, and acquires the Web alternative JS file b11 or JS file a13 in FIG. The communication unit c106 outputs the acquired Web alternative JS file b11 and JS file a13 to the script acquisition unit c112.

表示制御部c111は、通信部c106から入力されたファイルから、JSファイルa13等の所在を示すURI(リソースURI;プログラムの識別情報)を抽出(例えば、HTMLファイル中の「script」タグの属性「src」の値を抽出)してURI判定部c122に出力する。
表示制御部c111は、URI判定部c122から入力されたリソース取得先URIをスクリプト取得部c112に出力する。表示制御部c111は、スクリプト取得部c112から入力されたWeb代替JSファイルb11、JSファイルa13、又は、ローカル代替JSファイルf2のJSプログラムを用いて、通信部c106から入力されたファイルのプログラムを実行する。表示制御部c111は、プログラムの実行結果の画像情報を表示部c105に出力する。
The display control unit c111 extracts a URI (resource URI; program identification information) indicating the location of the JS file a13 and the like from the file input from the communication unit c106 (for example, the attribute “attribute” of the “script” tag in the HTML file). src "value is extracted) and output to the URI determination unit c122.
The display control unit c111 outputs the resource acquisition destination URI input from the URI determination unit c122 to the script acquisition unit c112. The display control unit c111 executes the program of the file input from the communication unit c106 using the JS program of the Web alternative JS file b11, the JS file a13, or the local alternative JS file f2 input from the script acquisition unit c112. To do. The display control unit c111 outputs image information of the execution result of the program to the display unit c105.

判定情報記憶部c121は、URI判定情報テーブル(図8)を記憶する。URI判定情報テーブルは、リソースURI、及び、Web代替JSファイルb11、又はローカル代替JSファイルf2の所在を示す代替URIを対応付けたテーブルである。なお、リソースURIに対応付けられた代替URIの代替JSファイルのJSプログラムは、Webブラウザ端末C1各々の情報処理能力(Webブラウザ端末C1の種類や動画の再生能力(Webブラウザの種類))に応じたプログラムである。
URI判定部c122は、判定情報記憶部c121が記憶するURI判定情報テーブルの情報と、表示制御部c111から入力されたリソースURIに基づいて、このリソースURIを置き換える代替URIがあるか否かを判定する。代替URIがあると判定した場合、URI判定部c122は、代替URIをリソース取得先URIとして表示制御部c111に出力する。一方、代替URIがないと判定した場合、URI判定部c122は、入力されたリソースURIをリソース取得先URIとして表示制御部c111に出力する。なお、代替判定部c12(判定情報記憶部c121及びURI判定部c122)が行う処理を代替URI処理という。
The determination information storage unit c121 stores a URI determination information table (FIG. 8). The URI determination information table is a table in which a resource URI and an alternative URI indicating the location of the Web alternative JS file b11 or the local alternative JS file f2 are associated with each other. Note that the JS program of the alternative JS file of the alternative URI associated with the resource URI depends on the information processing capability of each Web browser terminal C1 (the type of Web browser terminal C1 and the playback capability of video (the type of Web browser)). Program.
The URI determination unit c122 determines whether there is an alternative URI that replaces the resource URI based on the information in the URI determination information table stored in the determination information storage unit c121 and the resource URI input from the display control unit c111. To do. When it is determined that there is an alternative URI, the URI determination unit c122 outputs the alternative URI to the display control unit c111 as a resource acquisition destination URI. On the other hand, when it is determined that there is no alternative URI, the URI determination unit c122 outputs the input resource URI to the display control unit c111 as the resource acquisition destination URI. The process performed by the alternative determination unit c12 (the determination information storage unit c121 and the URI determination unit c122) is referred to as an alternative URI process.

スクリプト取得部c112は、URI判定部c122から入力されたリソース取得先URIに基づいて、このURIが示すファイルが外部装置が記憶するファイルであるか、又は自装置の外部記憶部c103が記憶するファイルであるかを判定する。リソース取得先URIが外部装置が記憶するファイルを示すと判定した場合、スクリプト取得部c112は、通信部c106にリソース取得先URIを出力する。一方、リソース取得先URIが外部記憶部c103が記憶するファイルを示すと判定した場合、スクリプト取得部c112は、外部記憶部c103からローカル代替JSファイルf2を読み出す。
スクリプト取得部c112は、通信部c106から入力されたWeb代替JSファイルb11、JSファイルa13、及び、読み出したローカル代替JSファイルf2を、リソースURIのJSファイルに代えて、表示制御部c111に出力する。
Based on the resource acquisition destination URI input from the URI determination unit c122, the script acquisition unit c112 determines whether the file indicated by this URI is a file stored in the external device or a file stored in the external storage unit c103 of the own device It is determined whether it is. When it is determined that the resource acquisition destination URI indicates a file stored in the external device, the script acquisition unit c112 outputs the resource acquisition destination URI to the communication unit c106. On the other hand, when it is determined that the resource acquisition destination URI indicates a file stored in the external storage unit c103, the script acquisition unit c112 reads the local alternative JS file f2 from the external storage unit c103.
The script acquisition unit c112 outputs the Web alternative JS file b11, the JS file a13, and the read local alternative JS file f2 input from the communication unit c106 to the display control unit c111 instead of the JS file of the resource URI. .

表示部c105は、表示制御部c111から入力された画像情報の画像を表示する。ここで表示される画像は、URI判定部c122が代替URIがあると判定した場合には、表示制御部c111がリソースURIのJSファイルのJSプログラムに代えて、代替URIの代替JSファイルのJSプログラムを実行し、その結果、表示部c105が表示する画像である。   The display unit c105 displays the image of the image information input from the display control unit c111. When the URI determination unit c122 determines that there is an alternative URI, the image displayed here is a JS program of an alternative JS file of an alternative URI instead of the JS program of the JS file of the resource URI by the display control unit c111. As a result, the display unit c105 displays the image.

<代替JSファイルについて>
ここで、代替JSファイルについて詳細を説明する。
リソースURIのJSファイルを用いてアニメーション表示などの画像表示を行うと、例えば、画面表示能力が低いWebブラウザ端末等では、画面表示処理が高負荷となり表示に要する時間が長く掛かって操作性が低下する、又は頻繁な画像書換えにより表示が見え難くなるといった、不都合が発生する場合がある。
Webブラウザ端末C1では、リソースURIのJSファイルに代えて、Webブラウザ端末C1毎に代替URIを判定し、その代替URIから取得した代替JSファイルを用いて画像表示を行う。これにより、そのWebブラウザ端末C1では、例えば、画面表示能力に応じたJSプログラムを実行することができる。
<Alternative JS file>
Here, details of the alternative JS file will be described.
When an image display such as an animation display is performed using a JS file of a resource URI, for example, in a Web browser terminal having a low screen display capability, the screen display processing is heavy and it takes a long time to display and the operability is reduced. Inconveniences such as display becoming difficult to see due to frequent image rewriting may occur.
In the Web browser terminal C1, instead of the resource URI JS file, an alternative URI is determined for each Web browser terminal C1, and an image is displayed using the alternative JS file acquired from the alternative URI. Thereby, in the web browser terminal C1, for example, a JS program corresponding to the screen display capability can be executed.

次に、その代替JSファイルの具体例を示す。
図4は、本実施形態に係る代替JSファイルのJSプログラムの一例を示す概略図である。この図においては、説明のため、プログラムに行番号を付している。なお、この図は、リソースURIのJSファイル(元ファイルという)にjQueryのVersion1.3.2を用いている場合に、画面上の視覚効果が高い表示を行うことを強制的に抑止し、画面表示処理が高負荷となることを防止するような修正変更を加えた代替JSファイルの一例である。
Next, a specific example of the alternative JS file is shown.
FIG. 4 is a schematic diagram illustrating an example of a JS program of an alternative JS file according to the present embodiment. In this figure, line numbers are assigned to the programs for explanation. In this figure, when jQuery Version 1.3.2 is used for the resource URI JS file (referred to as the original file), it is forcibly suppressed that display with a high visual effect on the screen is performed. It is an example of an alternative JS file to which a correction change that prevents display processing from becoming a heavy load is added.

図4において、行番号が「3976」〜「3978」行目のプログラムが修正されている。「3976」、「3977」行目の「//」以降のプログラムは、元ファイルに記載されたプログラムであり、「//」という文字を付与することによりこのプログラムを実行しないように記載されている(コメントアウトしている)。また、図4の一例では、元ファイルに「3978」行目のプログラムが追加されている。   In FIG. 4, the programs of the line numbers “3976” to “3978” are corrected. The programs after “//” in the “3976” and “3777” lines are programs described in the original file, and are described so as not to be executed by adding the characters “//”. Yes (comments out). In the example of FIG. 4, the program on the “3978” line is added to the original file.

「3976」、「3977」行目の元ファイルのプログラムでは、変数jQuery.fx.offの値によって画面上の視覚効果が高い表示を行うか否かの切替が行われる。具体的に、視覚効果を実行した場合には、初期画像が表示され最終画像が表示されるまでの間に、時間に沿って複数の中間画像が表示される。
一方、「3978」行目のプログラムでは、変数opt.durationに「0」を代入している。この変数opt.durationはアニメーション表示などの画面上の視覚効果の実行時間を指定する変数である。この変数opt.durationに「0」を代入すると、初期画像が表示された直後に最終画像が表示され、中間画像が表示されない。つまり、画面上の視覚効果が高い表示を行うことを強制的に抑止し、情報処理能力が低いWebブラウザ端末C1で、画面表示処理が高負荷となることを防止する。
このように、例えば、情報処理能力が低いWebブラウザ端末C1は、動画処理のJSプログラムに代えて、動画処理を省略した動作を実現する代替JSプログラムを実行する。つまり、代替JSファイルのJSプログラムは、Webブラウザ端末C1の情報処理能力に応じたプログラムである。
なお、情報処理能力が低いWebブラウザ端末C1は、動画処理のJSプログラムに代えて或いは加えて、動画のコマ数を少なくする代替JSプログラム、又は画像中で移動する画像や文字の移動間隔を小さくする代替JSプログラム等に置き換えてもよい。
In the program of the original file on the “3976” and “3777” lines, the variable jQuery. fx. Whether or not to perform display with a high visual effect on the screen is switched depending on the value of off. Specifically, when the visual effect is executed, a plurality of intermediate images are displayed over time until the initial image is displayed and the final image is displayed.
On the other hand, in the program on the “3978” line, the variable opt. “0” is substituted for duration. This variable opt. Duration is a variable that specifies the execution time of visual effects on the screen such as animation display. This variable opt. When “0” is substituted for duration, the final image is displayed immediately after the initial image is displayed, and the intermediate image is not displayed. In other words, the display with a high visual effect on the screen is forcibly suppressed, and the screen display process is prevented from being subjected to a high load on the Web browser terminal C1 having a low information processing capability.
Thus, for example, the Web browser terminal C1 with low information processing capability executes an alternative JS program that realizes an operation in which the moving image processing is omitted instead of the JS program for moving image processing. That is, the JS program of the alternative JS file is a program according to the information processing capability of the Web browser terminal C1.
Note that the Web browser terminal C1 with low information processing capability replaces or in addition to the JS program for moving image processing, an alternative JS program that reduces the number of frames in the moving image, or decreases the moving interval of images and characters that move in the image. It may be replaced with an alternative JS program or the like.

図5は、本実施形態に係るWebブラウザアプリケーションf1を表わすオブジェクト図である。この図のオブジェクト図は、UML(Unified Modeling Language;統一モデリング言語)を用いて表わした図である。
なお、URI判定オブジェクトは図3のURI判定部c112で実装され、ローダーオブジェクトo121及びスキーム別ローダーオブジェクトはスクリプト取得部c112で実装される。その他のオブジェクトは表示制御部c111で実装される。
FIG. 5 is an object diagram representing the Web browser application f1 according to the present embodiment. The object diagram of this figure is a diagram expressed using UML (Unified Modeling Language).
The URI determination object is implemented by the URI determination unit c112 of FIG. 3, and the loader object o121 and the loader object by scheme are implemented by the script acquisition unit c112. Other objects are implemented by the display control unit c111.

ブラウザオブジェクトo101は、Webブラウザアプリケーションf1のトップレベルとなるオブジェクトである。ブラウザオブジェクトは1枚の表示画面ごとに1個の画面リソースオブジェクトo111を生成して対応付ける。
リソースオブジェクトo11は、Webブラウザで表示する画面を構成するオブジェクトである。構成要素の種類により個々のリソースオブジェクトo11が存在する。具体的に図5では、リソースオブジェクトo11には、画面リソースオブジェクトo111、htmlリソースオブジェクトo112及びJavascriptリソースオブジェクト(JSリソースオブジェクトという)o113等が含まれる。なお、図5において、htmlリソースオブジェクトo112は、リソースビルダーオブジェクトo12へリソースオブジェクト生成命令(リソースURIを含む命令)を送付することにより行う。また、1つの画面に含まれるリソースオブジェクトo11として、画面リソースオブジェクトo111のほかにhtmlリソースオブジェクトo112及びJSリソースオブジェクトo113について説明を行うが、例えば画像データのように、その他にも画面を構成するリソースオブジェクトは存在する(図5では、「○○リソースオブジェクト」として示す)。
The browser object o101 is an object that is the top level of the Web browser application f1. The browser object generates and associates one screen resource object o111 for each display screen.
The resource object o11 is an object that constitutes a screen displayed on the Web browser. There are individual resource objects o11 depending on the type of component. Specifically, in FIG. 5, the resource object o11 includes a screen resource object o111, an html resource object o112, a Javascript resource object (referred to as a JS resource object) o113, and the like. In FIG. 5, the html resource object o112 is performed by sending a resource object generation instruction (an instruction including a resource URI) to the resource builder object o12. In addition to the screen resource object o111, the html resource object o112 and the JS resource object o113 will be described as the resource object o11 included in one screen, but other resources that configure the screen, such as image data, for example. The object exists (indicated as “XX resource object” in FIG. 5).

画面リソースオブジェクトo111は、Webブラウザの表示画面に対応したリソースオブジェクトである。画面リソースオブジェクトo111は自身の子オブジェクトとして自身の画面に含まれる構成要素のリソースオブジェクトを関係付ける。具体的に、図5の例では、画面リソースオブジェクトo111の子オブジェクトとしてhtmlリソースオブジェクトo112が1個、関係付けられている。
このhtmlリソースオブジェクトo112の生成に際しては、画面リソースオブジェクトo111がリソースビルダーオブジェクトo12へリソースオブジェクト生成命令を送り、このリソースオブジェクト生成命令に基づいて生成されたhtmlリソースオブジェクトを画面リソースオブジェクトo111自身の子オブジェクトとして関係付ける。
The screen resource object o111 is a resource object corresponding to the display screen of the Web browser. The screen resource object o111 relates a resource object of a component included in its own screen as its own child object. Specifically, in the example of FIG. 5, one html resource object o112 is associated as a child object of the screen resource object o111.
When generating the html resource object o112, the screen resource object o111 sends a resource object generation command to the resource builder object o12, and the html resource object generated based on the resource object generation command is a child object of the screen resource object o111 itself. As related.

htmlリソースオブジェクトo112は、htmlファイルを元にして生成されたリソースオブジェクトである。また、htmlリソースオブジェクトo112は、htmlファイルの文書構成に基づくDOM(Document Object Model)ツリーでhtmlファイルの内容を管理する。htmlリソースオブジェクトは自身の子オブジェクトとして自身の表示内容に含まれる他のリソース、例えばhtmlファイルに記載されているJSファイルや画像ファイルなどを、自身の子オブジェクトとして関係付ける。具体的に、図5の例では、htmlリソースオブジェクトo112の子オブジェクトとしてJSリソースオブジェクトo113が関係付けられている。
このJSリソースオブジェクトo113の生成に際しては、htmlリソースオブジェクトo112がリソースビルダーオブジェクトo12へリソースオブジェクト生成命令を送り、このリソースオブジェクト生成命令に基づいて生成されたJSリソースオブジェクトo113をhtmlリソースオブジェクトo112自身の子オブジェクトとして関係付ける。
The html resource object o112 is a resource object generated based on the html file. The html resource object o112 manages the contents of the html file in a DOM (Document Object Model) tree based on the document structure of the html file. The html resource object associates other resources included in its display content as its own child object, such as a JS file or an image file described in the html file, as its own child object. Specifically, in the example of FIG. 5, a JS resource object o113 is related as a child object of the html resource object o112.
When generating the JS resource object o113, the html resource object o112 sends a resource object generation instruction to the resource builder object o12, and the JS resource object o113 generated based on the resource object generation instruction is a child of the html resource object o112 itself. Relate as an object.

JSリソースオブジェクトo113は、JSファイルを元にして生成されたリソースオブジェクトである。またJavascriptリソースオブジェクトo113は、JSファイルのプログラムコードに基づく実行コードを管理する。   The JS resource object o113 is a resource object generated based on the JS file. Also, the Javascript resource object o113 manages an execution code based on the program code of the JS file.

リソースビルダーオブジェクトo12は、リソースオブジェクトの生成を行う。具体的には、リソースビルダーオブジェクトo12は、ローダーオブジェクトo121を呼び出す前にURI判定オブジェクトo123を呼び出し、リソースオブジェクト生成命令のリソースURIを送付する。
URI判定オブジェクトo123は、代替URI処理を行って、送付されたリソースURIに対するリソース取得先URIをリソースビルダーオブジェクトo12に返却する。なお、URI判定オブジェクトo123が行う代替URI処理については、後述する。
リソースビルダーオブジェクトo12は、URI判定オブジェクトo123から返却されたリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。リソースビルダーオブジェクトo12は、ローダーオブジェクトo121がリソース取得メッセージに基づいて取得したリソースデータを含むレンダリング命令を生成し、レンダラーオブジェクトo122に送付する。リソースビルダーオブジェクトo12は、レンダラーオブジェクトo122がレンダリング命令に基づいて生成したリソースオブジェクトを、リソースオブジェクト生成命令の返値として返却する。
The resource builder object o12 generates a resource object. Specifically, the resource builder object o12 calls the URI determination object o123 before calling the loader object o121, and sends the resource URI of the resource object generation instruction.
The URI determination object o123 performs an alternative URI process and returns the resource acquisition destination URI for the sent resource URI to the resource builder object o12. The alternative URI process performed by the URI determination object o123 will be described later.
The resource builder object o12 sends a resource acquisition message including the resource acquisition destination URI returned from the URI determination object o123 to the loader object o121. The resource builder object o12 generates a rendering command including the resource data acquired by the loader object o121 based on the resource acquisition message, and sends it to the renderer object o122. The resource builder object o12 returns the resource object generated by the renderer object o122 based on the rendering instruction as a return value of the resource object generation instruction.

ローダーオブジェクトo121は、リソースビルダーオブジェクトo12からリソース取得メッセージを取得する。ここで、ローダーオブジェクトo121は、リソース取得メッセージのリソース取得先URIを取得する。ローダーオブジェクトは、リソース取得先URIが示すスキームを元に、スキーム別ローダを呼出す。このスキームとは、URIの一部で示されたリソースに到達する(典型的にはリソースを取得する)ための手段(例えば、http、https、ftpのプロトコルを用いた手段)を表す。   The loader object o121 acquires a resource acquisition message from the resource builder object o12. Here, the loader object o121 acquires the resource acquisition destination URI of the resource acquisition message. The loader object calls the loader by scheme based on the scheme indicated by the resource acquisition destination URI. This scheme represents a means (e.g., means using http, https, ftp protocols) to reach the resource indicated by a part of the URI (typically to acquire the resource).

ここで、スキーム別ローダとして、httpローダーオブジェクトo1211及びfileローダーオブジェクトo1212について説明を行う。なお、その他のスキームについても個々のスキーム別ローダブジェクト(図5では、「●●ローダーオブジェクト」として示す)がある。
httpローダーオブジェクトo1211はスキームがhttpの場合に対応するスキーム別ローダブジェクトである。httpローダーオブジェクトo1211は、httpプロトコルを用いて、取得先URIで指定されたリソースデータを取得する。fileローダーオブジェクトo1212は、スキームがfileの場合に対応するスキーム別ローダブジェクトである。例えば、fileローダーオブジェクトo1212は、外部記憶部c103からURIで指定された場所に格納されているリソースデータを取得する。
ローダーオブジェクトo121は、スキーム別ローダが取得したリソースデータをリソースビルダーオブジェクトo12へ返却する。返却するリソースデータには、データ種別を表すmime−type値とデータ実体を表すdata値を含まれる。
Here, the http loader object o1211 and the file loader object o1212 will be described as the loaders by scheme. Other schemes also have individual scheme-specific loader objects (shown as “●● loader objects” in FIG. 5).
The http loader object o1211 is a load object for each scheme corresponding to the case where the scheme is http. The http loader object o1211 acquires the resource data specified by the acquisition destination URI using the http protocol. The file loader object o1212 is a loader object by scheme corresponding to the case where the scheme is file. For example, the file loader object o1212 acquires the resource data stored in the location specified by the URI from the external storage unit c103.
The loader object o121 returns the resource data obtained by the scheme-specific loader to the resource builder object o12. The resource data to be returned includes a mime-type value that represents the data type and a data value that represents the data entity.

レンダラーオブジェクトo122は、ローダーオブジェクトo121が取得したレンダリング命令のリソースデータを用いて画面を構成するリソースオブジェクトを生成する(レンダリング)。レンダラーオブジェクトo122は、どの種類のリソースオブジェクトを生成するかを、リソースデータに含まれるmime−type値を用いて決定し、mime−type別レンダラーを呼出す。   The renderer object o122 generates a resource object that configures the screen by using the resource data of the rendering command acquired by the loader object o121 (rendering). The renderer object o122 determines what kind of resource object to generate using the mime-type value included in the resource data, and calls the renderer by mime-type.

ここで、mime−type別レンダラーとして、htmlレンダラーオブジェクトo1221及びJavascriptレンダラーオブジェクト(JSレンダラーオブジェクトという)o1222について説明を行う。なお、その他のmime−typeについても個々のmime−type別レンダラーオブジェクト(図5では、「○○レンダラーオブジェクト」として示す)がある。
htmlレンダラーオブジェクトo1221は、mime−type値がhtmlデータであることを示す「text/html」の場合に呼び出され、htmlリソースオブジェクトを生成する。具体的には、htmlレンダラーオブジェクトo1221は、htmlファイルの文書構成を解析しhtmlリソースオブジェクトo112内にDOMツリーを生成する。
Here, an html renderer object o1221 and a Javascript renderer object (referred to as a JS renderer object) o1222 will be described as renderers by mime-type. Other mime-types also have individual mime-type-specific renderer objects (shown as “OO renderer objects” in FIG. 5).
The html renderer object o1221 is called in the case of “text / html” indicating that the mime-type value is html data, and generates an html resource object. Specifically, the html renderer object o1221 analyzes the document structure of the html file and generates a DOM tree in the html resource object o112.

JSレンダラーオブジェクトo1222は、mime−type値がJavascriptデータであることを示す「text/Javascript」の場合に呼び出され、JSリソースオブジェクトo113を生成する。具体的には、JSレンダラーオブジェクトo1222は、JSファイルのJSプログラムのプログラムコードを解析して実行コードを生成し、生成した実行コードが書き込まれたJSリソースオブジェクトo113を生成する。   The JS renderer object o1222 is called in the case of “text / Javascript” indicating that the mime-type value is Javascript data, and generates a JS resource object o113. Specifically, the JS renderer object o1222 generates an execution code by analyzing the program code of the JS program in the JS file, and generates a JS resource object o113 in which the generated execution code is written.

以下、本実施形態に係るWebブラウザアプリケーションf1の動作について説明をする。まず、図6を用いてURI判定オブジェクトo123がない場合のWebブラウザアプリケーションの動作について説明をし、次に、図7を用いてURI判定オブジェクトo123がある場合(本実施形態)のWebブラウザアプリケーションf1の動作について説明をする。本実施形態に係るWebブラウザ端末は、後者(URI判定オブジェクトo123がある場合)のWebブラウザアプリケーションf1を記憶して実行する。   Hereinafter, the operation of the Web browser application f1 according to the present embodiment will be described. First, the operation of the Web browser application when there is no URI determination object o123 will be described using FIG. 6, and then the Web browser application f1 when there is the URI determination object o123 (this embodiment) using FIG. The operation of will be described. The Web browser terminal according to the present embodiment stores and executes the latter (when there is a URI determination object o123) Web browser application f1.

図6は、Webブラウザアプリケーションの実行動作の一例を示すシーケンス図である。この図は、htmlリソースオブジェクトo112が生成された後、htmlファイルに記載されているJSファイルの処理(JSファイル処理という)を行う際のUMLにおけるシーケンス図である。
なお、JSファイル処理は、以下のように行われる。htmlファイルに基づいて生成されたhtmlリソースオブジェクトo112は、リソースオブジェクト生成命令をリソースビルダーオブジェクトo12に対して送付する。htmlファイル内に、例えば、「<script type=”text/javascript” src=”http://www.XXX・・・.com/example.js”></script>」という記述があった場合に、このリソースオブジェクト生成命令には、リソース取得先URIとして、「script」タグの属性「src」の値であるURI値(この例では”http://www.XXX・・・.com/example.js”)が含まれる。リソースビルダーオブジェクトo12は、リソース取得先URIからJSファイルを取得し、JSリソースオブジェクトo113を生成する。htmlリソースオブジェクトo112は、リソースビルダーオブジェクトo12が生成したJSリソースオブジェクトo113を自身の子オブジェクトとして関係付ける。
FIG. 6 is a sequence diagram illustrating an example of the execution operation of the Web browser application. This figure is a sequence diagram in UML when the JS file processing (referred to as JS file processing) described in the html file is performed after the html resource object o112 is generated.
Note that the JS file processing is performed as follows. The html resource object o112 generated based on the html file sends a resource object generation command to the resource builder object o12. In the html file, for example, “<script type =” text / javascript ”src =“ http: // www. XXX ... com / example.com. If there is a description of “js”></script> ”, this resource object generation command includes a URI value (in this example,“ src ”) as the resource acquisition destination URI, which is the value of the attribute“ src ”of the“ script ”tag. http://www.XXX... com / example.js ”). The resource builder object o12 acquires a JS file from the resource acquisition destination URI and generates a JS resource object o113. The html resource object o112 relates the JS resource object o113 generated by the resource builder object o12 as its child object.

以下、具体的なJSファイル処理の詳細について説明をする。
(ステップS101)htmlリソースオブジェクトo112は、リソースビルダーオブジェクトo12に対し、新たに取得するJavascriptリソースの所在を表すURI(リソースURI)を含むリソースオブジェクト生成命令を、リソースビルダーオブジェクトo12に送付する。その後、ステップS102へ進む。
(ステップS102)リソースビルダーオブジェクトo12は、ステップS101で送付されたリソースオブジェクト生成命令を取得する。リソースビルダーオブジェクトo12は、取得したリソースオブジェクト生成命令のリソースURIをリソース取得先URIとして、このリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。その後、ステップS103へ進む。
Details of specific JS file processing will be described below.
(Step S101) The html resource object o112 sends, to the resource builder object o12, a resource object generation instruction including a URI (resource URI) indicating the location of the newly acquired JavaScript resource to the resource builder object o12. Then, it progresses to step S102.
(Step S102) The resource builder object o12 acquires the resource object generation command sent in step S101. The resource builder object o12 sends the resource acquisition message including the resource acquisition destination URI to the loader object o121 using the resource URI of the acquired resource object generation instruction as the resource acquisition destination URI. Thereafter, the process proceeds to step S103.

(ステップS103)ローダーオブジェクトo121は、ステップS102で送付されたリソース取得メッセージを取得し、取得したリソース取得メッセージのリソース取得先URIに基づいてスキームを判定する。例えば、ローダーオブジェクトo121は、上述の例のリソース取得先URI(”http://www.foobaa.com/example.js”)の場合、先頭部分の「http」という文字列より、スキームがhttpと判定する(以下、httpと判定した場合について説明をする)。その後、ステップS104へ進む。
(ステップS104)ローダーオブジェクトo121は、ステップS103で判定したスキームのスキーム別ローダーオブジェクト(httpローダーオブジェクトo1211)に対して、リソース取得先URIを含むデータ取得メッセージを送付する。httpローダーオブジェクトo1211は、送付されたデータ取得メッセージを取得し、取得したデータ取得メッセージのリソース取得先URIからhttpプロトコルを用いてリソースデータを取得する。その後、ステップS105へ進む。
(Step S103) The loader object o121 acquires the resource acquisition message sent in step S102, and determines a scheme based on the resource acquisition destination URI of the acquired resource acquisition message. For example, in the case of the resource acquisition destination URI (“http://www.fooba.com/example.js”) in the above example, the loader object o121 has a scheme of “http” from the character string “http” at the top. Judgment (Hereinafter, the case where it is judged as http will be described). Thereafter, the process proceeds to step S104.
(Step S104) The loader object o121 sends a data acquisition message including a resource acquisition destination URI to the scheme-specific loader object (http loader object o1211) determined in step S103. The http loader object o1211 acquires the sent data acquisition message, and acquires resource data from the resource acquisition destination URI of the acquired data acquisition message using the http protocol. Thereafter, the process proceeds to step S105.

(ステップS105)httpローダーオブジェクトo1211は、データ取得メッセージの返値として、mime−type値(以下、この値が「text/javascript」の場合について説明をする)とdata値からなるリソースデータをローダーオブジェクトo121に返却する。その後、ステップS106へ進む。
(ステップS106)ローダーオブジェクトo121は、ステップS105で返却されたリソースデータを、リソースビルダーオブジェクトo12に返却する。その後、ステップS107へ進む。
(Step S105) The http loader object o1211 uses, as a return value of the data acquisition message, resource data including a mime-type value (hereinafter, this value is “text / javascript”) and a data value. Return to o121. Thereafter, the process proceeds to step S106.
(Step S106) The loader object o121 returns the resource data returned in step S105 to the resource builder object o12. Thereafter, the process proceeds to step S107.

(ステップS107)リソースビルダーオブジェクトo12は、ステップS106で返却されたリソースデータを含むレンダリング命令を生成し、レンダラーオブジェクトo122に送付する。その後、ステップS108へ進む。
(ステップS108)レンダラーオブジェクトo122は、ステップS107で送付されたレンダリング命令を取得し、取得したレンダリング命令のリソースデータからmime−type値及びdata値を抽出する。その後、ステップS109へ進む。
(ステップS109)レンダラーオブジェクトo122は、ステップS108で抽出したmime−type値のレンダラーオブジェクト(JSレンダラーオブジェクトo1222)に対して、ステップS108で抽出したdata値を送付する。
(Step S107) The resource builder object o12 generates a rendering command including the resource data returned in step S106, and sends it to the renderer object o122. Thereafter, the process proceeds to step S108.
(Step S108) The renderer object o122 acquires the rendering command sent in step S107, and extracts the mime-type value and the data value from the resource data of the acquired rendering command. Thereafter, the process proceeds to step S109.
(Step S109) The renderer object o122 sends the data value extracted in step S108 to the renderer object (JS renderer object o1222) having the mime-type value extracted in step S108.

(ステップS110)JSレンダラーオブジェクトo1222は、新規のJSリソースオブジェクトo113を生成する。その後、ステップS111へ進む。
(ステップS111)JSレンダラーオブジェクトo1222は、ステップS109で送付されたdata値を取得し、取得したdata値に対して命令文解析処理を行う。この命令文解析処理は、data値をJSプログラムのプログラムコードとみなしてその言語の文法に沿って内容を解析する処理である。その後、ステップS112へ進む。
(ステップS112)JSレンダラーオブジェクトo1222は、ステップS111での命令文解析処理の結果、JSプログラムの実行コードを生成し、生成した実行コードを生成したJSリソースオブジェクトo113に書き込む。その後、ステップS113へ進む。このステップS110〜S112の処理によって、JSリソースオブジェクトo113が生成される。その後、ステップS113へ進む。
(Step S110) The JS renderer object o1222 generates a new JS resource object o113. Thereafter, the process proceeds to step S111.
(Step S111) The JS renderer object o1222 acquires the data value sent in step S109, and performs a statement analysis process on the acquired data value. This imperative sentence analysis process is a process of analyzing the contents according to the grammar of the language by regarding the data value as the program code of the JS program. Thereafter, the process proceeds to step S112.
(Step S112) The JS renderer object o1222 generates an execution code of the JS program as a result of the statement analysis processing in step S111, and writes the generated execution code in the generated JS resource object o113. Thereafter, the process proceeds to step S113. A JS resource object o113 is generated by the processing of steps S110 to S112. Thereafter, the process proceeds to step S113.

(ステップS113)JSレンダラーオブジェクトo1222は、生成したJSリソースオブジェクトo113を、レンダラーオブジェクトo122に返却する。その後、ステップS114へ進む。
(ステップS114)レンダラーオブジェクトo122は、ステップS113で返却されたJSリソースオブジェクトo113を、リソースビルダーオブジェクトo12に返却する。その後、ステップS115へ進む。
(ステップS115)リソースビルダーオブジェクトo12は、ステップS114で返却されたJSリソースオブジェクトo113を、htmlリソースオブジェクトo112に返却する。その後、ステップS116へ進む。
(ステップS116)htmlリソースオブジェクトo112は、ステップS115で返却されたJSリソースオブジェクトo113を、自身の子オブジェクトに追加して関係付ける。
(Step S113) The JS renderer object o1222 returns the generated JS resource object o113 to the renderer object o122. Thereafter, the process proceeds to step S114.
(Step S114) The renderer object o122 returns the JS resource object o113 returned in step S113 to the resource builder object o12. Thereafter, the process proceeds to step S115.
(Step S115) The resource builder object o12 returns the JS resource object o113 returned in step S114 to the html resource object o112. Thereafter, the process proceeds to step S116.
(Step S116) The html resource object o112 adds and associates the JS resource object o113 returned in step S115 with its own child object.

図7は、本実施形態に係るWebブラウザアプリケーションf1の実行動作の一例を示すシーケンス図である。この図は、本実施形態に係るJSファイル処理を行う際のUMLにおけるシーケンス図である。図7と図6を比較すると、図7ではステップS21及びS22の処理が追加されている点、及び、ステップS102の処理がステップS202の処理に変更されている点が異なる。しかし、他の処理(ステップS101、S103〜S116の処理)は図6の処理と同じである。図6と同じ処理の説明は省略する。   FIG. 7 is a sequence diagram illustrating an example of an execution operation of the Web browser application f1 according to the present embodiment. This figure is a sequence diagram in UML when performing JS file processing according to the present embodiment. FIG. 7 is compared with FIG. 6 in that the processes of steps S21 and S22 are added in FIG. 7 and the process of step S102 is changed to the process of step S202. However, other processes (the processes in steps S101 and S103 to S116) are the same as the processes in FIG. Description of the same processing as in FIG. 6 is omitted.

(ステップS21)リソースビルダーオブジェクトo12は、ステップS101で送付されたリソースオブジェクト生成命令を取得し、取得したリソースオブジェクト生成命令のリソースURIを含む代替URI存在チェックメッセージをURI判定オブジェクトo123に送付する。
URI判定オブジェクトo123は、ステップS21で送付された代替URI存在チェックメッセージを取得し、取得した代替URI存在チェックメッセージのリソースURIに基づいて代替URIが存在するか否かを判定する。また、代替URIが存在すると判定した場合、URI判定オブジェクトo123は、その代替URIを読み出す。その後、ステップS212へ進む。
(Step S21) The resource builder object o12 acquires the resource object generation instruction sent in step S101, and sends an alternative URI presence check message including the resource URI of the acquired resource object generation instruction to the URI determination object o123.
The URI determination object o123 acquires the alternative URI presence check message sent in step S21, and determines whether there is an alternative URI based on the resource URI of the acquired alternative URI presence check message. If it is determined that an alternative URI exists, the URI determination object o123 reads the alternative URI. Thereafter, the process proceeds to step S212.

(ステップS22)ステップS21で代替URIが存在すると判定した場合、URI判定オブジェクトo123は、ステップS21で読み出した代替URIをリソース取得先URIとして、リソースビルダーオブジェクトo12に返却する。一方、ステップS21で代替URI存在しないと判定した場合、ステップS21で取得したリソースオブジェクト生成命令のリソースURIを、そのままリソース取得先URIとして、リソースビルダーオブジェクトo12に返却する。その後、ステップS202へ進む。
(ステップS202)リソースビルダーオブジェクトo12は、ステップS22で返却されたURIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。その後、ステップS103へ進む。
なお、URI判定オブジェクトo123が行うステップS21、S22の処理が代替URI処理である。
(Step S22) When it is determined in step S21 that the alternative URI exists, the URI determination object o123 returns the alternative URI read in step S21 to the resource builder object o12 as the resource acquisition destination URI. On the other hand, if it is determined in step S21 that no alternative URI exists, the resource URI of the resource object generation instruction acquired in step S21 is returned to the resource builder object o12 as it is as the resource acquisition destination URI. Thereafter, the process proceeds to step S202.
(Step S202) The resource builder object o12 sends a resource acquisition message including the URI returned in step S22 to the loader object o121. Thereafter, the process proceeds to step S103.
Note that the processing of steps S21 and S22 performed by the URI determination object o123 is alternative URI processing.

以下、代替判定部c12が行う代替URI処理の詳細について説明をする。
図8は、本実施形態に係るURI判定情報テーブルの一例を示す概略図である。図示するようにURI判定情報テーブルは、リソースURI及び代替URIの各項目の列を有している。URI判定情報テーブルは、行毎にURI判定情報が格納される行と列からなる2次元の表形式のデータである。
Hereinafter, details of the alternative URI process performed by the alternative determination unit c12 will be described.
FIG. 8 is a schematic diagram illustrating an example of a URI determination information table according to the present embodiment. As shown in the figure, the URI determination information table has columns of items of resource URI and alternative URI. The URI determination information table is two-dimensional tabular data composed of rows and columns in which URI determination information is stored for each row.

例えば、図8の1行目のURI判定情報は、符号1001を付したリソースURI「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.min.js」(URI1001)に対する代替URIとして、符号1101を付した「file://script/jquery−1.3.2.min.js」(URI1101)が対応付けられていることを示す。また、例えば、図8の4行目のURI判定情報は、符号1004を付したリソースURI「http://ZZZ・・・.org/assets/2008/9/29/prototype−1.6.0.3.js」(URI1004)に対する代替URIとして、符号1104を付した「http://XXX・・・.co.jp/files/prototype−1.6.0.3.js」(URI1104)が対応付けられていることを示す。
なお、URI1104のように「http://」という文字列で始まるファイルは、例えば図1のWeb代替JSファイルb11であり、自装置以外の装置からhttpプロトコルを用いて取得するファイルである。一方、URI1101のように「file://」という文字列で始まるファイルは、例えば図2のローカル代替JSファイルf2であり、自装置内の記憶部から取得するファイルである。ローダーオブジェクトo121は、このようにURIの先頭部分の文字列でスキームを判定し、Web代替JSファイルb11、又はローカル代替JSファイルf2を取得する。
For example, the URI determination information in the first line of FIG. 8 includes the resource URI “http: // YYY... /Com/ajax/libs/jquery/1.3.2/jquery.min. "File: //script/jquery-1.3.2.min.js" (URI1101) with reference numeral 1101 is associated as an alternative URI to "URI1001". Further, for example, the URI determination information on the fourth line in FIG. 8 includes the resource URI “http: // ZZZ... /Org/assets/2008/9/29/prototype—1.6. .3.js ”(URI1004),“ http: // XXX.. ./Jp/files/prototype−1.6.0.3.js ”(URI1104) with reference numeral 1104 is used. Indicates that it is associated.
Note that a file that starts with the character string “http: //”, such as the URI 1104, is, for example, the Web alternative JS file b11 in FIG. On the other hand, a file such as URI 1101 that starts with the character string “file: //” is, for example, the local alternative JS file f2 in FIG. 2, and is a file acquired from the storage unit in the own apparatus. In this way, the loader object o121 determines the scheme based on the character string at the beginning of the URI, and acquires the Web alternative JS file b11 or the local alternative JS file f2.

図9は、本実施形態に係る代替URI処理の一例を示すフローチャートである。
(ステップS211)図3のURI判定部c122(URI判定オブジェクトo123)は、取得した代替URI存在チェックメッセージのリソースURI(チェック対象URI)を文字列として文字列変数INに代入する。その後、ステップS212へ進む。
(ステップS212)URI判定部c122は、整数変数Nに「1」を代入する。また、なお、この変数Nは配列T及び配列Rの添え字として用いられる。また、URI判定部c122は、判定情報記憶部c121が記憶するURI判定情報テーブル(図8)でのn行目のリソースURIを配列Tのn番目の要素に代入する。また、URI判定部c122は、判定情報記憶部c121が記憶するURI判定情報テーブルでのn行目の代替URIを配列Rのn番目の要素に代入する。その後、ステップS213へ進む。
FIG. 9 is a flowchart showing an example of an alternative URI process according to the present embodiment.
(Step S211) The URI determination unit c122 (URI determination object o123) in FIG. 3 substitutes the resource URI (check target URI) of the obtained alternative URI presence check message as a character string into the character string variable IN. Thereafter, the process proceeds to step S212.
(Step S212) The URI determination unit c122 substitutes “1” for the integer variable N. The variable N is used as a subscript for the array T and the array R. Moreover, the URI determination unit c122 substitutes the resource URI of the nth row in the URI determination information table (FIG. 8) stored in the determination information storage unit c121 into the nth element of the array T. Moreover, the URI determination unit c122 substitutes the alternative URI of the nth row in the URI determination information table stored in the determination information storage unit c121 into the nth element of the array R. Thereafter, the process proceeds to step S213.

(ステップS213)URI判定部c122は、配列TのN番目の内容の文字列と変数INの文字列を比較する。この比較は、配列TのN番目の要素である文字列と変数INの文字列とが完全一致しているか否かを比較する。その後、ステップS214へ進む。
(ステップS214)URI判定部c122は、ステップS213の比較の結果、文字列が完全に一致したか否かを判定する。判定の結果、文字列が完全に一致したと判定した場合、ステップS218へ進む。一方、文字列が完全に一致しないと判定した場合、ステップS215へ進む。
(ステップS215)URI判定部c122は、変数Nの値を1増やす。その後、ステップS216へ進む。
(Step S213) The URI determination unit c122 compares the character string of the Nth content in the array T with the character string of the variable IN. This comparison compares whether or not the character string that is the Nth element of the array T and the character string of the variable IN completely match. Thereafter, the process proceeds to step S214.
(Step S214) The URI determination unit c122 determines whether or not the character strings completely match as a result of the comparison in step S213. As a result of the determination, if it is determined that the character strings completely match, the process proceeds to step S218. On the other hand, if it is determined that the character strings do not match completely, the process proceeds to step S215.
(Step S215) The URI determination unit c122 increases the value of the variable N by one. Thereafter, the process proceeds to step S216.

(ステップS216)URI判定部c122は、変数Nの値が配列Tの要素数を超えたか否かを判定する。判定の結果、変数Nの値が配列Tの要素数を超えたと判定した場合(はい)は、配列Tの全ての要素について比較が完了しているので、ステップS217へ進む。一方、変数Nの値が配列Tの要素数を超えていないと判定した場合(いいえ)は、配列Tに比較する要素がまだ残っているので、ステップS213へ戻る。
(ステップS217)URI判定部c122は、配列INの内容、つまり、ステップS211で取得したリソースURIをそのまま、リソース取得先URI(リソースビルダーオブジェクトo12への返値)に設定する。その後、動作を終了する。
(ステップS218)URI判定部c122は、配列RのN番目の内容を、つまり、配列RのN番目の要素である代替URIの文字列(図8でのN行目の代替URI)を、スクリプト取得部c112の出力値(リソースビルダーオブジェクトo12への返値)に設定する。つまり、この場合は、配列TのN番目の要素との比較結果が一致した場合であり、配列TのN番目の要素に対応する配列RのN番目の内容(代替URI)を、リソース取得先URIに設定する。その後、動作を終了する。
なお、URI判定部c122は、ステップS217又はS218で設定したリソース取得先URIを表示制御部c111に出力する。
(Step S216) The URI determination unit c122 determines whether or not the value of the variable N exceeds the number of elements of the array T. As a result of the determination, if it is determined that the value of the variable N has exceeded the number of elements of the array T (Yes), the comparison has been completed for all elements of the array T, and the process proceeds to step S217. On the other hand, when it is determined that the value of the variable N does not exceed the number of elements of the array T (No), since there are still elements to be compared with the array T, the process returns to step S213.
(Step S217) The URI determination unit c122 sets the contents of the array IN, that is, the resource URI acquired in step S211 as it is as the resource acquisition destination URI (return value to the resource builder object o12). Thereafter, the operation is terminated.
(Step S218) The URI determination unit c122 uses the N-th content of the array R, that is, the character string of the alternative URI that is the N-th element of the array R (the alternative URI of the Nth line in FIG. 8) as a script. Set to the output value of the acquisition unit c112 (return value to the resource builder object o12). That is, in this case, the comparison result with the Nth element of the array T matches, and the Nth content (alternative URI) of the array R corresponding to the Nth element of the array T is obtained as the resource acquisition destination. Set to URI. Thereafter, the operation is terminated.
The URI determination unit c122 outputs the resource acquisition destination URI set in step S217 or S218 to the display control unit c111.

このように、本実施形態によれば、Webブラウザ端末C1は、リソースURIに基づいて、JSファイルを他の代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。これにより、情報処理装置に応じた動作をするアプリケーションを提供することができる。より具体的には、Webアプリケーション提供者側の事情に影響を受けることなく、Webブラウザ端末C1の製造者(又はWebブラウザアプリケーションf1の作成者)のみの対応によって、Webブラウザ端末C1での提供を想定していないWebアプリケーションでも、Webブラウザ端末C1で快適に利用させることができる。   Thus, according to this embodiment, the Web browser terminal C1 replaces the JS file with another alternative JS file based on the resource URI, and executes the JS program of the replaced alternative JS file. Thereby, an application that operates in accordance with the information processing apparatus can be provided. More specifically, the web browser terminal C1 can be provided by only the manufacturer of the web browser terminal C1 (or the creator of the web browser application f1) without being affected by the circumstances of the web application provider. Even a web application that is not assumed can be comfortably used by the web browser terminal C1.

また、本実施形態によれば、Webブラウザ端末C1は、代替JSファイルのJSプログラムは、Webブラウザ端末C11、C12、・・・の情報処理能力(Webブラウザ端末C1の種類や動画の再生能力(Webブラウザの種類))に応じたプログラムであるので、Webブラウザ端末C1の情報処理能力に応じたWebアプリケーションを提供することができ、Webアプリケーションを快適に利用させることができる。   Further, according to the present embodiment, the Web browser terminal C1 uses the JS program of the alternative JS file as the information processing capability of the Web browser terminals C11, C12,. Since the program corresponds to the type of Web browser)), it is possible to provide a Web application corresponding to the information processing capability of the Web browser terminal C1, and to use the Web application comfortably.

また、従来技術では、Webサーバは、個々の情報処理装置の種類を識別し、情報処理装置の種類毎に異なる処理スクリプトを供給する必要があるので、情報処理装置の種類や台数が増える程、Webサーバの管理コストが増加するという欠点があった。
本実施形態によれば、個々のWebブラウザ端末C1に合わせた代替JSファイルを個々のWebブラウザ端末C1が記憶する場合、管理用サーバでの管理コストを削減することができる。
また、従来技術では、各情報処理装置は処理スクリプトを必ずサーバからダウンロードして取得する必要があるので、実行時にはファイルをダウンロードする時間を要するという欠点があった。なお、仮にファイルキャッシュの仕組みを備えていたとしても、その効果は2回目の実行時以降にのみ発生し、初回の実行時にはダウンロードに要する時間の発生は避けられない。
本実施形態によれば、個々のWebブラウザ端末C1に合わせた代替JSファイルを個々のWebブラウザ端末C1が記憶する場合、実行時にサーバから代替JSファイルをダウンロードしないため、初回の実行時であってもダウンロードに要する時間が発生しない。
In the prior art, the Web server needs to identify the type of each information processing apparatus and supply a different processing script for each type of information processing apparatus. Therefore, as the number and type of information processing apparatuses increase, There was a drawback that the management cost of the Web server increased.
According to the present embodiment, when each Web browser terminal C1 stores an alternative JS file tailored to each Web browser terminal C1, the management cost in the management server can be reduced.
In addition, in the conventional technology, each information processing apparatus must download and acquire a processing script from a server, and thus has a drawback that it takes time to download a file at the time of execution. Even if a file cache mechanism is provided, the effect occurs only after the second execution, and the time required for downloading is unavoidable at the first execution.
According to the present embodiment, when each Web browser terminal C1 stores an alternative JS file that matches the individual Web browser terminal C1, the alternative JS file is not downloaded from the server at the time of execution. There is no time to download.

以下、本実施形態の変形例について説明をする。
本実施形態では、Webブラウザ端末C1がリソースURIの全文字列に基づいて代替URI処理を行う場合について説明をした。しかし、本発明はこれに限らず、Webブラウザ端末C3はリソースURIの一部の文字列に基づいて代替URI処理を行ってもよい。
Hereinafter, modifications of the present embodiment will be described.
In the present embodiment, the case has been described in which the Web browser terminal C1 performs the alternative URI processing based on all the character strings of the resource URI. However, the present invention is not limited to this, and the Web browser terminal C3 may perform alternative URI processing based on a part of the character string of the resource URI.

<変形例1>
変形例1では、URI判定部c122は、リソースURIのファイル名に基づいて、代替URIが存在するか否かを判定する。
<Modification 1>
In the first modification, the URI determination unit c122 determines whether there is an alternative URI based on the file name of the resource URI.

図10は、本実施形態の変形例1に係るURI判定情報テーブルの一例を示す概略図である。図示するようにURI判定情報テーブルは、リソースURIのファイル名及び代替URIの各項目の列を有している。URI判定情報テーブルは、行毎にURI判定情報が格納される行と列からなる2次元の表形式のデータである。
例えば、図10の2行目のURI判定情報は、符号1202を付したファイル名「jquery.js」(ファイル名1202)に対する代替URIとして、符号1102を付した「file://script/jquery−1.3.2.min.js」(URI1102)が対応付けられていることを示す。
FIG. 10 is a schematic diagram illustrating an example of a URI determination information table according to the first modification of the present embodiment. As shown in the figure, the URI determination information table has a column of each item of a resource URI file name and an alternative URI. The URI determination information table is two-dimensional tabular data composed of rows and columns in which URI determination information is stored for each row.
For example, the URI determination information on the second line in FIG. 10 includes “file: // script / jquery−” with a reference numeral 1102 as an alternative URI for the file name “jquery.js” with a reference numeral 1202 (file name 1202). “1.3.2.min.js” (URI 1102) is associated.

具体的に、Webブラウザ端末C1では、以下の処理を行う。
URI判定部c122(URI判定オブジェクト)は、リソースURIの文字列において、文字列の後ろから順に「/」という文字を検索する。URI判定部c122は、検索した「/」の直後の文字列から「&」という文字、又は「&」という文字がない場合には文字列まで、文字列を抽出する。なお、「&」という文字までに限るのは、URIでは「&」の後に変数等のファイル名とは関係ないパラメータが付与されるので、「&」の後の文字列は抽出しない。
例えば、リソースURIが「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.min.js」である場合には、URI判定部c122は、「jquery.min.js」をファイル名として抽出する。
Specifically, the Web browser terminal C1 performs the following processing.
The URI determination unit c122 (URI determination object) searches the character string of the resource URI for characters “/” in order from the end of the character string. The URI determination unit c122 extracts the character string from the character string immediately after the searched “/” to the character string when there is no character “&” or “&”. Note that the character string “&” is limited to the character “&” because a parameter unrelated to the file name such as a variable is added after “&” in the URI.
For example, when the resource URI is “http: // YYY... Com / ajax / libs / jquery / 1.3.2 / jquery.min.js”, the URI determination unit c122 sets “jquery. min.js ”as a file name.

以下、図9を用いて代替URI処理について説明をする。
変形例1では、URI判定部c122は、配列TのリソースURIに変えてファイル名を代入する。また、ステップS213の比較において、URI判定部c122は、変数INの文字列に変えて、変数INの文字列から上述のように抽出したファイル名を用いて比較を行う。
例えば、変数INが「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.js」である場合、ステップS213では、URI判定部c122は、ファイル名「jquery.js」を抽出して比較する。一方、配列Tの2番目(n=2)の要素には「jquery.js」が代入されている(図10参照)ので、2回目(N=2)のステップS214で、抽出したファイル名「jquery.js」と一致した(完全一致)と判定する。この場合、URI判定部c122は、ステップS218で、配列RのN番目(N=2)の内容である「file://script/jquery−1.3.2.min.js」を代替URIとして、リソース取得先URIに設定する。
同様に、例えば、変数INが「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.js」である場合も、URI判定部c122は、「jquery.min.js」をファイル名として抽出し、一致すると判定する。この場合も、URI判定部c122は、ステップS218で、配列RのN番目(N=2)の内容である「file://script/jquery−1.3.2.min.js」を代替URIとして、リソース取得先URIに設定する。
Hereinafter, the alternative URI process will be described with reference to FIG.
In the first modification, the URI determination unit c122 substitutes the file name instead of the resource URI of the array T. In the comparison in step S213, the URI determination unit c122 performs comparison using the file name extracted as described above from the character string of the variable IN instead of the character string of the variable IN.
For example, if the variable IN is “http: // YYY... Com / ajax / libs / jquery / 1.3.2 / jquery.js”, in step S213, the URI determination unit c122 causes the file name “ jquery.js "is extracted and compared. On the other hand, since “jquery.js” is assigned to the second (n = 2) element of the array T (see FIG. 10), in the second (N = 2) step S214, the extracted file name “ jquery.js ”(complete match). In this case, the URI determination unit c122 sets “file: //script/jquery-1.3.2.min.js”, which is the Nth (N = 2) content of the array R, as an alternative URI in step S218. Set to the resource acquisition destination URI.
Similarly, for example, when the variable IN is “http: // YYY... Com / ajax / libs / jquery / 1.3.2 / jquery.js”, the URI determination unit c122 also sets “jquery. min.js ”is extracted as a file name, and it is determined that they match. Also in this case, the URI determination unit c122 substitutes “file: //script/jquery-1.3.2.min.js”, which is the Nth (N = 2) content of the array R, in step S218. As the resource acquisition destination URI.

このように、本変形例1では、Webブラウザ端末C1は、リソースURIと、リソースURIの一部(ファイル名)が部分一致する場合に、リソースURIのJSファイルを代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。特に著名なJSライブラリの場合、同一のファイルが複数のWebサイト上に存在し、個々に利用されていることが多い。本変形例によれば、それらのJSファイルのリソースURI全てについてそのURI判定情報を書き込まなくても、代替URIと対応付けることができる。また、これにより、配列Tの設定個数の増加を防止することができる。   As described above, in the first modification, when the resource URI and a part (file name) of the resource URI partially match, the Web browser terminal C1 replaces the JS file of the resource URI with the alternative JS file. The JS program of the alternative JS file is executed. In particular, in the case of a well-known JS library, the same file exists on a plurality of Web sites and is often used individually. According to this modification, it is possible to associate with the alternative URI without writing the URI determination information for all the resource URIs of those JS files. Further, this can prevent an increase in the set number of arrays T.

<変形例2>
変形例2では、URI判定部c122は、リソースURIの先頭部分の文字列(URI部分文字列という)及びファイル名に基づいて、代替URIが存在するか否かを判定する。
<Modification 2>
In the second modification, the URI determination unit c122 determines whether or not an alternative URI exists based on a character string at the head of the resource URI (referred to as a URI partial character string) and a file name.

図11は、本実施形態の変形例2に係るURI判定情報テーブルの一例を示す概略図である。図示するようにURI判定情報テーブルは、リソースURIのURI部分文字列、リソースURIのファイル名、及び代替URIの各項目の列を有している。URI判定情報テーブルは、行毎にURI判定情報が格納される行と列からなる2次元の表形式のデータである。
例えば、図11の1行目のURI判定情報は、符号1302を付したURI部分文字列「http://YYY・・・.com/ajax/libs/jquery/」及びファイル名「jquery.js」(ファイル名1202)に対する代替URIとして、「file://script/jquery−1.3.2.min.js」(URI1102)が対応付けられていることを示す。
FIG. 11 is a schematic diagram illustrating an example of a URI determination information table according to the second modification of the present embodiment. As shown in the figure, the URI determination information table includes columns for each item of the URI partial character string of the resource URI, the file name of the resource URI, and the alternative URI. The URI determination information table is two-dimensional tabular data composed of rows and columns in which URI determination information is stored for each row.
For example, the URI determination information on the first line in FIG. 11 includes a URI partial character string “http: // YYY... / Com / ajax / libs / jquery /” with a reference numeral 1302 and a file name “jquery.js”. It shows that “file: //script/jquery-1.3.2.min.js” (URI 1102) is associated as an alternative URI for (file name 1202).

具体的に、Webブラウザ端末C1では、以下の処理を行う。
URI判定部c122(URI判定オブジェクト)は、リソースURIの先頭部分の文字列と、URI判定情報テーブルのURI部分文字列を比較し、代替URIが存在するか否かを判定する。例えば、URI判定部c122は、リソースURIが「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.min.js」である場合には、URI判定情報テーブルのURI部分文字列が「http://YYY・・・.com」や「http://YYY・・・.com/ajax/libs/jquery」である場合、代替URIが存在すると判定する。
なお、URI判定部c122は、変形例1と同様にしてファイル名を抽出する。
Specifically, the Web browser terminal C1 performs the following processing.
The URI determination unit c122 (URI determination object) compares the character string at the beginning of the resource URI with the URI partial character string in the URI determination information table, and determines whether there is an alternative URI. For example, when the resource URI is “http: // YYY... Com / ajax / libs / jquery / 1.3.2 / jquery.min.js”, the URI determination unit c122 has URI determination information. When the URI partial character string of the table is “http: // YYY... Com” or “http: // YYY... Com / ajax / libs / jquery”, it is determined that an alternative URI exists.
The URI determination unit c122 extracts a file name in the same manner as in the first modification.

以下、図9を用いて代替URI処理について説明をする。
変形例2では、URI判定部c122は、判定情報記憶部c121が記憶するURI判定情報テーブル(図10)でのn行目のURI部分文字列及びファイル名を、それぞれ、配列T1、T2のn番目の要素に、代入する。URI判定部c122は、URI判定部c122は、配列Tに変えて配列T1及びT2を用いて代替URI処理を行う。
ステップS213の比較において、URI判定部c122は、リソースURIの先頭部分の文字列と配列T1のURI部分文字列とを比較する(先頭一致比較という)。ここで、先頭一致比較とは、2個の文字列を先頭から1文字づつ順番に比較し、先にどちらかの文字列が文字列終端に達した時点で、もう片方の文字列の残りは比較せず、2個の文字列は一致したとする比較方法である。
また、URI判定部c122は、変数INの文字列から抽出したファイル名と、配列T2のファイル名とを比較する(ファイル名比較という)。この2つの比較(先頭一致比較、ファイル名比較)において、いずれの比較でも一致すると判定した場合、ステップS214で一致したと判定する。なお、それ以外の場合は、一致しないと判定する。
Hereinafter, the alternative URI process will be described with reference to FIG.
In the second modification, the URI determination unit c122 converts the URI partial character string and the file name of the nth row in the URI determination information table (FIG. 10) stored in the determination information storage unit c121 to n in arrays T1 and T2, respectively. Assign to the th element. The URI determination unit c122 performs the alternative URI process using the arrays T1 and T2 instead of the array T.
In the comparison in step S213, the URI determination unit c122 compares the character string at the head part of the resource URI with the URI part character string in the array T1 (referred to as head match comparison). Here, the head match comparison compares two character strings one by one from the beginning, and when one of the character strings reaches the end of the character string, the remaining character string is the rest. This is a comparison method in which two character strings are matched without comparison.
The URI determination unit c122 compares the file name extracted from the character string of the variable IN with the file name of the array T2 (referred to as file name comparison). In these two comparisons (start matching comparison and file name comparison), if it is determined that both comparisons match, it is determined in step S214 that they match. In other cases, it is determined that they do not match.

例えば、変数INが「http://YYY・・・.com/ajax/libs/jquery/1.3.2/jquery.js」である場合、ステップS213では、URI判定部c122は、先頭一致比較と、ファイル名「jquery.js」を抽出してファイル名比較を行う。これらの比較において、配列T1の2番目(n=2)の要素には「http://YYY・・・.com/ajax/libs/jquery/」、配列T2の2番目の要素には「jquery.js」が代入されている(図11参照)ので、2回目(N=2)のステップS214で、先頭一致比較でもファイル名比較でも一致すると判定する。この場合、URI判定部c122は、ステップS218で、配列RのN番目(N=2)の内容である「file://script/jquery−1.3.2.min.js」を代替URIとして、リソース取得先URIに設定する。
同様に、例えば、変数INが「http://YYY・・・.com/ajax/libs/jquery/1.3.0/jquery.js」である場合も、URI判定部c122は、先頭一致比較(「http://YYY・・・.com/ajax/libs/jquery/」)でもファイル名比較でも一致すると判定する。この場合も、URI判定部c122は、ステップS218で、配列RのN番目(N=2)の内容である「file://script/jquery−1.3.2.min.js」を代替URIとして、リソース取得先URIに設定する。
なお、上記変形例2において、URI部分文字列は、リソースURLのドメイン名を用いてもよい。
For example, when the variable IN is “http: // YYY.. ./Com/ajax/libs/jquery/1.3.2/jquery.js”, in step S213, the URI determination unit c122 compares the head match. Then, the file name “jquery.js” is extracted and the file names are compared. In these comparisons, the second element (n = 2) of the array T1 has “http: // YYY... Com / ajax / libs / jquery /”, and the second element of the array T2 has “jquery”. .Js ”is substituted (see FIG. 11), it is determined in the second (N = 2) step S214 that both the head match comparison and the file name comparison match. In this case, the URI determination unit c122 sets “file: //script/jquery-1.3.2.min.js”, which is the Nth (N = 2) content of the array R, as an alternative URI in step S218. Set to the resource acquisition destination URI.
Similarly, for example, when the variable IN is “http: // YYY.. ./Com/ajax/libs/jquery/1.3.0/jquery.js”, the URI determination unit c122 also performs the head match comparison. (“Http: // YYY... Com / ajax / libs / jquery /”) and file name comparison are determined to match. Also in this case, the URI determination unit c122 substitutes “file: //script/jquery-1.3.2.min.js”, which is the Nth (N = 2) content of the array R, in step S218. As the resource acquisition destination URI.
In the second modification, the URI partial character string may use the domain name of the resource URL.

このように、本変形例2では、Webブラウザ端末C1は、リソースURIと、リソースURIの一部(URI部分文字列)が部分一致する場合に、リソースURIのJSファイルを代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。
これにより、同一のWebサイトにおいて、例えばリソースURI文字列の一部にに含まれる「/1.3.2/」のようなバージョン情報や「/2009.08.11/」のようなリリース日付けを意味する部分のみが異なっていても、Webブラウザ端末C1は、適切な代替JSファイルのJSプログラムで置き換えることができる。
また、バージョンやリリース日付けが異なるJSファイルのリソースURI毎に、そのURI判定情報を書き込まなくても、代替URIと対応付けることができる。また、これにより、配列Tの設定個数の増加を防止することができる。
特に著名なJSライブラリの開発を行っているWebサイトでは、同一Webサイト上に過去のものを含む複数バージョンのJSファイルが存在しており、且つ、開発が進むにつれてそのJSファイルの種類が増えていくため、それらJSファイルについて全てを個々に指定することなく代替URIを設定できる。
また、リソースURIとファイル名以外のURIとで部分一致の判定を行うので、偶然ファイル名が同一だったことによって目的とするJSライブラリに対する意図しない置き換えが行われることを防止することができる。
In this way, in the second modification, when the resource URI and a part of the resource URI (URI partial character string) partially match, the Web browser terminal C1 replaces the resource URI JS file with the alternative JS file, Execute the JS program of the replaced alternative JS file.
As a result, version information such as “/1.3.2/” and release date such as “/2009.08.11/” included in a part of the resource URI character string, for example, on the same Web site. Even if only the part meaning the attachment is different, the Web browser terminal C1 can be replaced with a JS program of an appropriate alternative JS file.
Further, each resource URI of a JS file with a different version or release date can be associated with an alternative URI without writing the URI determination information. Further, this can prevent an increase in the set number of arrays T.
In particular, on websites that develop famous JS libraries, there are multiple versions of JS files, including past ones, on the same website, and the types of JS files increase as development progresses. Therefore, it is possible to set alternative URIs without specifying all of these JS files individually.
In addition, since the partial match is determined between the resource URI and the URI other than the file name, it is possible to prevent unintended replacement of the intended JS library due to accidental file name coincidence.

(第2の実施形態)
上記第1の実施形態において、Webブラウザ端末C1は、URIに基づいて代替URI処理を行った。本実施形態では、Webブラウザ端末は、リソースURLから取得したJSファイルのリソースデータに基づいて、このリソースデータを代替JSファイルのリソースデータに変更する代替データ処理を行う。以下、本実施形態に係るWebブラウザ端末C2という。
本実施形態に係る情報処理システムを示す概念図は、図1と同じであるので説明は省略する。なお、この図のWebブラウザ端末C11、C12各々がWebブラウザ端末C2である。また、Webブラウザ端末C2のハードウェア構成を示す概略ブロック図は、図2と同じであるので説明は省略する。ただし、本実施形態に係るWebブラウザアプリケーションf2の機能はWebブラウザアプリケーションf1とは異なる。
(Second Embodiment)
In the first embodiment, the Web browser terminal C1 performs an alternative URI process based on the URI. In the present embodiment, the Web browser terminal performs alternative data processing for changing the resource data to the resource data of the alternative JS file based on the resource data of the JS file acquired from the resource URL. Hereinafter, it is referred to as a Web browser terminal C2 according to the present embodiment.
The conceptual diagram showing the information processing system according to the present embodiment is the same as FIG. Each of the web browser terminals C11 and C12 in this figure is the web browser terminal C2. A schematic block diagram showing the hardware configuration of the Web browser terminal C2 is the same as that shown in FIG. However, the function of the Web browser application f2 according to the present embodiment is different from that of the Web browser application f1.

図12は、本発明の第2の実施形態に係るWebブラウザ端末C2の論理的な構成を示す概略ブロック図である。本実施形態に係るWebブラウザ端末C2(図12)と第1の実施形態に係るWebブラウザ端末C1(図3)とを比較すると、表示制御部c211、代替判定部c22の判定情報記憶部c221及びデータ判定部c222(取得先抽出部)が異なる。しかし、他の構成要素(入力部c104、通信部c106、表示部c105、スクリプト取得部c112、外部記憶部c103)が有する機能は第1の実施形態と同じである。第1の実施形態と同じ機能の説明は省略する。   FIG. 12 is a schematic block diagram showing a logical configuration of the Web browser terminal C2 according to the second embodiment of the present invention. When the Web browser terminal C2 (FIG. 12) according to the present embodiment is compared with the Web browser terminal C1 (FIG. 3) according to the first embodiment, the display control unit c211, the determination information storage unit c221 of the alternative determination unit c22, and The data determination unit c222 (acquisition source extraction unit) is different. However, the functions of other components (input unit c104, communication unit c106, display unit c105, script acquisition unit c112, external storage unit c103) are the same as those in the first embodiment. A description of the same functions as those in the first embodiment is omitted.

表示制御部c211は、通信部c106から入力されたファイルから、リソースURIを抽出してスクリプト取得部c112に出力する。表示制御部c211は、スクリプト取得部c112から入力されたリソースURIのJavascritpファイルa13のリソースデータをデータ判定部c222に出力する。
表示制御部c211は、データ判定部c222から入力された代替URIのWeb代替JSファイルb11、或いはローカル代替JSファイルf2、又は、(データ判定部c222からNULL値が入力された場合)スクリプト取得部c112から入力されたリソースURIのJavascritpファイルa13のJSプログラムを用いて、通信部c106から入力されたファイルのプログラムを実行する。表示制御部c211は、プログラムの実行結果の画像情報を表示部c105に出力する。
The display control unit c211 extracts a resource URI from the file input from the communication unit c106 and outputs the resource URI to the script acquisition unit c112. The display control unit c211 outputs the resource data of the Javascript file a13 of the resource URI input from the script acquisition unit c112 to the data determination unit c222.
The display control unit c211 is the alternative URI Web alternative JS file b11 or local alternative JS file f2 input from the data determination unit c222 or (when a NULL value is input from the data determination unit c222) the script acquisition unit c112. The program of the file input from the communication unit c106 is executed using the JS program of the Javascript file a13 of the resource URI input from. The display control unit c211 outputs the image information of the execution result of the program to the display unit c105.

判定情報記憶部c221は、データ判定情報テーブル(図15)を記憶する。データ判定情報テーブルは、データファイル名、及び代替URIを対応付けたテーブルである。また、判定情報記憶部c221は、データファイル名のデータファイルを記憶する。
データ判定部c222は、判定情報記憶部c221が記憶するデータ判定情報テーブルの情報と、表示制御部c211から入力されたリソースデータに基づいて、代替URIがあるか否かを判定する。
代替URIがあると判定した場合、データ判定部c222は、代替URIをリソース取得先URIとしてスクリプト取得部c112に出力する。データ判定部c222は、スクリプト取得部c112が取得した代替URIのWeb代替JSファイルb11、或いはローカル代替JSファイルf2のリソースデータ(代替リソースデータという)を表示制御部c211に出力する。一方、代替URIがないと判定した場合、データ判定部c222は、NULL値を表示制御部c211に出力する。ここでNULL値とは、通常の文字列とは異なる文字列であり、例えば長さが0の文字列である。
The determination information storage unit c221 stores a data determination information table (FIG. 15). The data determination information table is a table in which a data file name and an alternative URI are associated with each other. The determination information storage unit c221 stores a data file having a data file name.
The data determination unit c222 determines whether there is an alternative URI based on the information in the data determination information table stored in the determination information storage unit c221 and the resource data input from the display control unit c211.
If it is determined that there is an alternative URI, the data determination unit c222 outputs the alternative URI to the script acquisition unit c112 as the resource acquisition destination URI. The data determination unit c222 outputs the resource data (referred to as alternative resource data) of the Web alternative JS file b11 of the alternative URI acquired by the script acquisition unit c112 or the local alternative JS file f2 to the display control unit c211. On the other hand, when determining that there is no alternative URI, the data determination unit c222 outputs a NULL value to the display control unit c211. Here, the NULL value is a character string different from a normal character string, for example, a character string having a length of zero.

図13は、本実施形態に係るWebブラウザアプリケーションf2を表わすオブジェクト図である。この図のオブジェクト図は、UMLを用いて表わした図である。本実施形態に係るWebブラウザアプリケーションf2(図13)と第1の実施形態に係るWebブラウザアプリケーションf1(図5)とを比較すると、リソースビルダーオブジェクトo22、及びdata判定オブジェクトo223が異なる。しかし、他のオブジェクトは第1の実施形態と同じである。第1の実施形態と同じオブジェクトの説明は省略する。
なお、data判定オブジェクトo223は図12のデータ判定部c212で実装され、ローダーオブジェクトo121及びスキーム別ローダーオブジェクトはスクリプト取得部c112で実装される。その他のオブジェクトは表示制御部c211で実装される。
FIG. 13 is an object diagram representing the Web browser application f2 according to the present embodiment. The object diagram in this figure is a diagram expressed using UML. When the Web browser application f2 (FIG. 13) according to the present embodiment is compared with the Web browser application f1 (FIG. 5) according to the first embodiment, the resource builder object o22 and the data determination object o223 are different. However, other objects are the same as those in the first embodiment. The description of the same object as in the first embodiment is omitted.
The data determination object o223 is implemented by the data determination unit c212 in FIG. 12, and the loader object o121 and the scheme-specific loader object are implemented by the script acquisition unit c112. Other objects are implemented by the display control unit c211.

リソースビルダーオブジェクトo22は、リソースオブジェクトの生成を行う。具体的には、ローダーオブジェクトo121を呼び出し、リソースオブジェクト生成命令のリソースURIをリソース取得先URIとして、このリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。リソースビルダーオブジェクトo22は、ローダーオブジェクトo121が取得したリソースURIのリソースデータをdata判定オブジェクトo223に送付する。
data判定オブジェクトo223は、送付されたリソースデータに対する代替リソースデータをリソースビルダーオブジェクトo22に返却する。
リソースビルダーオブジェクトo22は、data判定オブジェクトo223から返却された代替リソースデータを含むレンダリング命令を生成し、レンダラーオブジェクトo122に送付する。
The resource builder object o22 generates a resource object. Specifically, the loader object o121 is called, and the resource acquisition message including the resource acquisition destination URI is sent to the loader object o121 with the resource URI of the resource object generation instruction as the resource acquisition destination URI. The resource builder object o22 sends the resource data of the resource URI acquired by the loader object o121 to the data determination object o223.
The data determination object o223 returns the alternative resource data for the sent resource data to the resource builder object o22.
The resource builder object o22 generates a rendering instruction including the alternative resource data returned from the data determination object o223, and sends it to the renderer object o122.

図14は、本実施形態に係るWebブラウザアプリケーションf2の実行動作の一例を示すシーケンス図である。この図は、本実施形態に係るJSファイル処理を行う際のUMLにおけるシーケンス図である。図14と図6を比較すると、図14ではステップS311〜S317の処理が追加されている点、及び、ステップS107の処理がステップS307の処理に変更されている点が異なる。しかし、他の処理(ステップS101〜S106、S108〜S116の処理)は図6の処理と同じである。図6と同じ処理の説明は省略する。   FIG. 14 is a sequence diagram illustrating an example of an execution operation of the Web browser application f2 according to the present embodiment. This figure is a sequence diagram in UML when performing JS file processing according to the present embodiment. 14 is compared with FIG. 6 in that the processing in steps S311 to S317 is added in FIG. 14 and the processing in step S107 is changed to the processing in step S307. However, other processes (the processes of steps S101 to S106 and S108 to S116) are the same as the processes of FIG. Description of the same processing as in FIG. 6 is omitted.

(ステップS311)リソースビルダーオブジェクトo22は、ステップS106で返却されたリソースデータのmime−type値が「text/javascript」であるか否かを判定する。mime−type値が「text/javascript」であると判定した場合、ステップS106で返却されたリソースデータを含む代替データ存在チェックメッセージをdata判定オブジェクトo223に送付する。その後、ステップS312へ進む。 (Step S311) The resource builder object o22 determines whether or not the mime-type value of the resource data returned in Step S106 is “text / javascript”. When it is determined that the mime-type value is “text / javascript”, an alternative data existence check message including the resource data returned in step S106 is sent to the data determination object o223. Thereafter, the process proceeds to step S312.

(ステップS312)data判定オブジェクトo223は、ステップS311で送付された代替データ存在チェックメッセージを取得し、取得した代替データ存在チェックメッセージのリソースデータに基づいて代替URIが存在するか否かを判定する。また、代替URIが存在すると判定した場合、data判定オブジェクトo223は、その代替URIを読み出す。その後、ステップS313へ進む。
(ステップS313)ステップS313で代替URIが存在すると判定した場合、data判定オブジェクトo223は、ステップS312で読み出した代替URIをリソース取得先URIとし、このリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。その後、ステップS314へ進む。
一方、ステップS313で代替URIが存在しないと判定した場合は、ステップS317へ進む。
(Step S312) The data determination object o223 acquires the alternative data presence check message sent in step S311 and determines whether there is an alternative URI based on the resource data of the acquired alternative data presence check message. If it is determined that an alternative URI exists, the data determination object o223 reads the alternative URI. Thereafter, the process proceeds to step S313.
(Step S313) If it is determined in step S313 that an alternative URI exists, the data determination object o223 uses the alternative URI read in step S312 as a resource acquisition destination URI, and a resource acquisition message including this resource acquisition destination URI is used as a loader object. o121. Thereafter, the process proceeds to step S314.
On the other hand, if it is determined in step S313 that there is no alternative URI, the process proceeds to step S317.

(ステップS314)ローダーオブジェクトo121は、ステップ313で送付されたリソース取得メッセージを取得し、取得したリソース取得メッセージのリソース取得先URIに基づいてスキームを判定する。ローダーオブジェクトo121は、判定したスキームのスキーム別ローダーオブジェクト(fileローダーオブジェクトo1212)に対して、リソース取得先URIを含むデータ取得メッセージを送付する。その後、ステップS315へ進む。 (Step S314) The loader object o121 acquires the resource acquisition message sent in Step 313, and determines a scheme based on the resource acquisition destination URI of the acquired resource acquisition message. The loader object o121 sends a data acquisition message including the resource acquisition destination URI to the scheme-specific loader object (file loader object o1212) of the determined scheme. Thereafter, the process proceeds to step S315.

(ステップS315)fileローダーオブジェクトo1212は、ステップS314で送付されたデータ取得メッセージを取得し、取得したデータ取得メッセージのリソース取得先URIからリソースデータを取得する。fileローダーオブジェクトo1212は、取得したリソースデータをデータ取得メッセージの返値としてローダーオブジェクトo121に返却する。その後、ステップS316へ進む。
(ステップS316)リソースデータをローダーオブジェクトo121は、ステップS315で返却されたリソースデータを、リソース取得メッセージの返値としてdata判定オブジェクトo223に返却する。その後、ステップS317へ進む。
(Step S315) The file loader object o1212 acquires the data acquisition message sent in step S314, and acquires resource data from the resource acquisition destination URI of the acquired data acquisition message. The file loader object o1212 returns the acquired resource data to the loader object o121 as a return value of the data acquisition message. Thereafter, the process proceeds to step S316.
(Step S316) The loader object o121 returns the resource data to the data determination object o223 as the return value of the resource acquisition message. Thereafter, the process proceeds to step S317.

(ステップS317)data判定オブジェクトo223は、ステップS311で送付された代替データ存在チェックメッセージの返値として、ステップS316で返却されたリソースデータをリソースビルダーオブジェクトo22に返却する。ここで、ステップS313で代替URIが存在しないと判定した場合には、data判定オブジェクトo223は、NULL値をデータ取得メッセージの返値としてリソースビルダーオブジェクトo22に返却する。その後、ステップS307へ進む。
(ステップS307)リソースビルダーオブジェクトo22は、ステップS317で返却されたリソースデータを含むレンダリング命令を生成し、レンダラーオブジェクトo122に送付する。ここで、ステップS316でNULL値が返却された場合には、リソースビルダーオブジェクトo22は、ステップS106で返却されたリソースデータを含むレンダリング命令を生成し、レンダラーオブジェクトo122に送付する。その後、ステップS108へ進む。
なお、ローダーオブジェクトo121、リソースビルダーオブジェクトo22及びdata判定オブジェクトo223が行うステップS311〜S317、S307の処理が代替データ処理である。
(Step S317) The data determination object o223 returns the resource data returned in step S316 to the resource builder object o22 as a return value of the alternative data existence check message sent in step S311. If it is determined in step S313 that there is no alternative URI, the data determination object o223 returns a NULL value to the resource builder object o22 as a return value of the data acquisition message. Thereafter, the process proceeds to step S307.
(Step S307) The resource builder object o22 generates a rendering instruction including the resource data returned in step S317, and sends it to the renderer object o122. Here, when a NULL value is returned in step S316, the resource builder object o22 generates a rendering command including the resource data returned in step S106, and sends it to the renderer object o122. Thereafter, the process proceeds to step S108.
Note that the processing of steps S311 to S317 and S307 performed by the loader object o121, the resource builder object o22, and the data determination object o223 is alternative data processing.

以下、代替データ処理の詳細について説明をする。
図15は、本実施形態に係るデータ判定情報テーブルの一例を示す概略図である。図示するようにデータ判定情報テーブルは、データファイル名及び代替URIの各項目の列を有している。データ判定情報テーブルは、行毎にデータ判定情報が格納される行と列からなる2次元の表形式のデータである。
例えば、図15の1行目のデータ判定情報は、符号2001を付したデータファイル名「ファイル1」に対する代替URIとして、符号2101を付した「file://script/jquery−1.3.2.min.js」が対応付けられていることを示す。
例えば、データファイル名「ファイル1」のデータファイルは図16に示す内容であり、また、データファイル名「ファイル2」のデータファイルは図17に示す内容である。図16、図17はデータファイルの一例を示す概略図であり、これらのデータファイルはJacascriptコード(JSプログラム)を表わす文字列で記載されている。
The details of the alternative data processing will be described below.
FIG. 15 is a schematic diagram illustrating an example of a data determination information table according to the present embodiment. As shown in the figure, the data determination information table has columns of items of data file name and alternative URI. The data determination information table is two-dimensional tabular data composed of rows and columns in which data determination information is stored for each row.
For example, the data determination information in the first line of FIG. 15 includes “file :: / script / jquery—1.3.2 attached with reference numeral 2101 as an alternative URI for the data file name“ file 1 ”attached with reference numeral 2001. .. min.js ”are associated with each other.
For example, the data file with the data file name “file 1” has the contents shown in FIG. 16, and the data file with the data file name “file 2” has the contents shown in FIG. FIGS. 16 and 17 are schematic diagrams showing examples of data files, and these data files are described in character strings representing Jacascript codes (JS programs).

図18は、本実施形態に係る代替データ処理の一例を示すフローチャートである。
(ステップS411)図12のデータ判定部c222(data判定オブジェクトo223)は、取得した代替データ存在チェックメッセージのリソースデータのdata値(チェック対象テキストデータ)を文字列として文字列変数TEXTに代入する。その後、ステップS412へ進む。
(ステップS412)データ判定部c222は、整数変数Nに「1」を代入する。また、この変数Nは配列F及び配列Rの添え字として用いられる。また、データ判定部c222は、判定情報記憶部c221が記憶するデータ判定情報テーブル(図15)でのn行目のデータファイル名のデータファイルの内容(テキストデータ;プログラムの識別情報)を配列Fのn番目の要素に代入する。また、データ判定部c222は、判定情報記憶部c221が記憶するデータ判定情報テーブルでのn行目の代替URIを配列Rのn番目の要素に代入する。その後、ステップS413へ進む。
FIG. 18 is a flowchart illustrating an example of alternative data processing according to the present embodiment.
(Step S411) The data determination unit c222 (data determination object o223) in FIG. 12 substitutes the data value (check target text data) of the acquired resource data of the alternative data existence check message as a character string into the character string variable TEXT. Thereafter, the process proceeds to step S412.
(Step S412) The data determination unit c222 assigns “1” to the integer variable N. The variable N is used as a subscript for the array F and the array R. Further, the data determination unit c222 arranges the data file contents (text data; program identification information) of the data file name of the n-th row in the data determination information table (FIG. 15) stored in the determination information storage unit c221 into the array F. To the nth element of. In addition, the data determination unit c222 substitutes the alternative URI of the nth row in the data determination information table stored in the determination information storage unit c221 into the nth element of the array R. Thereafter, the process proceeds to step S413.

(ステップS413)データ判定部c222は、配列FのN番目の内容の文字列と変数TEXTの文字列を比較する。この比較は、配列FのN番目の要素である文字列と変数TEXTの文字列とが完全一致しているか否かを比較する。その後、ステップS414へ進む。
(ステップS414)データ判定部c222は、ステップS413の比較の結果、文字列が完全に一致したか否かを判定する。判定の結果、文字列が完全に一致したと判定した場合、ステップS418へ進む。一方、文字列が完全に一致しないと判定した場合、ステップS415へ進む。
(ステップS415)データ判定部c222は、変数Nの値を1増やす。その後、ステップS416へ進む。
(Step S413) The data determination unit c222 compares the character string of the Nth content in the array F with the character string of the variable TEXT. This comparison compares whether or not the character string that is the Nth element of the array F and the character string of the variable TEXT are completely identical. Thereafter, the process proceeds to step S414.
(Step S414) The data determination unit c222 determines whether or not the character strings completely match as a result of the comparison in step S413. As a result of the determination, if it is determined that the character strings completely match, the process proceeds to step S418. On the other hand, if it is determined that the character strings do not match completely, the process proceeds to step S415.
(Step S415) The data determination unit c222 increases the value of the variable N by one. Thereafter, the process proceeds to step S416.

(ステップS416)データ判定部c222は、変数Nの値が配列Fの要素数を超えたか否かを判定する。判定の結果、変数Nの値が配列Fの要素数を超えたと判定した場合(はい)は、配列Fの全ての要素について比較が完了しているので、ステップS417へ進む。一方、変数Nの値が配列Fの要素数を超えていないと判定した場合(いいえ)は、配列Fに比較する要素がまだ残っているので、ステップS413へ戻る。
(ステップS417)データ判定部c222は、NULL値を代替データ存在チェックメッセージの返値(リソースビルダーオブジェクトo22への返値)に設定する。その後、動作を終了する。
(ステップS418)データ判定部c222は、配列RのN番目の内容を、つまり、配列RのN番目の要素である代替URIの文字列(図8でのN行目の代替URI)を、スクリプト取得部c112に出力する。その後、ステップS419へ進む。
(ステップS419)スクリプト取得部c112は、ステップS418で出力された代替URIから代替JSファイルを取得し、データ判定部c222に出力する。データ判定部c222は、入力された代替JSファイルからmime−type値とdata値と抽出し、抽出した値をリソースデータとして、代替データ存在チェックメッセージの返値(リソースビルダーオブジェクトo22への返値)に設定する。その後、動作を終了する。
なお、データ判定部c222は、ステップS417又はS419で設定したリソースデータを表示制御部c211に出力する。
(Step S416) The data determination unit c222 determines whether the value of the variable N exceeds the number of elements in the array F. As a result of the determination, if it is determined that the value of the variable N has exceeded the number of elements in the array F (Yes), since the comparison has been completed for all the elements in the array F, the process proceeds to step S417. On the other hand, if it is determined that the value of the variable N does not exceed the number of elements in the array F (No), the elements to be compared with the array F still remain, and the process returns to step S413.
(Step S417) The data determination unit c222 sets the NULL value to the return value of the alternative data existence check message (return value to the resource builder object o22). Thereafter, the operation is terminated.
(Step S418) The data determination unit c222 uses the Nth content of the array R, that is, the character string of the alternative URI (the alternative URI of the Nth line in FIG. 8) that is the Nth element of the array R as a script. It outputs to the acquisition part c112. Thereafter, the process proceeds to step S419.
(Step S419) The script acquisition unit c112 acquires an alternative JS file from the alternative URI output in step S418, and outputs it to the data determination unit c222. The data determination unit c222 extracts the mime-type value and the data value from the input substitute JS file, and uses the extracted value as resource data to return the substitute data existence check message (return value to the resource builder object o22). Set to. Thereafter, the operation is terminated.
Note that the data determination unit c222 outputs the resource data set in step S417 or S419 to the display control unit c211.

このように、本実施形態によれば、Webブラウザ端末C2は、リソースURIのJSファイルの内容と、記憶するデータファイルの内容とが一致する場合に、JSファイルを他の代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。これにより、JSファイルのリソースURIやファイル名が変更された場合でもJSファイルの内容によって、JSファイルを識別することができ、適切な代替JSファイルで置き換えることができる。   Thus, according to the present embodiment, the Web browser terminal C2 replaces the JS file with another alternative JS file when the content of the JS file of the resource URI matches the content of the stored data file, The replaced JS file JS program is executed. Thereby, even when the resource URI or file name of the JS file is changed, the JS file can be identified by the contents of the JS file, and can be replaced with an appropriate alternative JS file.

<変形例3>
以下、本実施形態の変形例について説明をする。
本実施形態では、Webブラウザ端末C2がJacascriptコード(JSプログラム)を表わす文字列で記載されたファイルのデータに基づいて代替データ処理を行う場合について説明をした。しかし、本発明はこれに限らず、ファイルの内容を数値等の他の文字列に変換し、変換した文字列(変換データという)に基づいてWebブラウザ端末C2が代替データ処理を行ってもよい。ここで、変数TEXTの内容を数値化には、例えば、文字列の文字数を数値化の値としてもよいし、また、文字列の各文字を8ビットの数値としてその総和を求めるチェックサム(Check Sum)を数値化の値としてもよい、また、文字列の各文字を8ビットの数値としてそのハッシュ関数の値を数値化の値してもよい。なお、ハッシュ関数としては例えばSHA(Secure Hash Algorithm)−1やMD(Message Digest Algorithm)5などがある。
<Modification 3>
Hereinafter, modifications of the present embodiment will be described.
In the present embodiment, a case has been described in which the Web browser terminal C2 performs alternative data processing based on file data described as a character string representing a Jacascript code (JS program). However, the present invention is not limited to this, and the content of the file may be converted into another character string such as a numerical value, and the Web browser terminal C2 may perform alternative data processing based on the converted character string (referred to as converted data). . Here, in order to quantify the contents of the variable TEXT, for example, the number of characters in the character string may be converted into a numerical value, or each character of the character string may be converted into an 8-bit numerical value and a checksum (Check) for calculating the sum. Sum) may be a numerical value, or each character of a character string may be an 8-bit numerical value and the hash function value may be a numerical value. Examples of the hash function include SHA (Secure Hash Algorithm) -1 and MD (Message Digest Algorithm) 5.

図19は、本実施形態の変形例3に係るデータ判定情報テーブルの一例を示す概略図である。図示するようにデータ判定情報テーブルは、変換データ及び代替URIの各項目の列を有している。データ判定情報テーブルは、行毎にデータ判定情報が格納される行と列からなる2次元の表形式のデータである。
図18において、符号2101、2102を付した変換データ(変換データ2101、2102という)は、それぞれ、ハッシュ関数としてMD5を用いて、図16、図17のデータファイルを変換した変換データである。なお、これらの変換データは、16進数で標記したハッシュ値である。
FIG. 19 is a schematic diagram illustrating an example of a data determination information table according to the third modification of the present embodiment. As shown in the drawing, the data determination information table has columns of items of conversion data and alternative URI. The data determination information table is two-dimensional tabular data composed of rows and columns in which data determination information is stored for each row.
In FIG. 18, the conversion data (referred to as conversion data 2101 and 2102) denoted by reference numerals 2101 and 2102 are conversion data obtained by converting the data files of FIGS. 16 and 17 using MD5 as a hash function. These conversion data are hash values expressed in hexadecimal.

このように、本変形例3によれば、Webブラウザ端末C2は、JSファイルの内容を変換した変換データに基づいて、JSファイルを他の代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。これにより、JSファイルの内容をそのまま比較する場合と比較して、メモリc102及び外部記憶部c103で使用する記憶容量を低減することができる。
また、文字列を数値化する方法としてハッシュ関数を用いると、異なるJSファイルの内容に対して偶然同一の値になる可能性が大幅に減るため、目的とするJSライブラリに対する意図しない代替が行われることを防止することができる。
Thus, according to the third modification, the Web browser terminal C2 replaces the JS file with another alternative JS file based on the converted data obtained by converting the contents of the JS file, and replaces the JS program of the replaced alternative JS file. Execute. Thereby, the storage capacity used in the memory c102 and the external storage unit c103 can be reduced as compared with the case where the contents of the JS file are directly compared.
In addition, if a hash function is used as a method for digitizing a character string, the possibility of accidentally having the same value for the contents of different JS files is greatly reduced. This can be prevented.

(第3の実施形態)
JSライブラリを作成する際、グローバルオブジェクトの名称(グローバルオブジェクト名という)、例えばJSライブラリ毎に固有のグローバル変数を1個定義する。そのグローバル変数に値を指定することで、その値に対応付けられたグローバルオブジェクトのメソッドを呼び出すことができる。このように、グローバル変数とその値を、JSライブラリのAPIとして用いることがある。その際、グローバルオブジェクトに値を設定する命令文(グローバルオブジェクト値設定命令文という。例えば、グローバルオブジェクトに値を設定するvar文)が用いられる。ここで、グローバルオブジェクト値設定命令文には、グローバルオブジェクト名が含まれている。
例えば、JSライブラリが「prototype.js」であれば、使用するグローバル変数の名前は「Prototype」と決められている。したがって、グローバルオブジェクト名からどのJSライブラリを利用しようとしているかの判定をすることができるので、そのJSライブラリに変わる代替ライブラリを選択することできる。
(Third embodiment)
When creating a JS library, a global object name (referred to as a global object name), for example, one global variable unique to each JS library is defined. By specifying a value for the global variable, the method of the global object associated with the value can be called. As described above, the global variable and its value may be used as the API of the JS library. At this time, a command statement for setting a value in the global object (referred to as a global object value setting command statement. For example, a var statement for setting a value in the global object) is used. Here, the global object value setting command statement includes the global object name.
For example, if the JS library is “prototype.js”, the name of the global variable to be used is determined as “Prototype”. Accordingly, since it is possible to determine which JS library is to be used from the global object name, it is possible to select an alternative library that replaces the JS library.

本実施形態では、Webブラウザ端末は、リソースURLから取得したJSファイルのリソースデータからグローバルオブジェクト名を抽出し、抽出したグローバルオブジェクト名に基づいて、代替JSファイルのJSプログラムの実行コードを生成する代替モジュール(API)処理を行う。以下、本実施形態に係るWebブラウザ端末C3という。
本実施形態に係る情報処理システムを示す概念図は、図1と同じであるので説明は省略する。なお、この図のWebブラウザ端末C11、C12各々がWebブラウザ端末C3である。また、Webブラウザ端末C3のハードウェア構成を示す概略ブロック図は、図2と同じであるので説明は省略する。ただし、本実施形態に係るWebブラウザアプリケーションf3の機能はWebブラウザアプリケーションf1とは異なる。
In this embodiment, the Web browser terminal extracts the global object name from the resource data of the JS file acquired from the resource URL, and generates an execution code of the JS program of the alternative JS file based on the extracted global object name. Module (API) processing is performed. Hereinafter, it is referred to as a Web browser terminal C3 according to the present embodiment.
The conceptual diagram showing the information processing system according to the present embodiment is the same as FIG. Each of the web browser terminals C11 and C12 in this figure is a web browser terminal C3. The schematic block diagram showing the hardware configuration of the Web browser terminal C3 is the same as that shown in FIG. However, the function of the Web browser application f3 according to the present embodiment is different from that of the Web browser application f1.

図20は、本発明の第3の実施形態に係るWebブラウザ端末C3の論理的な構成を示す概略ブロック図である。本実施形態に係るWebブラウザ端末C3(図20)と第1の実施形態に係るWebブラウザ端末C1(図3)とを比較すると、表示制御部c311、代替判定部c32の判定情報記憶部c321及びモジュール判定部c322(取得先抽出部)が異なる。しかし、他の構成要素(入力部c104、通信部c106、表示部c105、スクリプト取得部c112、外部記憶部c103)が有する機能は第1の実施形態と同じである。第1の実施形態と同じ機能の説明は省略する。   FIG. 20 is a schematic block diagram showing a logical configuration of a Web browser terminal C3 according to the third embodiment of the present invention. When the Web browser terminal C3 (FIG. 20) according to the present embodiment is compared with the Web browser terminal C1 (FIG. 3) according to the first embodiment, the display control unit c311, the determination information storage unit c321 of the alternative determination unit c32, and The module determination unit c322 (acquisition source extraction unit) is different. However, the functions of other components (input unit c104, communication unit c106, display unit c105, script acquisition unit c112, external storage unit c103) are the same as those in the first embodiment. A description of the same functions as those in the first embodiment is omitted.

表示制御部c311は、通信部c106から入力されたファイルから、リソースURIを抽出してスクリプト取得部c112に出力する。表示制御部c311は、スクリプト取得部c112から入力されたリソースURIのJavascritpファイルa13のリソースデータからグローバルオブジェクト名を抽出し、抽出したグローバルオブジェクト名をモジュール判定部c322に出力する。
表示制御部c311は、モジュール判定部c322から入力された代替URIをリソース取得先URIとしてスクリプト取得部c112に出力する。表示制御部c111は、スクリプト取得部c112から入力されたWeb代替JSファイルb11、或いはローカル代替JSファイルf2、又は、(モジュール判定部c322からNULL値が入力された場合)スクリプト取得部c112から入力されたリソースURIのJavascritpファイルa13のリソースデータを用いて、JSプログラムの実行コードを生成する。表示制御部c311は、生成した実行コードを実行して、通信部c106から入力されたファイルのプログラムを実行する。表示制御部c311は、プログラムの実行結果の画像情報を表示部c105に出力する。
The display control unit c311 extracts the resource URI from the file input from the communication unit c106, and outputs the resource URI to the script acquisition unit c112. The display control unit c311 extracts the global object name from the resource data of the Javascript file a13 of the resource URI input from the script acquisition unit c112, and outputs the extracted global object name to the module determination unit c322.
The display control unit c311 outputs the alternative URI input from the module determination unit c322 to the script acquisition unit c112 as the resource acquisition destination URI. The display control unit c111 is input from the Web acquisition JS file b11 or the local replacement JS file f2 input from the script acquisition unit c112 or from the script acquisition unit c112 (when a NULL value is input from the module determination unit c322). An execution code of the JS program is generated using the resource data of the Javascript file a13 of the resource URI. The display control unit c311 executes the generated execution code to execute the file program input from the communication unit c106. The display control unit c311 outputs the image information of the execution result of the program to the display unit c105.

判定情報記憶部c321は、モジュール判定情報テーブル(図23)を記憶する。モジュール判定情報テーブルは、グローバルオブジェクト名、及び代替URIを対応付けたテーブルである。
モジュール判定部c322は、判定情報記憶部c321が記憶するモジュール判定情報テーブルの情報と、表示制御部c311から入力されたグローバルオブジェクト名に基づいて、代替URIがあるか否かを判定する。
代替URIがあると判定した場合、モジュール判定部c322は、代替URIを表示制御部c311に出力する。一方、代替URIがないと判定した場合、モジュール判定部c322は、NULL値を表示制御部c311に出力する。
The determination information storage unit c321 stores a module determination information table (FIG. 23). The module determination information table is a table in which a global object name and an alternative URI are associated with each other.
The module determination unit c322 determines whether there is an alternative URI based on the information in the module determination information table stored in the determination information storage unit c321 and the global object name input from the display control unit c311.
If it is determined that there is an alternative URI, the module determination unit c322 outputs the alternative URI to the display control unit c311. On the other hand, when determining that there is no alternative URI, the module determination unit c322 outputs a NULL value to the display control unit c311.

図21は、本実施形態に係るWebブラウザアプリケーションf3を表わすオブジェクト図である。この図のオブジェクト図は、UMLを用いて表わした図である。本実施形態に係るWebブラウザアプリケーションf3(図21)と第1の実施形態に係るWebブラウザアプリケーションf1(図5)とを比較すると、JSレンダラーオブジェクトo3222、及びAPI判定オブジェクトo323が異なる。しかし、他のオブジェクトは第1の実施形態と同じである。第1の実施形態と同じオブジェクトの説明は省略する。
なお、API判定オブジェクトo323は、図12のデータ判定部c212で実装され、ローダーオブジェクトo121及びスキーム別ローダーオブジェクトはスクリプト取得部c112で実装される。JSレンダラーオブジェクトo3222等のその他のオブジェクトは表示制御部c311で実装される。
FIG. 21 is an object diagram showing the Web browser application f3 according to this embodiment. The object diagram in this figure is a diagram expressed using UML. When the Web browser application f3 (FIG. 21) according to the present embodiment is compared with the Web browser application f1 (FIG. 5) according to the first embodiment, the JS renderer object o3222 and the API determination object o323 are different. However, other objects are the same as those in the first embodiment. The description of the same object as in the first embodiment is omitted.
The API determination object o323 is implemented by the data determination unit c212 in FIG. 12, and the loader object o121 and the scheme-specific loader object are implemented by the script acquisition unit c112. Other objects such as the JS renderer object o3222 are implemented by the display control unit c311.

JSレンダラーオブジェクトo3222は、JSファイルのJSプログラムから、グローバルオブジェクト値設定命令文を検出する。JSレンダラーオブジェクトo3222は、グローバルオブジェクト値設定命令文を検出した場合、検出したグローバルオブジェクト値設定命令文から、グローバルオブジェクト名を抽出してAPI判定オブジェクトo323に送付する。
API判定オブジェクトo323は、送付されたグローバルオブジェクト名に対する代替URIをJSレンダラーオブジェクトo3222に返却する。
JSレンダラーオブジェクトo3222は、API判定オブジェクトo323から返却された代替URIをローダーオブジェクトo121に送付する。JSレンダラーオブジェクトo3222は、ローダーオブジェクトo121から返却された代替URIのJSファイルのJSプログラムのプログラムコードを解析して実行コードを抽出し、抽出した実行コードが書き込まれたJSリソースオブジェクトo113を生成する。
The JS renderer object o 3222 detects a global object value setting command statement from the JS program of the JS file. When the JS renderer object o3222 detects the global object value setting instruction, the JS renderer object o3222 extracts the global object name from the detected global object value setting instruction and sends it to the API determination object o323.
The API determination object o323 returns the alternative URI for the sent global object name to the JS renderer object o3222.
The JS renderer object o3222 sends the alternative URI returned from the API determination object o323 to the loader object o121. The JS renderer object o3222 analyzes the program code of the JS program of the alternative URI JS file returned from the loader object o121, extracts the execution code, and generates the JS resource object o113 in which the extracted execution code is written.

図22は、本実施形態に係るWebブラウザアプリケーションf3の実行動作の一例を示すシーケンス図である。この図は、本実施形態に係るJSファイル処理を行う際のUMLにおけるシーケンス図である。図21と図6を比較すると、図21ではステップS111の処理がステップS511の処理に変更されている点、及び、ステップS511〜S519の処理が追加されている点が異なる。しかし、他の処理(ステップS101〜S110、S113〜S116の処理)は図6の処理と同じである。図6と同じ処理の説明は省略する。   FIG. 22 is a sequence diagram illustrating an example of an execution operation of the Web browser application f3 according to the present embodiment. This figure is a sequence diagram in UML when performing JS file processing according to the present embodiment. 21 is different from FIG. 21 in that the process in step S111 is changed to the process in step S511 and the processes in steps S511 to S519 are added. However, other processes (the processes in steps S101 to S110 and S113 to S116) are the same as the processes in FIG. Description of the same processing as in FIG. 6 is omitted.

(ステップS511)JSレンダラーオブジェクトo3222は、ステップS109で送付されたdata値を取得し、取得したdata値に対して命令文解析処理を行う。JSレンダラーオブジェクトo3222は、この命令文解析処理で、グローバルオブジェクト値設定命令文を検出した場合、ステップS512へ進む。
(ステップS512)JSレンダラーオブジェクトo3222は、ステップS511で検出したグローバルオブジェクト値設定命令文からグローバルオブジェクト名を抽出し、抽出したグローバルオブジェクト名を含む代替モジュール存在チェックメッセージを、API判定オブジェクトo323に送付する。その後、ステップS513へ進む。
(Step S511) The JS renderer object o3222 acquires the data value sent in step S109, and performs a statement analysis process on the acquired data value. If the JS renderer object o 3222 detects a global object value setting command in this command statement analysis process, the process proceeds to step S512.
(Step S512) The JS renderer object o3222 extracts a global object name from the global object value setting instruction detected in step S511, and sends an alternative module existence check message including the extracted global object name to the API determination object o323. . Thereafter, the process proceeds to step S513.

(ステップS513)API判定オブジェクトo323は、ステップS512で送付された代替モジュール存在チェックメッセージを取得し、取得した代替モジュール存在チェックメッセージのオブジェクト名に基づいて代替URIが存在するか否かを判定する。代替URIが存在すると判定した場合、API判定オブジェクトo323は、代替URIを読み出し、読み出した代替URIを代替モジュール存在チェックメッセージの返値として、JSレンダラーオブジェクトo3222に返却する。一方、ステップS313で代替URIが存在しないと判定した場合、API判定オブジェクトo323は、NULL値を代替モジュール存在チェックメッセージの返値としてJSレンダラーオブジェクトo3222に返却する。その後、ステップS514へ進む。 (Step S513) The API determination object o323 acquires the substitute module existence check message sent in step S512, and determines whether or not a substitute URI exists based on the object name of the obtained substitute module existence check message. When it is determined that the alternative URI exists, the API determination object o323 reads the alternative URI, and returns the read alternative URI to the JS renderer object o3222 as a return value of the alternative module existence check message. On the other hand, if it is determined in step S313 that no alternative URI exists, the API determination object o323 returns a NULL value to the JS renderer object o3222 as a return value of the alternative module presence check message. Thereafter, the process proceeds to step S514.

(ステップS514)JSレンダラーオブジェクトo3222は、ステップS513で返却された代替URIをリソース取得先URIとし、このリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。
リソース取得先URIとして、このリソース取得先URIを含むリソース取得メッセージを、ローダーオブジェクトo121に送付する。その後、ステップS515へ進む。一方、ステップS514でNUUL値が返却された場合は、ステップS518へ進む。
(ステップS515)ローダーオブジェクトo121は、ステップ514で送付されたリソース取得メッセージを取得し、取得したリソース取得メッセージのリソース取得先URIに基づいてスキームを判定する。ローダーオブジェクトo121は、判定したスキームのスキーム別ローダーオブジェクト(fileローダーオブジェクトo1212)に対して、リソース取得先URIを含むデータ取得メッセージを送付する。その後、ステップS516へ進む。
(Step S514) The JS renderer object o3222 uses the alternative URI returned in step S513 as the resource acquisition destination URI, and sends a resource acquisition message including this resource acquisition destination URI to the loader object o121.
As a resource acquisition destination URI, a resource acquisition message including this resource acquisition destination URI is sent to the loader object o121. Thereafter, the process proceeds to step S515. On the other hand, if a NULL value is returned in step S514, the process proceeds to step S518.
(Step S515) The loader object o121 acquires the resource acquisition message sent in step 514, and determines the scheme based on the resource acquisition destination URI of the acquired resource acquisition message. The loader object o121 sends a data acquisition message including the resource acquisition destination URI to the scheme-specific loader object (file loader object o1212) of the determined scheme. Thereafter, the process proceeds to step S516.

(ステップS516)fileローダーオブジェクトo1212は、ステップS515で送付されたデータ取得メッセージを取得し、取得したデータ取得メッセージのリソース取得先URIからリソースデータを取得する。なお、このリソースデータは、代替JSファイルのリソースデータである。fileローダーオブジェクトo1212は、取得したリソースデータをデータ取得メッセージの返値としてローダーオブジェクトo121に返却する。その後、ステップS517へ進む。
(ステップS517)リソースデータをローダーオブジェクトo121は、ステップS516で返却されたリソースデータを、リソース取得メッセージの返値としてdata判定オブジェクトo223に返却する。その後、ステップS518へ進む。
(Step S516) The file loader object o1212 acquires the data acquisition message sent in step S515, and acquires resource data from the resource acquisition destination URI of the acquired data acquisition message. This resource data is the resource data of the alternative JS file. The file loader object o1212 returns the acquired resource data to the loader object o121 as a return value of the data acquisition message. Thereafter, the process proceeds to step S517.
(Step S517) The loader object o121 returns the resource data to the data determination object o223 as the return value of the resource acquisition message. Thereafter, the process proceeds to step S518.

(ステップS518)JSレンダラーオブジェクトo3222は、実行コードに用いる予定たったdata値であってステップS109で送付されたdata値を破棄し、代わりに、ステップS517で返却されたリソースデータのdata値を取得する。JSレンダラーオブジェクトo3222は、取得したdata値に対して命令文解析処理を行う。一方、ステップS514でNUUL値が返却された場合は、JSレンダラーオブジェクトo3222は、ステップS109で送付されたdata値に対して命令文解析処理を行う。その後、ステップS519へ進む。
(ステップS519)JSレンダラーオブジェクトo3222は、ステップS511での命令文解析処理の結果、JSプログラムの実行コードを生成し、生成した実行コードを生成したJSリソースオブジェクトo113に書き込む。その後、ステップS113へ進む。
なお、JSレンダラーオブジェクトo3222及びAPI判定オブジェクトo323が行うステップS511〜S319の処理が代替モジュール処理である。
(Step S518) The JS renderer object o3222 discards the data value that was scheduled to be used for the execution code and was sent in Step S109, and instead obtains the data value of the resource data returned in Step S517. . The JS renderer object o3222 performs a command statement analysis process on the acquired data value. On the other hand, if a NULL value is returned in step S514, the JS renderer object o3222 performs a command statement analysis process on the data value sent in step S109. Thereafter, the process proceeds to step S519.
(Step S519) The JS renderer object o3222 generates an execution code of the JS program as a result of the statement analysis processing in step S511, and writes the generated execution code in the generated JS resource object o113. Thereafter, the process proceeds to step S113.
Note that the processing of steps S511 to S319 performed by the JS renderer object o3222 and the API determination object o323 is alternative module processing.

以下、代替モジュール処理の詳細について説明をする。
図23は、本実施形態に係るモジュール判定情報テーブルの一例を示す概略図である。図示するようにモジュール判定情報テーブルルは、グローバルオブジェクト名及び代替URIの各項目の列を有している。モジュール判定情報テーブルは、行毎にデータ判定情報が格納される行と列からなる2次元の表形式のデータである。
例えば、図23の1行目のデータ判定情報は、符号3001を付したグローバルオブジェクト名「jQuery」に対する代替URIとして、符号3101を付した「file://script/jquery−1.3.2.min.js」が対応付けられていることを示す。
Details of the alternative module processing will be described below.
FIG. 23 is a schematic diagram illustrating an example of a module determination information table according to the present embodiment. As shown in the figure, the module determination information table has columns of items of a global object name and an alternative URI. The module determination information table is two-dimensional tabular data composed of rows and columns in which data determination information is stored for each row.
For example, the data determination information on the first line in FIG. 23 includes “file: //script/jquery-1.3.2.2” attached with reference numeral 3101 as an alternative URI for the global object name “jQuery” attached with reference numeral 3001. min.js ”is associated.

図24は、本実施形態に係る代替モジュール処理の一例を示すフローチャートである。
(ステップS611)図20のモジュール判定部c322(API判定オブジェクトo323)は、取得した代替モジュール存在チェックメッセージのグローバルオブジェクト名(チェック対象テキストデータ)を文字列として文字列変数NAMEに代入する。その後、ステップS612へ進む。
(ステップS612)モジュール判定部c322は、整数変数Nに「1」を代入する。また、この変数Nは配列M及び配列Rの添え字として用いられる。また、モジュール判定部c322は、判定情報記憶部c321が記憶するモジュール判定情報テーブル(図23)でのn行目のグローバルオブジェクト名を配列Mのn番目の要素に代入する。また、モジュール判定部c322は、判定情報記憶部c321が記憶するモジュール判定情報テーブルでのn行目の代替URIを配列Rのn番目の要素に代入する。その後、ステップS613へ進む。
FIG. 24 is a flowchart illustrating an example of alternative module processing according to the present embodiment.
(Step S611) The module determination unit c322 (API determination object o323) of FIG. 20 substitutes the global object name (check target text data) of the obtained alternative module existence check message as a character string into the character string variable NAME. Thereafter, the process proceeds to step S612.
(Step S612) The module determining unit c322 substitutes “1” for the integer variable N. The variable N is used as a subscript for the arrays M and R. Further, the module determination unit c322 substitutes the global object name of the nth row in the module determination information table (FIG. 23) stored in the determination information storage unit c321 into the nth element of the array M. Further, the module determination unit c322 substitutes the alternative URI of the nth row in the module determination information table stored in the determination information storage unit c321 into the nth element of the array R. Thereafter, the process proceeds to step S613.

(ステップS613)モジュール判定部c322は、配列MのN番目の内容の文字列と変数NAMEの文字列を比較する。この比較は、配列MのN番目の要素である文字列と変数NAMEの文字列とが完全一致しているか否かを比較する。その後、ステップS614へ進む。
(ステップS614)モジュール判定部c322は、ステップS613の比較の結果、文字列が完全に一致したか否かを判定する。判定の結果、文字列が完全に一致したと判定した場合、ステップS619へ進む。一方、文字列が完全に一致しないと判定した場合、ステップS615へ進む。
(ステップS615)モジュール判定部c322は、変数Nの値を1増やす。その後、ステップS616へ進む。
(Step S613) The module determination unit c322 compares the character string of the Nth content in the array M with the character string of the variable NAME. This comparison compares whether or not the character string that is the Nth element of the array M and the character string of the variable NAME are completely identical. Thereafter, the process proceeds to step S614.
(Step S614) The module determination unit c322 determines whether or not the character strings completely match as a result of the comparison in step S613. As a result of the determination, if it is determined that the character strings completely match, the process proceeds to step S619. On the other hand, if it is determined that the character strings do not match completely, the process proceeds to step S615.
(Step S615) The module determination unit c322 increases the value of the variable N by one. Thereafter, the process proceeds to step S616.

(ステップS616)モジュール判定部c322は、変数Nの値が配列Mの要素数を超えたか否かを判定する。判定の結果、変数Nの値が配列Mの要素数を超えたと判定した場合(はい)は、配列Mの全ての要素について比較が完了しているので、ステップS617へ進む。一方、変数Nの値が配列Mの要素数を超えていないと判定した場合(いいえ)は、配列Mに比較する要素がまだ残っているので、ステップS613へ戻る。
(ステップS617)モジュール判定部c322は、NULL値を代替データ存在チェックメッセージの返値(リソースビルダーオブジェクトo22への返値)に設定する。その後、ステップS618へ進む。
(ステップS618)表示制御部c311は、グローバルオブジェクト名を含むグローバルオブジェクト値設定命令文に従い、元のJSファイルを用いて実行コードを生成する。その後、動作を終了する。
(Step S616) The module determination unit c322 determines whether or not the value of the variable N exceeds the number of elements in the array M. As a result of the determination, if it is determined that the value of the variable N has exceeded the number of elements of the array M (Yes), the comparison has been completed for all the elements of the array M, and the process proceeds to step S617. On the other hand, if it is determined that the value of the variable N does not exceed the number of elements of the array M (No), there are still elements to be compared with the array M, and the process returns to step S613.
(Step S617) The module determination unit c322 sets the NULL value to the return value of the alternative data existence check message (return value to the resource builder object o22). Thereafter, the process proceeds to step S618.
(Step S618) The display control unit c311 generates an execution code using the original JS file in accordance with the global object value setting command statement including the global object name. Thereafter, the operation is terminated.

(ステップS619)モジュール判定部c322は、配列RのN番目の内容を、つまり、配列RのN番目の要素である代替URIの文字列(図8でのN行目の代替URI)を、表示制御部c311に出力する。その後、ステップS620へ進む。
(ステップS620)表示制御部c311は、スクリプト取得部c112を介して、ステップS618で出力された代替URIから代替JSファイルを取得する。その後、ステップS621へ進む。
(ステップS621)表示制御部c311(JSレンダラーオブジェクトo3222)は、ステップS620で取得した代替JSファイルを用いて実行コードを生成する。その後、動作を終了する。
(Step S619) The module determination unit c322 displays the Nth content of the array R, that is, the character string of the alternative URI that is the Nth element of the array R (the alternative URI of the Nth row in FIG. 8). It outputs to the control part c311. Thereafter, the process proceeds to step S620.
(Step S620) The display control unit c311 acquires an alternative JS file from the alternative URI output in step S618 via the script acquisition unit c112. Thereafter, the process proceeds to step S621.
(Step S621) The display control unit c311 (JS renderer object o3222) generates an execution code using the alternative JS file acquired in step S620. Thereafter, the operation is terminated.

このように、本実施形態によれば、Webブラウザ端末C3は、プログラム内に記載された代入文に用いられるグローバル変数名に基づいて、JSファイルを他の代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。これにより、情報処理装置に応じた動作をするアプリケーションを提供することができる。   As described above, according to the present embodiment, the Web browser terminal C3 replaces the JS file with another alternative JS file based on the global variable name used in the assignment statement described in the program, and replaces the replaced JS file. Run the file's JS program. Thereby, an application that operates in accordance with the information processing apparatus can be provided.

なお、上記第3の実施形態において、代替JSファイルのAPIとして使用しているグローバルオブジェクト名が複数ある場合は、それら全てのグローバルオブジェクト名が含まれているかを判定することで、代替する対象かどうかの判別を行ってもよい。例えば、prototype.jsであれば使用するグローバルオブジェクト名として「Prototype」以外にも、「PeriodicalExecuter」、「Template」、「Abstract」、「Enumerable」、「Ajax」、「Hash」等が利用されている。これら全てがリソースURIのJSファイルに含まれている場合にprototype.jsであると判定し、このファイルに対応付けた代替URIから代替JSファイルを取得して置き換えることで、1つのグローバルオブジェクト名でprototype.jsであると判定する場合と比較して、判定する際の誤り発生を防ぐことができる。   In the third embodiment, when there are a plurality of global object names used as the API of the alternative JS file, it is determined whether all the global object names are included. It may be determined whether or not. For example, prototype. In addition to “Prototype”, “PeriodicExtractor”, “Template”, “Abstract”, “Enumerable”, “Ajax”, “Hash”, and the like are used as global object names to be used for js. If all of these are included in the resource URI JS file, prototype. js is obtained, and the alternative JS file is obtained from the alternative URI associated with this file and replaced with one global object name. As compared with the case where it is determined that js, it is possible to prevent occurrence of an error when determining.

<変形例4>
以下、本実施形態の変形例について説明をする。
本実施形態では、モジュール判定部c322がグローバルオブジェクト名に基づいて代替モジュール処理を行う場合について説明をした。しかし、本発明はこれに限らず、関数オブジェクトに基づいて代替モジュール処理を行ってもよい。
<Modification 4>
Hereinafter, modifications of the present embodiment will be described.
In the present embodiment, the case where the module determination unit c322 performs alternative module processing based on the global object name has been described. However, the present invention is not limited to this, and alternative module processing may be performed based on a function object.

以下、モジュールに関係するJacascript言語の機能について説明をする。
まず、Jacascript言語の関数オブジェクトには、関数スコープ機能がある。スコープとは、ある変数や関数が特定の名称で参照される範囲のことである。この機能により、関数内部で定義された変数やパラメータについては、関数外部からアクセスすることができない。この機能を利用してJSライブラリ固有の処理を関数内部にカプセル化し、それ以外の処理との間で変数名や関数名の衝突を避けている。
次に、Jacascript言語の関数オブジェクトには、クロージャ機能がある。クロージャはプログラム内で環境を共有するための仕組みである。この機能により、JSライブラリに相当する関数Aの内部で別の関数Bを定義した場合、関数Bを実行する際には関数Aの内部にある変数やパラメータへアクセスすることができる。さらに、関数Bは関数Aの外部で実行することもでき、その場合も関数Aの内部にある変数やパラメータへアクセスできる。これを利用してJSライブラリ内部の処理をJSライブラリの外部から呼出すことができる。
Hereinafter, functions of the JavaScript language related to the module will be described.
First, the function object of the JavaScript language has a function scope function. A scope is a range in which a certain variable or function is referred to by a specific name. With this function, variables and parameters defined inside the function cannot be accessed from outside the function. By utilizing this function, processing unique to the JS library is encapsulated inside the function, and collision of variable names and function names with other processing is avoided.
Next, the function object of the JavaScript language has a closure function. Closures are a mechanism for sharing an environment within a program. With this function, when another function B is defined inside the function A corresponding to the JS library, when the function B is executed, the variables and parameters inside the function A can be accessed. Further, the function B can be executed outside the function A, and in this case, the variables and parameters inside the function A can be accessed. By utilizing this, processing inside the JS library can be called from outside the JS library.

この機能を用いると、JSライブラリに相当する関数A(ライブラリAという)の内部でグローバルオブジェクトに関数オブジェクトである関数B(関数オブジェクトBという)を代入した場合に、ライブラリAの外部からグローバルオブジェクトを介して関数Bを呼出すことができる。
このようにした場合、Jacascript言語によるライブラリAを作成した場合、ライブラリAは名称を持つ必要が無い。そのためライブラリAを無名関数とすることができる。また、この場合、ライブラリAを定義した後に実行することで内部の関数Bが定義されるため、ライブラリAを、その関数定義と同時に実行することもできる。さらに、この場合、関数オブジェクトBを代入するグローバルオブジェクトとして、JSライブラリ固有のグローバル変数を指定せず、関数内部のパラメータ「this」にセットされているグローバルオブジェクトに対して、JSライブラリ固有のメソッドとして設定することもできる。
When this function is used, when a function B (referred to as a function object B), which is a function object, is assigned to a global object inside a function A (referred to as a library A) corresponding to the JS library, the global object is transferred from outside the library A. Function B can be called via
In this case, when the library A is created in the Javascript language, the library A does not need to have a name. Therefore, library A can be an anonymous function. In this case, since the internal function B is defined by executing after defining the library A, the library A can be executed simultaneously with the function definition. Furthermore, in this case, as a global object to which the function object B is assigned, a global variable unique to the JS library is not specified, and a global object set in the parameter “this” inside the function is used as a method unique to the JS library. It can also be set.

以上より、上述の場合において、Jacascript言語における記述は、例えば、「(function(){ var this.api = function(){ 〜 }; 〜 })();」と記述される。外側のfunction式(前から1番目の「function」)が上述の関数A(無名関数)に相当し、内側のfunction式(前から2番目の「function」)が上述の関数Bに相当する。例えば、実際のJSライブラリであるjquery.jsの場合も、この形式となっている。
また、関数オブジェクトBを代入している「var文」は、関数Aの定義内容の冒頭部分に位置する。関数オブジェクトB内の処理を行う「命令文」は、「var文」の後に位置する。
As described above, in the above-described case, the description in the Javascript language is described as, for example, “(function () {var this.api = function () {˜}; ˜}) ();”. The outer function expression (first “function” from the front) corresponds to the above-described function A (anonymous function), and the inner function expression (second “function” from the front) corresponds to the above-described function B. For example, the actual JS library jquery. This is also the case for js.
Also, the “var statement” to which the function object B is assigned is located at the beginning of the definition content of the function A. The “command statement” that performs processing in the function object B is positioned after the “var statement”.

本変形例4では、Webブラウザ端末C3は、グローバルオブジェクト名に代えて、「var文」で代入対象となっている変数名(上記の例では「this.api」)に基づいて代替モジュール処理を行う。
具体的に、この場合、表示制御部c311は、スクリプト取得部c112から入力されたリソースURIのJavascritpファイルa13のリソースデータから「無名関数を用いたfunction式」(「(function(){」と「})();」の組み合わせの文字列)を選択する。表示制御部c311は、選択した無名関数の定義内容の冒頭部分で「var文」で代入対象となっている変数名を抽出し(「(function(){」と「})();」との間で、先頭の「var」から「=」までの文字列)、抽出した変数名をモジュール判定部c322に出力する。
モジュール判定部c322は、判定情報記憶部c321が記憶するモジュール判定情報テーブルの情報(変数名及び代替URIの対応情報)と、表示制御部c311から入力された変数名に基づいて、代替URIがあるか否かを判定する。
In the fourth modification, the Web browser terminal C3 performs the substitute module process based on the variable name (“this.api” in the above example) that is the assignment target in the “var statement” instead of the global object name. Do.
Specifically, in this case, the display control unit c311 determines “function expression using anonymous function” (“(function () {” and “function () {”) from the resource data of the Javascript file a13 of the resource URI input from the script acquisition unit c112. }) (); “Character string in combination”. The display control unit c311 extracts the variable name to be substituted by the “var statement” at the beginning of the definition of the selected anonymous function (“(function () {” and “}) ();” And the extracted variable name is output to the module determination unit c322.
The module determination unit c322 has an alternative URI based on information in the module determination information table stored in the determination information storage unit c321 (corresponding information between variable names and alternative URIs) and the variable name input from the display control unit c311. It is determined whether or not.

このように、本変形例4によれば、Webブラウザ端末C3は、プログラム内に記載された定義文に用いられる変数名に基づいて、JSファイルを他の代替JSファイルに置き換え、置き換えた代替JSファイルのJSプログラムを実行する。具体的には、変数名を調べる範囲を「無名関数を用いたfunction式」の「関数の定義内容」の冒頭部部分に並ぶ「var文」に限定することで、Javascript言語におけるモジュールを用いている場合にのみ、代替する対象かどうかの判断を行っている。そのため、偶然、Javascript言語における「関数オブジェクト」の内部で、著名なJSライブラリと同一の変数名のセットを使用していても、判定を誤ることを防止することができる。   As described above, according to the fourth modification, the web browser terminal C3 replaces the JS file with another alternative JS file based on the variable name used in the definition statement described in the program, and replaces the replaced JS file. Run the file's JS program. Specifically, by limiting the range for examining variable names to “var statements” arranged at the beginning of “function definition contents” of “function expressions using anonymous functions”, modules in the Javascript language are used. Only when it is, it is judged whether or not it is a target for substitution. Therefore, it is possible to prevent erroneous determination even if the same variable name set as that of a well-known JS library is used by chance inside the “function object” in the Javascript language.

なお、上記各実施形態において、URI判定情報テーブル、データ判定情報テーブル、及びモジュール判定情報テーブルは、Webブラウザ端末C1〜C3の製造時に記憶されてもよいし、ソフトウエアのインストール時に記憶されてもよい。また、Webブラウザ端末C1〜C3がネットワークを介して新しいURI判定情報テーブル、データ判定情報テーブル、及びモジュール判定情報テーブルをダウンロードし、更新してもよい。これにより、これらのテーブルも更新することができ、代替JSファイルの変更にも柔軟に対応することができる。
また、上記各実施形態において、URI判定情報テーブル、データ判定情報テーブル、モジュール判定情報テーブルが、それぞれ、リソースURI及び代替URI、データファイル名(或いは変換データ)及び代替URI、グローバルオブジェクト名及びURIを対応付けて記憶している場合について説明をしたが、それぞれの項目を別のファイルに記憶してもよい(例えば、リソースURIを記憶するファイルと代替URIを記憶するファイル)。この場合は、例えば、ファイル内の情報の対応付けを順序によって対応付け、それぞれ配列に代入する(例えば、一方のファイルで図8のURI1001を1番目、URI1004を4番目の順に記憶し、もう一方のファイルでURI1101を1番目、URI1104を4番目に記憶する)。また、上記第2の実施形態において、データ判定情報テーブルでデータファイル名を記憶し、そのデータファイル名のデータファイルを配列Fに代入したが、データ判定情報テーブルで、データファイル名に代えて、データファイルの内容を記憶してもよい。この場合、データファイルの内容を直接配列Fに代入する。
In each of the above embodiments, the URI determination information table, the data determination information table, and the module determination information table may be stored when the Web browser terminals C1 to C3 are manufactured, or may be stored when the software is installed. Good. Further, the web browser terminals C1 to C3 may download and update a new URI determination information table, data determination information table, and module determination information table via the network. As a result, these tables can also be updated, and the change of the alternative JS file can be flexibly handled.
In each of the above embodiments, the URI determination information table, the data determination information table, and the module determination information table include a resource URI and an alternative URI, a data file name (or conversion data) and an alternative URI, a global object name and a URI, respectively. Although the case where they are stored in association with each other has been described, each item may be stored in a separate file (for example, a file storing a resource URI and a file storing an alternative URI). In this case, for example, the correspondence of the information in the file is associated in order and assigned to the array (for example, in one file, the URI 1001 in FIG. 8 is stored in the first order, the URI 1004 is stored in the fourth order, and the other In this file, the URI 1101 is stored first and the URI 1104 is stored fourth). In the second embodiment, the data file name is stored in the data determination information table, and the data file with the data file name is substituted into the array F. In the data determination information table, instead of the data file name, The contents of the data file may be stored. In this case, the contents of the data file are directly assigned to the array F.

また、上記各実施形態において、Webブラウザ端末C1〜C3は、Web代替JSファイルを取得するため代替URIにアクセスする際、Webブラウザ端末C1、C2、C3やWebブラウザアプリケーションf1〜f3固有の情報(固有情報という)、例えば、機種情報やWebブラウザのバージョン等をWebサーバB1に送信してもよい。この場合、WebサーバB1は、受信した固有情報に応じて異なるWeb代替JSファイルを、Webブラウザ端末C1〜C3に提供してもよい。   In each of the above embodiments, when the Web browser terminals C1 to C3 access the alternative URI in order to acquire the Web alternative JS file, the information ( For example, model information, web browser version, and the like may be transmitted to the web server B1. In this case, the Web server B1 may provide Web browser terminals C1 to C3 with different Web alternative JS files according to the received unique information.

この場合、具体的には、以下のような処理を行う。
例えば、Webブラウザ端末C1〜C3がWebサーバB1に、httpプロトコルを用いてアクセスする場合、User−Agentリクエストヘッダフィールドに固有情報を含めればよい。このUser−Agentリクエストヘッダフィールドは、リクエストを生成したユーザエージェントについての情報を含むものである。このフィールドは、統計目的、プロトコル違反の追跡、特定のユーザエージェントの制限を回避するようなレスポンスを作成するためのユーザエージェントの自動認識のために利用される。このフィールドには、複数の製品トークンや、エージェントやユーザエージェントの重要な付属製品を識別するためのコメントを含める事ができ、慣習によれば、製品トークンはアプリケーションを識別するために重要な順に列挙される。
また、例えば、Webブラウザ端末C1〜C3は、任意のユーザ拡張ヘッダフィールドを用いて固有情報を送信してもよい。具体的には、「X−ProductID」のように「X−」で始まるフィールド名はhttpの仕様書で定義される事は無く、常にユーザ定義ヘッダとして使用できるので、このようなフィールド名のフィールドを用いて固有情報を送信すればよい。
また、例えば、Webブラウザ端末C1〜C3は、問合せ構成要素(query部分)を代替URIに追加し、代替URIの一部として固有情報を送信してもよい。具体的には、代替URIが「http://XXX・・・.com/example.js」である場合、このURIにquery部分「ProductID=model10」(model10が固有情報)を追加した代替URI「http://XXX・・・.com/example.js?ProductID=model10」を用いてアクセスしてもよい。
In this case, specifically, the following processing is performed.
For example, when the Web browser terminals C1 to C3 access the Web server B1 using the http protocol, unique information may be included in the User-Agent request header field. This User-Agent request header field contains information about the user agent that generated the request. This field is used for statistical purposes, tracking protocol violations, and auto-recognizing user agents to create responses that avoid the limitations of specific user agents. This field can contain multiple product tokens and comments to identify important accessory products for agents and user agents, and by convention, product tokens are listed in order of importance to identify the application. Is done.
Further, for example, the Web browser terminals C1 to C3 may transmit the unique information using an arbitrary user extension header field. Specifically, field names beginning with “X-”, such as “X-ProductID”, are not defined in the http specifications and can always be used as user-defined headers. The unique information may be transmitted using.
Further, for example, the Web browser terminals C1 to C3 may add the inquiry component (query part) to the alternative URI and transmit the unique information as a part of the alternative URI. Specifically, when the alternative URI is “http: //XXX....com/example.js”, an alternative URI “modelID = model10” (model 10 is unique information) is added to this URI. http: //XXX....com/example.js? ProductID = model10 ”may be used.

以上のように、Webブラウザ端末C1〜C3は固有情報を送信し、WebサーバB1は、受信した固有情報に応じて異なるWeb代替JSファイルをWebブラウザ端末C1〜C3に提供する。これにより、例えば複数機種のWebブラウザ端末C1〜C3に対して当初は同一の代替JSファイルを同一の代替URIで提供していたが、その後、機種毎に別の代替JSファイルを提供するように変更する事態が発生した場合でも、Webブラウザ端末C1〜C3はそのまま同一の代替URIにアクセスしても、機種に応じた代替JSファイルを取得することができる。すなわち、Webブラウザ端末C1〜C3では、機種毎の代替URIに変更を行わなくてもよく、機種毎の保守の手間を軽減できる。   As described above, the Web browser terminals C1 to C3 transmit unique information, and the Web server B1 provides different Web alternative JS files to the Web browser terminals C1 to C3 according to the received unique information. As a result, for example, the same alternative JS file was initially provided to the multiple types of Web browser terminals C1 to C3 with the same alternative URI, but thereafter, another alternative JS file is provided for each model. Even when a change occurs, the Web browser terminals C1 to C3 can acquire the alternative JS file corresponding to the model even if they access the same alternative URI as it is. That is, in the Web browser terminals C1 to C3, it is not necessary to change the alternative URI for each model, and the maintenance effort for each model can be reduced.

また、上記各実施形態において、Webブラウザ端末C1〜C3の構成を組み合わせてもよい。例えば、Webブラウザ端末C1に表示制御部c211及び代替判定部c22を加えてもよいし、Webブラウザ端末C1に表示制御部c311及び代替判定部c32を加えてもよいし、その両方を加えてもよい。また、Webブラウザ端末C2に
表示制御部c311及び代替判定部c32を加えてもよい。
Moreover, in each said embodiment, you may combine the structure of Web browser terminal C1-C3. For example, the display control unit c211 and the substitution determination unit c22 may be added to the Web browser terminal C1, or the display control unit c311 and the substitution determination unit c32 may be added to the Web browser terminal C1, or both of them may be added. Good. Further, a display control unit c311 and an alternative determination unit c32 may be added to the web browser terminal C2.

この場合、表示制御部c111及び代替判定部c12の処理(代替URI処理)、表示制御部c211及び代替判定部c22の処理(代替データ処理)、表示制御部c311及び代替判定部c32の処理(代替モジュール処理)、の順に処理をすることが好ましい。
なお、代替URI処理及び代替データ処理で判定対象となるJSファイル(リソースURIのJSファイル)と、代替モジュール処理で判定対象となるJSファイルを異なる種類のJSファイルとしてもよい。具体的には、URI判定情報テーブル及びデータ判定情報テーブルには「prototype−1.6.0.3.js」のURI、ファイルデータを含めず、モジュール判定情報テーブルのみに「prototype−1.6.0.3.js」のオブジェクト名(「Prototype」)を含ませる。これにより、既に代替URI処理で取得した代替JSファイルに対して、代替モジュール処理を行うことを防止うることができる。
In this case, processing of the display control unit c111 and the substitution determination unit c12 (substitution URI processing), processing of the display control unit c211 and substitution judgment unit c22 (substitution data processing), processing of the display control unit c311 and substitution judgment unit c32 (substitution) It is preferable to perform processing in the order of module processing).
Note that the JS file to be determined in the alternative URI process and the alternative data process (JS file of the resource URI) and the JS file to be determined in the alternative module process may be different types of JS files. Specifically, the URI determination information table and the data determination information table do not include the URI and file data of “prototype-1.6.0.3.js”, but only the “prototype-1.6” in the module determination information table. .0.3.js ”object name (“ Prototype ”). As a result, it is possible to prevent the substitute module process from being performed on the substitute JS file that has already been obtained by the substitute URI process.

また、上記各実施形態において、代替JSファイルにおいて、その実行処理でJavascript言語を用いて実行する代わりに、Webブラウザ端末C1〜C3が内蔵し直接実行可能なバイナリコードで実行してもよい。
これは元のJSファイルの動作と代替したバイナリコードの動作が同じ場合に実施する。これは例えば、元のJSファイルの動作が動的に変化するものではない場合である。
この場合、「js−ctypes」拡張を用いて代替したバイナリコードの呼び出しを行う。「js−ctypes」拡張では、予めJavascript実行部を拡張し、オブジェクト「ctypes」の処理を組み込んでおく。このオブジェクトはメソッド「name」をもち、「ctypes.name(〜)」の形式で引数として呼出したいバイナリコードを含む動的ライブラリのファイル名を指定する。このメソッドの実行結果として、ライブラリオブジェクト(「lib」という)が得られる。このライブラリオブジェクトlibはメソッド「declare」を持ち、「lib.declare(〜)」の形式で引数として呼出したいバイナリコードのライブラリに含まれる関数名を指定する。このメソッドの実行結果として、Javascript言語における関数オブジェクトが得られる。
そして、このJavascript言語における関数オブジェクトをJSプログラム内で呼出すことで、呼出したいバイナリコードを含む動的ライブラリ内の指定の関数が呼出される。このように、取得した代替JSファイル内でこの「js−ctypes」拡張を用いてWebブラウザ端末が内蔵し直接実行可能なバイナリコードを実行する。これにより、JSファイルを代替JSファイルに置き換えるだけでなく、実行に際してもJavascript言語による実行よりも効率的な内蔵するバイナリコードによる実行が行える。
In each of the above embodiments, instead of executing using the JavaScript language in the execution process in the alternative JS file, the Web browser terminals C1 to C3 may be executed in binary code that can be directly executed.
This is performed when the operation of the binary code instead of the operation of the original JS file is the same. This is the case, for example, when the operation of the original JS file does not change dynamically.
In this case, an alternative binary code is called using the “js-ctypes” extension. In the “js-ctypes” extension, the Javascript execution unit is expanded in advance to incorporate the process of the object “ctypes”. This object has a method “name” and designates a file name of a dynamic library including a binary code to be called as an argument in the format “ctypes.name (˜)”. As a result of executing this method, a library object (referred to as “lib”) is obtained. This library object lib has a method “declare”, and designates a function name included in a binary code library to be called as an argument in the format “lib.declare (˜)”. As a result of executing this method, a function object in Javascript language is obtained.
Then, by calling a function object in the Javascript language in the JS program, a specified function in the dynamic library including the binary code to be called is called. As described above, the binary code that can be directly executed by the Web browser terminal is executed by using the “js-ctypes” extension in the obtained alternative JS file. As a result, not only the JS file can be replaced with the alternative JS file, but also the execution can be executed by the built-in binary code more efficiently than the execution by the JavaScript language.

なお、上述した実施形態におけるWebブラウザ端末C1、C2、C3の一部、例えば、通信部c106、表示制御部c111、スクリプト取得部c112、URI判定部c122、データ判定部c222、及びモジュール判定部c322をコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、Webブラウザ端末C1、C2、C3に内蔵されたコンピュータシステムであって、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。   Note that some of the web browser terminals C1, C2, and C3 in the above-described embodiment, for example, the communication unit c106, the display control unit c111, the script acquisition unit c112, the URI determination unit c122, the data determination unit c222, and the module determination unit c322. May be realized by a computer. In that case, a program for realizing this control function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed. Here, the “computer system” is a computer system built in the Web browser terminals C1, C2, and C3, and includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, and a CD-ROM, and a storage device such as a hard disk built in the computer system. Further, the “computer-readable recording medium” is a medium that dynamically holds a program for a short time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line, In such a case, a volatile memory inside a computer system serving as a server or a client may be included and a program that holds a program for a certain period of time. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。   As described above, the embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to the above, and various design changes and the like can be made without departing from the scope of the present invention. It is possible to

A1・・・Webサーバ、B1・・・Webサーバ、C1、C2、C3・・・Webブラウザ端末(情報処理装置)、c104・・・入力部、c106・・・通信部、c111・・・表示制御部(制御部)、c105・・・表示部、c112・・・スクリプト取得部(取得部)、c103・・・外部記憶部、c12、c22、c32・・・代替判定部、c121、c221、c321・・・判定情報記憶部、c122・・・URI判定部(取得先抽出部)、c222・・・データ判定部(取得先抽出部)、c322・・・モジュール判定部(取得先抽出部)、o101・・・ブラウザオブジェクト、o111・・・画面リソースオブジェクト、o112・・・htmlリソースオブジェクト、o113・・・Javascriptリソースオブジェクト、o12、o22・・・リソースビルダーオブジェクト、o121・・・ローダーオブジェクト、o1211・・・httpローダーオブジェクト、o1212・・・fileローダーオブジェクト、o122・・・レンダラーオブジェクト、o1221・・・htmlレンダラーオブジェクト、o1222、o3222・・・Javascriptレンダラーオブジェクト、o123・・・URI判定オブジェクト、o223・・・data判定オブジェクト、o323・・・API判定オブジェクト   A1 ... Web server, B1 ... Web server, C1, C2, C3 ... Web browser terminal (information processing apparatus), c104 ... input unit, c106 ... communication unit, c111 ... display Control unit (control unit), c105 ... display unit, c112 ... script acquisition unit (acquisition unit), c103 ... external storage unit, c12, c22, c32 ... substitution determination unit, c121, c221, c321... determination information storage unit, c122... URI determination unit (acquisition source extraction unit), c222... data determination unit (acquisition source extraction unit), c322. , O101 ... browser object, o111 ... screen resource object, o112 ... html resource object, o113 ... Javascript resource object O12, o22 ... resource builder object, o121 ... loader object, o1211 ... http loader object, o1212 ... file loader object, o122 ... renderer object, o1221 ... html renderer object, o1222, o3222 ... Javascript renderer object, o123 ... URI determination object, o223 ... data determination object, o323 ... API determination object

Claims (22)

動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置おいて、
実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行することを特徴とする情報処理装置。
In an information processing apparatus that executes a script language program that describes operation processing,
An information processing apparatus characterized by replacing the program with another alternative program based on the identification information of the program to be executed, and executing the replaced alternative program.
前記プログラムの識別情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、
実行予定の前記プログラムの識別情報と前記判定情報とに基づいて、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、
前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、
前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、
を備えることを特徴とする請求項1に記載の情報処理装置。
A determination information storage unit that stores determination information in which the identification information of the program is associated with the acquisition source of the alternative program;
Based on the identification information of the program scheduled to be executed and the determination information, an acquisition destination extraction unit that extracts an acquisition source of an alternative program of the program scheduled to be executed;
An acquisition unit for acquiring the alternative program from the acquisition source extracted by the acquisition source extraction unit;
Instead of the program to be executed, a control unit that executes the alternative program acquired by the acquisition unit;
The information processing apparatus according to claim 1, further comprising:
前記代替プログラムは、情報処理装置の情報処理能力に応じたプログラムであることを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the alternative program is a program according to an information processing capability of the information processing apparatus. 前記代替プログラムは、情報処理装置の種類に応じたプログラムであることを特徴とする請求項3に記載の情報処理装置。   The information processing apparatus according to claim 3, wherein the alternative program is a program according to a type of the information processing apparatus. 前記情報処理装置は、プログラムを実行して画像を表示する表示装置であり、
前記代替プログラムは、情報処理装置の動画の再生能力に応じたプログラムであることを特徴とする請求項3に記載の情報処理装置。
The information processing device is a display device that displays an image by executing a program;
The information processing apparatus according to claim 3, wherein the alternative program is a program corresponding to a moving image playback capability of the information processing apparatus.
前記プログラムの識別情報は、プログラムの取得先を示す情報であることを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the identification information of the program is information indicating a program acquisition destination. 前記プログラムの識別情報は、プログラムの内容を示す情報であることを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the identification information of the program is information indicating a content of the program. 前記プログラムの識別情報は、プログラム内に記載された文字列の一部であることを特徴とする請求項1又は2に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the identification information of the program is a part of a character string described in the program. 前記プログラムの取得先を示す情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、
前記実行予定の前記プログラムの取得先を示す情報と、前記判定情報のプログラムの取得先を示す情報と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、
前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、
前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、
を備えることを特徴とする請求項1に記載の情報処理装置。
A determination information storage unit that stores determination information in which information indicating the acquisition destination of the program is associated with an acquisition destination of the alternative program;
Where the information indicating the acquisition destination of the program scheduled to be executed matches the information indicating the acquisition destination of the program of the determination information, the acquisition destination from which the acquisition destination of the alternative program of the program scheduled to be executed is extracted An extractor;
An acquisition unit for acquiring the alternative program from the acquisition source extracted by the acquisition source extraction unit;
Instead of the program to be executed, a control unit that executes the alternative program acquired by the acquisition unit;
The information processing apparatus according to claim 1, further comprising:
前記プログラムの取得先を示す情報と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、
前記実行予定の前記プログラムの取得先を示す情報と、前記判定情報のプログラムの取得先を示す情報と、が部分一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、
前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、
前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、
を備えることを特徴とする請求項1に記載の情報処理装置。
A determination information storage unit that stores determination information in which information indicating the acquisition destination of the program is associated with an acquisition destination of the alternative program;
Where the information indicating the acquisition destination of the program scheduled for execution partially matches the information indicating the acquisition destination of the program of the determination information, the acquisition destination for extracting the acquisition destination of the alternative program of the program scheduled for execution An extractor;
An acquisition unit for acquiring the alternative program from the acquisition source extracted by the acquisition source extraction unit;
Instead of the program to be executed, a control unit that executes the alternative program acquired by the acquisition unit;
The information processing apparatus according to claim 1, further comprising:
前記プログラムの内容と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、
前記実行予定の前記プログラムの内容と、前記判定情報のプログラムの内容と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、
前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、
前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、
を備えることを特徴とする請求項1に記載の情報処理装置。
A determination information storage unit that stores determination information in which the contents of the program and the acquisition source of the alternative program are associated;
An acquisition destination extraction unit that extracts an acquisition source of an alternative program of the program to be executed when the content of the program to be executed and the content of the program of the determination information completely match;
An acquisition unit for acquiring the alternative program from the acquisition source extracted by the acquisition source extraction unit;
Instead of the program to be executed, a control unit that executes the alternative program acquired by the acquisition unit;
The information processing apparatus according to claim 1, further comprising:
前記プログラムの内容を変換した文字列と前記代替プログラムの取得先とを対応付けた判定情報を記憶する判定情報記憶部と、
前記実行予定の前記プログラムの内容を変換した文字列と、前記判定情報のプログラムの内容を変換した文字列と、が完全一致する場合に、前記実行予定のプログラムの代替プログラムの取得先を抽出する取得先抽出部と、
前記取得先抽出部が抽出した取得先から前記代替プログラムを取得する取得部と、
前記実行予定のプログラムに代えて、前記取得部が取得した代替プログラムを実行する制御部と、
を備えることを特徴とする請求項1に記載の情報処理装置。
A determination information storage unit that stores determination information in which a character string obtained by converting the content of the program and an acquisition destination of the alternative program are associated;
When the character string obtained by converting the contents of the program scheduled for execution and the character string obtained by converting the contents of the program of the determination information completely match, the acquisition destination of the alternative program of the program scheduled for execution is extracted. Acquisition source extraction unit;
An acquisition unit for acquiring the alternative program from the acquisition source extracted by the acquisition source extraction unit;
Instead of the program to be executed, a control unit that executes the alternative program acquired by the acquisition unit;
The information processing apparatus according to claim 1, further comprising:
前記プログラム内に記載された文字列の一部は、予め定めた命令文で用いられる変数に関する文字列であることを特徴とする請求項8に記載の情報処理装置。   The information processing apparatus according to claim 8, wherein a part of the character string described in the program is a character string related to a variable used in a predetermined command statement. 前記命令文は、変数に値を代入する代入文であることを特徴とする請求項13に記載の情報処理装置。   The information processing apparatus according to claim 13, wherein the command statement is an assignment statement that assigns a value to a variable. 前記命令文は、関数を定義する定義文であることを特徴とする請求項13に記載の情報処理装置。   The information processing apparatus according to claim 13, wherein the command statement is a definition statement that defines a function. 前記代替プログラムを記憶する記憶部を備えることを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, further comprising a storage unit that stores the substitute program. 前記判定情報を更新することを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the determination information is updated. 前記取得手段は、外部の装置から前記代替プログラムを取得することを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the acquisition unit acquires the alternative program from an external apparatus. 前記プログラムは、ライブラリで提供されるプログラムであることを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the program is a program provided in a library. 前記プログラムは、Javascript言語のプログラムであることを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the program is a program in Javascript language. 動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置における情報処理方法において、
前記情報処理装置が、実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行することを特徴とする情報処理方法。
In an information processing method in an information processing apparatus that executes a script language program describing operation processing,
An information processing method, wherein the information processing apparatus replaces the program with another alternative program based on identification information of the program to be executed, and executes the replaced program.
動作処理を記述するスクリプト言語のプログラムを実行する情報処理装置のコンピュータに、
実行予定の前記プログラムの識別情報に基づいて当該プログラムを他の代替プログラムに置き換え、置き換えた代替プログラムを実行させる情報処理プログラム。
In a computer of an information processing apparatus that executes a script language program that describes operation processing,
An information processing program that replaces the program with another alternative program based on the identification information of the program to be executed, and executes the replaced program.
JP2009285018A 2009-12-16 2009-12-16 Information processing apparatus, information processing method, and information processing program Expired - Fee Related JP5500968B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009285018A JP5500968B2 (en) 2009-12-16 2009-12-16 Information processing apparatus, information processing method, and information processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009285018A JP5500968B2 (en) 2009-12-16 2009-12-16 Information processing apparatus, information processing method, and information processing program

Publications (2)

Publication Number Publication Date
JP2011128762A true JP2011128762A (en) 2011-06-30
JP5500968B2 JP5500968B2 (en) 2014-05-21

Family

ID=44291320

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009285018A Expired - Fee Related JP5500968B2 (en) 2009-12-16 2009-12-16 Information processing apparatus, information processing method, and information processing program

Country Status (1)

Country Link
JP (1) JP5500968B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019505932A (en) * 2015-11-27 2019-02-28 カデンス イマジュリー メディカル インコーポレイテッドCadens Imagerie Medicale Inc. Method and system for executing functions for processing data using a server
US20210345013A1 (en) * 2018-10-18 2021-11-04 Hangzhou Hikvision Digital Technology Co., Ltd. Video Playing Method and Apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1083282A (en) * 1996-05-31 1998-03-31 Hewlett Packard Co <Hp> Software library
JP2001356911A (en) * 2000-06-12 2001-12-26 Dainippon Printing Co Ltd Install device and recording medium
JP2003022189A (en) * 2001-07-06 2003-01-24 Mitsubishi Electric Corp Distributed network computing system
JP2003067194A (en) * 2001-08-30 2003-03-07 Sharp Corp Terminal device
JP2003308213A (en) * 2002-04-17 2003-10-31 Hitachi Ltd Method and apparatus for job processing and storage management system
JP2004246413A (en) * 2003-02-10 2004-09-02 Mitsubishi Electric Corp Computer system
JP2008522249A (en) * 2005-12-29 2008-06-26 松下電工株式会社 System and method for providing a user configurable software library
WO2008098174A1 (en) * 2007-02-09 2008-08-14 Novarra, Inc. Method and apparatus for providing information content for display on a client device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1083282A (en) * 1996-05-31 1998-03-31 Hewlett Packard Co <Hp> Software library
JP2001356911A (en) * 2000-06-12 2001-12-26 Dainippon Printing Co Ltd Install device and recording medium
JP2003022189A (en) * 2001-07-06 2003-01-24 Mitsubishi Electric Corp Distributed network computing system
JP2003067194A (en) * 2001-08-30 2003-03-07 Sharp Corp Terminal device
JP2003308213A (en) * 2002-04-17 2003-10-31 Hitachi Ltd Method and apparatus for job processing and storage management system
JP2004246413A (en) * 2003-02-10 2004-09-02 Mitsubishi Electric Corp Computer system
JP2008522249A (en) * 2005-12-29 2008-06-26 松下電工株式会社 System and method for providing a user configurable software library
WO2008098174A1 (en) * 2007-02-09 2008-08-14 Novarra, Inc. Method and apparatus for providing information content for display on a client device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSND200900169019; H2O Space.: '表現力に差をつけよう! WEBデザインスタイルアップTips 第9回' web creators Vol.88(通巻88号), 20090401, p.84, 株式会社エムディエヌコーポレーション *
JPN6013027745; H2O Space.: '表現力に差をつけよう! WEBデザインスタイルアップTips 第9回' web creators Vol.88(通巻88号), 20090401, p.84, 株式会社エムディエヌコーポレーション *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019505932A (en) * 2015-11-27 2019-02-28 カデンス イマジュリー メディカル インコーポレイテッドCadens Imagerie Medicale Inc. Method and system for executing functions for processing data using a server
JP6997096B2 (en) 2015-11-27 2022-01-17 カデンス イマジュリー メディカル インコーポレイテッド How and the system to execute functions to process data using the server
US20210345013A1 (en) * 2018-10-18 2021-11-04 Hangzhou Hikvision Digital Technology Co., Ltd. Video Playing Method and Apparatus
US11800199B2 (en) * 2018-10-18 2023-10-24 Hangzhou Hikvision Digital Technology Co., Ltd. Video playing method and apparatus

Also Published As

Publication number Publication date
JP5500968B2 (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN108628661B (en) Automatic establishment method of cloud manufacturing service and cloud manufacturing system
JP6416374B2 (en) Fast rendering of websites containing dynamic content and old content
CN102521230B (en) For the result type that data with good conditionsi show
US10452765B2 (en) Web content rewriting, including responses
CN102597993B (en) Managing application state information by means of uniform resource identifier (URI)
RU2390832C2 (en) Method of viewing web-pages using external program themes
US9544335B2 (en) Method and system for local calling via webpage
US20090271690A1 (en) Handling cross-domain web service calls
JP2018097846A (en) Api learning
CN1682183A (en) Method and computer system for handling incremental data in client-server communication
US11474796B1 (en) Build system for distributed applications
US9491222B2 (en) System and method for interoperability between flex applications and .NET applications
JP2011527784A (en) Embed macros in web pages that contain advertisements
KR102033416B1 (en) Method for generating data extracted from document and apparatus thereof
WO2013175560A1 (en) Information communicating system and information converting method
JP2010016778A (en) Image forming apparatus, information processing method, and image forming system
CN111723314B (en) Webpage display method and device, electronic equipment and computer readable storage medium
US9996344B2 (en) Customized runtime environment
JP5500968B2 (en) Information processing apparatus, information processing method, and information processing program
CN114879976A (en) Version environment deployment method and device and electronic equipment
JP4448026B2 (en) How to send HTML application
US9727397B2 (en) Container-less JSP template
CN112947900A (en) Web application development method and device, server and development terminal
CN102231150A (en) Method and system for managing word stock of embedded browser
CN110780983A (en) Task exception handling method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121016

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130501

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130611

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130809

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140311

R150 Certificate of patent or registration of utility model

Ref document number: 5500968

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees