public class PrintingResultHandler extends ObjectSE implements ResultHandler
MvcResult の詳細を特定の出力ストリームに出力する結果ハンドラー - 例: System.out、System.err、カスタム java.io.PrintWriter など。 このクラスのインスタンスは、通常、MockMvcResultHandlers の print または log メソッドのいずれかを介してアクセスされます。
| 修飾子と型 | クラスと説明 |
|---|---|
protected static interface | PrintingResultHandler.ResultValuePrinter 結果情報を実際に書き込む方法の契約。 |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | PrintingResultHandler(PrintingResultHandler.ResultValuePrinter printer)protected コンストラクター。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected PrintingResultHandler(PrintingResultHandler.ResultValuePrinter printer)
printer - 実際の書き込みを行う PrintingResultHandler.ResultValuePrinterprotected PrintingResultHandler.ResultValuePrinter getPrinter()
public final void handle(MvcResult result) throws ExceptionSE
MvcResult の詳細を出力します。ResultHandler の handle result - 実行されたリクエストの結果 ExceptionSE - 障害が発生した場合 protected void printRequest(MockHttpServletRequest request) throws ExceptionSE
ExceptionSEprotected final HttpHeaders getRequestHeaders(MockHttpServletRequest request)
protected final MultiValueMap<StringSE,StringSE> getParamsMultiValueMap(MockHttpServletRequest request)
protected final MapSE<StringSE,ObjectSE> getSessionAttributes(MockHttpServletRequest request)
protected void printAsyncResult(MvcResult result) throws ExceptionSE
ExceptionSEprotected void printHandler(@Nullable ObjectSE handler, @Nullable HandlerInterceptor[] interceptors) throws ExceptionSE
ExceptionSEprotected void printResolvedException(@Nullable ExceptionSE resolvedException) throws ExceptionSE
ExceptionSEprotected void printModelAndView(@Nullable ModelAndView mav) throws ExceptionSE
ExceptionSEprotected void printFlashMap(FlashMap flashMap) throws ExceptionSE
ExceptionSEprotected void printResponse(MockHttpServletResponse response) throws ExceptionSE
ExceptionSEprotected final HttpHeaders getResponseHeaders(MockHttpServletResponse response)