Package nablarch.integration.router
Class PathOptionsProviderRoutesMapping
java.lang.Object
nablarch.fw.handler.DispatchHandler<HttpRequest,HttpResponse,RoutingHandlerSupport>
nablarch.fw.web.handler.RoutingHandlerSupport
nablarch.integration.router.PathOptionsProviderRoutesMapping
- All Implemented Interfaces:
Initializable,Handler<HttpRequest,,HttpResponse> HttpRequestHandler
public class PathOptionsProviderRoutesMapping
extends RoutingHandlerSupport
implements Initializable
PathOptionsProvider から取得したルーティング定義をベースにActionメソッドを特定するハンドラ。-
Field Summary
Fields inherited from class nablarch.fw.web.handler.RoutingHandlerSupport
methodBinderFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionベースURIを取得する。protected Class<?>getHandlerClass(HttpRequest request, ExecutionContext executionContext) 処理を委譲するハンドラの型を決定する。void初期化処理を行う。voidsetBaseUri(String baseUri) ベースURIを設定する。voidsetPathOptionsFormatter(PathOptionsFormatter pathOptionsFormatter) PathOptionsFormatterを設定する。voidsetPathOptionsProvider(PathOptionsProvider pathOptionsProvider) PathOptionsProviderを設定する。Methods inherited from class nablarch.fw.web.handler.RoutingHandlerSupport
setMethodBinderFactoryMethods inherited from class nablarch.fw.handler.DispatchHandler
createHandlerFor, handle, setDelegateFactory, setImmediate, writeDispatchingClassLogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nablarch.fw.web.HttpRequestHandler
handle
-
Constructor Details
-
PathOptionsProviderRoutesMapping
public PathOptionsProviderRoutesMapping()
-
-
Method Details
-
getHandlerClass
protected Class<?> getHandlerClass(HttpRequest request, ExecutionContext executionContext) throws ClassNotFoundException Description copied from class:DispatchHandler処理を委譲するハンドラの型を決定する。- Specified by:
getHandlerClassin classDispatchHandler<HttpRequest,HttpResponse, RoutingHandlerSupport> - Parameters:
request- 入力データexecutionContext- 実行コンテキスト- Returns:
- 処理を委譲するハンドラ
- Throws:
ClassNotFoundException- 指定されたクラスが存在しなかった場合。
-
initialize
public void initialize()Description copied from interface:Initializable初期化処理を行う。- Specified by:
initializein interfaceInitializable
-
getBaseUri
ベースURIを取得する。- Returns:
- ベースURI
-
setBaseUri
ベースURIを設定する。- Parameters:
baseUri- ベースURI
-
setPathOptionsProvider
PathOptionsProviderを設定する。- Parameters:
pathOptionsProvider-PathOptionsProvider
-
setPathOptionsFormatter
PathOptionsFormatterを設定する。- Parameters:
pathOptionsFormatter-PathOptionsFormatter
-