クラス WebXmlMappableAttributesRetriever
java.lang.ObjectSE
org.springframework.security.web.authentication.preauth.j2ee.WebXmlMappableAttributesRetriever
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware, MappableAttributesRetriever
public class WebXmlMappableAttributesRetriever
extends ObjectSE
implements org.springframework.context.ResourceLoaderAware, MappableAttributesRetriever, org.springframework.beans.factory.InitializingBean
この MappableAttributesRetriever 実装は、定義された J2EE ロールのリストを web.xml ファイルから読み取り、{
getMappableAttributes() から返します。- 導入:
- 2.0
フィールド概要
フィールドコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明void構成された ResourceLoader を使用して web.xml ファイルを読み込み、そこから role-name 要素を解析し、これらを mappableAttributes のセットとして使用します。このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
フィールドの詳細
logger
protected final org.apache.commons.logging.Log logger
コンストラクターの詳細
WebXmlMappableAttributesRetriever
public WebXmlMappableAttributesRetriever()
方法の詳細
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - 次で指定:
- インターフェース
org.springframework.context.ResourceLoaderAware内のsetResourceLoader
getMappableAttributes
インターフェースからコピーされた説明:MappableAttributesRetrieverこのメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。- 次で指定:
- インターフェース
MappableAttributesRetriever内のgetMappableAttributes - 戻り値:
- すべてのマッピング可能なロールのセット
afterPropertiesSet
構成された ResourceLoader を使用して web.xml ファイルを読み込み、そこから role-name 要素を解析し、これらを mappableAttributes のセットとして使用します。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean内のafterPropertiesSet - 例外:
ExceptionSE