A DefaultContext component represents a subset
of the Context configuration elements.
A DefaultContext can be nested within an
Engine or Host.
DefaultContextコンポーネントは、Contextコンポーネントのサブセットを表します。
DefaultContextは、EngineまたはHost内部でネストすることができます。
The elements you configure for a DefaultContext within
both the Engine and Host elements are
added to the configuration of any automatically created web application
context or configured context.
あなたがEngineとHost要素の範囲内でDefaultContextのために構成する要素は、どんな自動的に生成されたWebアプリケーション・コンテキストでも構成に加えられるか、コンテキストを構成しました。
If you wish to configure a Context which does not use
the DefaultContext configuration set the Context
attribute override="true".
あなたがDefaultContextを使わないContextを構成したいならば、構成はContext属性override="true"をセットしました。
All implementations of the Context component support the following attributes:
Contextコンポーネントの全ての実装は、以下の属性をサポートします:
| Attribute | Description |
|---|---|
cookies |
Set to true if you want cookies to be used for session
identifier communication (if supported by the client). Set to
false if you want to skip even trying session id cookies,
and rely only on URL rewriting. If not specified, the default value is
true.
|
cookies |
あなたが(クライアントでサポートされるならば)セッション識別子通信のためクッキーを使用したい場合には、trueをセットします。
書き直すことをあなたがセッションidクッキーを試すのをスキップしたり、URLリライティングだけを使用したい場合には、falseにセットしてください。
指定されない場合のデフォルト値はtrueです。
|
crossContext |
Set to true of you want calls from within this application
to ServletContext.getContext() to successfully return the
ServletContext for other web applications running in this
host. Set to false in security conscious environments, so
that getContext() calls will return null. The
default value is false.
|
crossContext |
ServletContext.getContext()へのこのアプリケーション内から、呼び出しにこれで実行することはこのホストの他のWebアプリケーションのために、うまくServletContextを返して欲しい場合には、trueにセットします。
getContext()呼び出しがnullを返すことになるように、セキュリティにおいて意識的な環境はfalseにセットしてください。
デフォルトの値は、falseです。
|
reloadable |
Set this attribute to true if you wish to have Catalina
check the classes in WEB-INF/classes and
WEB-INF/lib for modification, and automatically reload
this application if a change is detected. This feature is very useful
during development; however, it requires significant runtime overhead
so it is not recommended for production deployment scenarios.
|
reloadable |
あなたがCatalinaにWEB-INF/classesでクラスをチェックしてもらいたいならば、この属性をtrueにセットしてください、そして、変更点が見つけられるならば、WEB-INF/libは修正のために、そして、自動的にこのアプリケーションを再ロードします。
この機能は、開発の間、非常に役に立ちます;
しかし、それは重要な実行時オーバーヘッドを必要とするので、それが製品配備の状態では推薦されません。
|
wrapperClass |
Java class name of the org.apache.catalina.Wrapper
implementation class that will be used for servlets managed by this
Context. If not specified, the standard value
(org.apache.catalina.core.StandardWrapper) will be used.
|
wrapperClass |
このコンテキストによって管理されるservletsのために使われることになるorg.apache.catalina.Wrapper実装クラスのJavaクラス名。
指定されなければ、標準の値(org.apache.catalina.core.StandardWrapper)が使われます。
|
useNaming |
Set this attribute to true if you wish to have Catalina
enable JNDI. Default is true.
|
useNaming |
CatalinaでJNDIを可能にしたい場合には、この属性をtrueにセットしてください。
デフォルトは、trueです。
|
You can attach one or more of the following utility components by nesting a corresponding declaration inside your Host element.
あなたは、ネストしていることによってユーティリティ・コンポーネントに追従する一つ以上を付けることができますあなたのHost要素の中に対応する宣言。
If you have implemented a Java object that needs to know when this
Context is started or stopped, you can declare it by nesting a
<Listener> element inside the <Context>
element. The class you specify in the className attribute
of this Listener must implement the
org.apache.catalina.LifecycleListener interface, and it will be
notified about the occurrence of the corresponding lifecycle events.
あなたがこのContextがいつかについて知っている必要が始めたJavaオブジェクトを実装するか、立ち止まったならば、あなたがネストしていることによってそれを宣言することができて、< Listener> < Context> 要素の中にcode>要素。
あなたがこのリスナーのclassName属性において、指定するクラスはorg.apache.catalina.LifecycleListenerインタフェースを実装しなければなりません、そして、それは対応するライフサイクル・イベントの出来事について通知されることになります。
Configuration for such a listener might look like this:
そのようなリスナーのための構成は、これのように見えるかもしれません:
<Context path="/myapp" ...>
...
<Listener className="com.mycompany.MyAppListener"/>
...
</Context>