@Published(tag="architect") public class PipelineInvoker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESSED_HANDLERS_KEY
処理済ハンドラリストのキー。
|
| Constructor and Description |
|---|
PipelineInvoker() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<Object> |
getProcessedHandlers(nablarch.fw.ExecutionContext context)
処理済ハンドラのSetを取得する。
|
protected nablarch.fw.Result |
handleError(nablarch.fw.ExecutionContext context,
Error e)
Error の例外処理を行う。
例外をNablarchのハンドラでレスポンスとして処理する場合、 このハンドラより外部のハンドラが処理できるレスポンスオブジェクトを返す。 |
protected nablarch.fw.Result |
handleException(nablarch.fw.ExecutionContext context,
Throwable t)
例外処理を行う
|
protected nablarch.fw.Result |
handleRuntimeException(nablarch.fw.ExecutionContext context,
RuntimeException e)
RuntimeExceptionの例外処理を行う。
例外をNablarchのハンドラでレスポンスとして処理する場合、 このハンドラより外部のハンドラが処理できるレスポンスオブジェクトを返す。 |
nablarch.fw.Result |
invokeInbound(nablarch.fw.ExecutionContext context)
事前処理を実行する。
|
nablarch.fw.Result |
invokeOutbound(nablarch.fw.ExecutionContext context)
事前処理を実行する。
|
void |
setExceptionHandler(nablarch.fw.ExceptionHandler exceptionHandler)
例外処理を行う
ExceptionHandlerを設定する。 |
void |
setHandlerListBuilder(PipelineListBuilder handlerListBuilder)
実行対象となるハンドラリストを組み立てる
PipelineListBuilder を設定する。 |
public static final String PROCESSED_HANDLERS_KEY
public void setHandlerListBuilder(PipelineListBuilder handlerListBuilder)
PipelineListBuilder を設定する。handlerListBuilder - 実行対象となるハンドラリストを組み立てるPipelineListBuilderpublic void setExceptionHandler(nablarch.fw.ExceptionHandler exceptionHandler)
ExceptionHandlerを設定する。exceptionHandler - 例外処理を行う ExceptionHandlerpublic nablarch.fw.Result invokeInbound(nablarch.fw.ExecutionContext context)
context - ExecutionContextpublic nablarch.fw.Result invokeOutbound(nablarch.fw.ExecutionContext context)
context - ExecutionContextprotected nablarch.fw.Result handleException(nablarch.fw.ExecutionContext context,
Throwable t)
context - ExecutionContextt - 対象の例外(RuntimeException または Errorのいずれかとなる)protected Set<Object> getProcessedHandlers(nablarch.fw.ExecutionContext context)
context - ExecutionContextprotected nablarch.fw.Result handleRuntimeException(nablarch.fw.ExecutionContext context,
RuntimeException e)
context - ExecutionContexte - 例外RuntimeException - 例外を処理できない場合、または付け替えた例外protected nablarch.fw.Result handleError(nablarch.fw.ExecutionContext context,
Error e)
throws Error
context - ExecutionContexte - 例外Error - 例外を処理できない場合RuntimeException - 例外を処理できない場合、または付け替えた例外Copyright © 2020. All rights reserved.