public interface MvcResult
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsyncResult()
Get the result of async execution.
|
Object |
getAsyncResult(long timeToWait)
Get the result of async execution.
|
org.springframework.web.servlet.FlashMap |
getFlashMap()
Return the "output" flash attributes saved during request processing.
|
Object |
getHandler()
Return the executed handler.
|
org.springframework.web.servlet.HandlerInterceptor[] |
getInterceptors()
Return interceptors around the handler.
|
org.springframework.web.servlet.ModelAndView |
getModelAndView()
Return the
ModelAndView prepared by the handler. |
MockHttpServletRequest |
getRequest()
Return the performed request.
|
Exception |
getResolvedException()
Return any exception raised by a handler and successfully resolved
through a
HandlerExceptionResolver. |
MockHttpServletResponse |
getResponse()
Return the resulting response.
|
MockHttpServletRequest getRequest()
nullMockHttpServletResponse getResponse()
nullObject getHandler()
null if none were executedorg.springframework.web.servlet.HandlerInterceptor[] getInterceptors()
null if none were selectedorg.springframework.web.servlet.ModelAndView getModelAndView()
ModelAndView prepared by the handler.ModelAndView, or nullException getResolvedException()
HandlerExceptionResolver.nullorg.springframework.web.servlet.FlashMap getFlashMap()
FlashMap, possibly emptyObject getAsyncResult()
MockAsyncContext.getTimeout().IllegalStateException - if the async result was not setObject getAsyncResult(long timeToWait)
timeToWait - how long to wait for the async result to be set, in
milliseconds; if -1, then the async request timeout value is used,
i.e.MockAsyncContext.getTimeout().IllegalStateException - if the async result was not set