public interface MvcResult
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | getAsyncResult() 非同期実行の結果を取得します。 |
ObjectSE | getAsyncResult(long timeToWait) 非同期実行の結果を取得し、必要に応じて待機します。 |
FlashMap | getFlashMap() リクエスト処理中に保存された「出力」フラッシュ属性を返します。 |
ObjectSE | getHandler() 実行されたハンドラーを返します。 |
HandlerInterceptor[] | getInterceptors() ハンドラーの周囲にインターセプターを返します。 |
ModelAndView | getModelAndView() ハンドラーによって準備された ModelAndView を返します。 |
MockHttpServletRequest | getRequest() 実行されたリクエストを返します。 |
ExceptionSE | getResolvedException() ハンドラーによって発生し、 HandlerExceptionResolver を介して正常に解決された例外を返します。 |
MockHttpServletResponse | getResponse() 結果のレスポンスを返します。 |
MockHttpServletRequest getRequest()
null
MockHttpServletResponse getResponse()
null
@Nullable HandlerInterceptor[] getInterceptors()
null
@Nullable ModelAndView getModelAndView()
ModelAndView
を返します。ModelAndView
、または存在しない場合は null
@Nullable ExceptionSE getResolvedException()
HandlerExceptionResolver
を介して正常に解決された例外を返します。null
FlashMap getFlashMap()
FlashMap
、おそらく空 ObjectSE getAsyncResult()
このメソッドは、非同期結果が非同期リクエストに関連付けられたタイムアウト値内に設定されるまで待機します。MockAsyncContext#setTimeout
を参照してください。または、getAsyncResult(long)
を使用して、待機時間を指定します。
IllegalStateExceptionSE
- 非同期結果が設定されていない場合 ObjectSE getAsyncResult(long timeToWait)
timeToWait
- 非同期結果が設定されるまでの待機時間(ミリ秒単位)。-1 の場合、非同期リクエストに関連付けられたタイムアウト値にフォールバックします。詳細については、MockAsyncContext#setTimeout
を参照してください。IllegalStateExceptionSE
- 非同期結果が設定されていない場合