Package nablarch.integration.router
Class SimplePathOptionsFormatter
java.lang.Object
nablarch.integration.router.SimplePathOptionsFormatter
- All Implemented Interfaces:
PathOptionsFormatter
PathOptions を単純な形式でフォーマットする機能を提供するクラス。
このフォーマッタは、まず PathOptions のリストを path とHTTPメソッド(options.conditions.method)の昇順でソートする。
そして、それぞれの PathOptions を "<options.conditions.method> <path> => <options.controller>#<options.action>"
という書式でフォーマットし、改行コード(System.getProperty("line.separator"))で連結したものをフォーマット結果として返す。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(List<PathOptions> pathOptionsList) PathOptionsのリストをログ出力用にフォーマットする。
-
Constructor Details
-
SimplePathOptionsFormatter
public SimplePathOptionsFormatter()
-
-
Method Details
-
format
Description copied from interface:PathOptionsFormatterPathOptionsのリストをログ出力用にフォーマットする。- Specified by:
formatin interfacePathOptionsFormatter- Parameters:
pathOptionsList- フォーマット対象のPathOptionsのリスト- Returns:
- フォーマット結果
-