P
- パス情報の型public abstract class AbstractDirectory<P extends IPathInfo> extends Object implements IDirectory
プロパティ情報を収集してレスポンス情報を組み立てます。
以下の処理を行います。
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractDirectory(P pathInfo)
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected <E extends IProperty> |
addFinder(Class<E> clazz,
IPropertyFinder<E> finder)
プロパティ探索オブジェクトを追加します。
|
<E extends IProperty> |
find(Class<E> clazz)
プロパティ情報を取得します。
|
Response |
find(List<QName> properties)
プロパティ情報を取得します。
|
protected IPropertyFinder<?> |
getFinder(String key)
プロパティ探索オブジェクトを取得します。
|
IPathInfo |
getPathInfo()
パス情報を取得します。
|
protected abstract void |
initFinder()
プロパティ探索オブジェクトの初期化を行います。
|
protected abstract boolean |
isValidPath()
パス情報が適切かどうかを判定します。
|
protected AbstractDirectory(P pathInfo)
プロパティ探索オブジェクト一覧の初期化を行います。
pathInfo
- パス情報public <E extends IProperty> E find(Class<E> clazz) throws IacCaldavException
以下の場合は null
を返却します。
null
の場合find
インタフェース内 IDirectory
E
- プロパティオブジェクトの型clazz
- プロパティクラスIacCaldavException
- プロパティ値の取得に失敗した場合public Response find(List<QName> properties) throws IacCaldavException
要求プロパティのうち、探索オブジェクトの有無に応じて以下の propstat オブジェクトに格納されます。
null
を返却します。
find
インタフェース内 IDirectory
properties
- 要求プロパティ一覧IacCaldavException
- プロパティ値の取得に失敗した場合public IPathInfo getPathInfo()
IDirectory
getPathInfo
インタフェース内 IDirectory
protected <E extends IProperty> void addFinder(Class<E> clazz, IPropertyFinder<E> finder)
プロパティクラスに定義された要素情報から要素文字列を生成し、探索オブジェクトを紐付けて格納します。
以下の場合は追加されません。
null
の場合null
の場合null
となる場合E
- プロパティオブジェクトの型clazz
- プロパティクラスfinder
- プロパティ探索オブジェクトCaldavUtility.toQNameString(Class)
protected IPropertyFinder<?> getFinder(String key)
以下の場合は null
を返却します。
null
もしくは空の場合key
- キー(要素文字列)protected abstract void initFinder()
protected abstract boolean isValidPath()
true
:正常/false
:不正)Copyright © 2012-2015 NTT DATA INTRAMART CORPORATION