svnno****@sourc*****
svnno****@sourc*****
2008年 2月 20日 (水) 18:40:09 JST
Revision: 33
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=33
Author: karma
Date: 2008-02-20 18:40:09 +0900 (Wed, 20 Feb 2008)
Log Message:
-----------
1st translation
Modified Paths:
--------------
jetspeed-2-trans/trunk/ja/xdocs/guides/guide-profiling-ip.xml
-------------- next part --------------
Modified: jetspeed-2-trans/trunk/ja/xdocs/guides/guide-profiling-ip.xml
===================================================================
--- jetspeed-2-trans/trunk/ja/xdocs/guides/guide-profiling-ip.xml 2008-02-19 12:06:18 UTC (rev 32)
+++ jetspeed-2-trans/trunk/ja/xdocs/guides/guide-profiling-ip.xml 2008-02-20 09:40:09 UTC (rev 33)
@@ -17,26 +17,40 @@
-->
<document>
<properties>
- <title>Guide to Profiling IP Addresses</title>
- <subtitle>Documentation for Using the ip-address Profiler rule</subtitle>
+ <title>[Guide to Profiling IP Addresses] IP アドレスによるコンテンツ切り替えのガイド</title>
+ <subtitle>[Documentation for Using the ip-address Profiler rule] IP アドレスプロファイラルールを使うための文書</subtitle>
<authors>
<person name="Philip Mark Donaghy" email="phili****@gmail*****" />
</authors>
+ <translators>
+ <person name="加藤泰文" email="karma****@prog*****" />
+ </translators>
</properties>
<body>
- <section name="Guide to Profiling IP Addresses">
+ <section name="[Guide to Profiling IP Addresses] IP アドレスによるプロファイリングのガイド">
+ <div class="original">
<p>
Jetspeed has a built in mechanism to serve custom content
to a specific IP address. This feature uses the Profiler
to negociate pages based on the requesting clients IP address.
</p>
- <subsection name="1. The Rule">
+ </div>
+ <p>
+ Jetspeed には,特定の IP アドレス向けのカスタムコンテンツを提供する仕組みを持っています.この特徴は,リクエストを送ってきたクライアントの IP アドレスをベースにページを調整するために,プロファイラを使います.
+ </p>
+ <subsection name="[1. The Rule] 1. ルール">
+ <div class="original">
<p>
The rule is identified by the key <b>ip-address</b>. There is one criterion
called <b>ip</b> resolved using the IP Criterion Resolver. This class implements
the resolve method of the Rule Criterion Resolver in order to obtain the IP address
from the request.
</p>
+ </div>
+ <p>
+ ルールは,キーである IP アドレスによって特定されます.IP 判断基準リゾルバ (IP Criterion Resolver) が解決するのに使う <b>ip</b> と言う判断基準が存在します.このクラスは,リクエストから IP アドレスを得るために,ルール判断基準リゾルバ (Rule Criterion Resolver) の resolve メソッドを実装します.
+ </p>
+ <div class="original">
<source>
public String resolve(RequestContext context, RuleCriterion criterion)
{
@@ -52,8 +66,25 @@
return context.getRequest().getRemoteAddr();
}
</source>
+ </div>
+ <source>
+ public String resolve(RequestContext context, RuleCriterion criterion)
+ {
+ // オーバーライドを探す
+ String value = super.resolve(context, criterion);
+ if (value != null) { return value.toLowerCase(); }
+
+ // IP アドレスはクライアントに依存して変化する可能性があることに注意しましょう.
+ // Konqueror 3.4.2 は,例えば 0:0:0:0:0:0:0:1 のような IPv6 アドレスを返します.
+ // Firefox 1.0.7 は,例えば 127.0.0.1 のような IPv4 アドレスを返します.
+ // これは,_ip ディレクトリ内のページを探すのに使われる値です.
+ // TODO 全ての IPv4 アドレスを IPv6 に変換するオプションを作成する.
+ return context.getRequest().getRemoteAddr();
+ }
+ </source>
</subsection>
- <subsection name="2. The Page Locator">
+ <subsection name="[2. The Page Locator] 2. ページロケータ">
+ <div class="original">
<p>
Users with this profile rule set to the <b>page</b> locator are served pages from the _ip
directory of the psml site tree. Example, if a request is made for
@@ -61,18 +92,32 @@
then the rule will match /WEB-INF/pages/_ip/81.29.65.234/default-page.psml before
falling back to /WEB-INF/pages/default-page.psml
</p>
+ </div>
+ <p>
+ <b>page</b> ロケータに設定されたプロファイルルールを持つユーザは,psml サイトツリーの _ip ディレクトリからページが提供されます.例えば,81.29.65.234 からの http://www.apache.org/jetspeed/portal/default-page.psml へのリクエストがあった場合,ルールは /WEB-INF/pages/default-page.psml にフォールバックする前に,/WEB-INF/pages/_ip/81.29.65.234/default-page.psml とマッチするでしょう.
+ </p>
</subsection>
- <subsection name="3. Example Use Cases">
+ <subsection name="[3. Example Use Cases] 3. 使用事例">
+ <div class="original">
<p>
You have a location in Tokyo serving content specific to that
location. Your kiosk is configured with a fixed IP address. The annonymous
user (guest by default) uses this profile rule. Anyone using
the portal from that kiosk would be served content from the _ip directory.
</p>
+ </div>
+ <p>
+ 特定のコンテンツを提供したい場所を,あなたが東京に持っているとしましょう.(この) あなたの端末は,固定 IP アドレスを持っています.匿名のユーザ (デフォルトで guest) は,このプロファイルルールを使います.この端末からポータルを使う人にはみんな,_ip ディレクトリからコンテンツが提供されるでしょう.
+ </p>
+ <div class="original">
<p>
It could also be used to profile robots. Or keep out unwanted visitors. And can be the basis for
profiling IP ranges or IP prefixes, networks and subnetworks, and geographic locations.
</p>
+ </div>
+ <p>
+ これは,ロボットのプロファイルにも使うことが出来ます.望ましくない訪問者を立入禁止にするのにも使うことができます.IP アドレスの範囲や IP アドレスのプレフィックス,ネットワークやサブネット,地理的な場所をプロファイリングするための基準に使うことが出来ます.
+ </p>
</subsection>
</section>
</body>