类的使用
org.springframework.web.servlet.FlashMap
使用FlashMap的程序包 程序包 说明 org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.result Contains built-inResultMatcher
andResultHandler
implementations.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.test.web.servlet中FlashMap的使用
返回FlashMap的org.springframework.test.web.servlet中的方法 修饰符和类型 方法 说明 FlashMap
MvcResult. getFlashMap()
Return the "output" flash attributes saved during request processing.org.springframework.test.web.servlet.result中FlashMap的使用
参数类型为FlashMap的org.springframework.test.web.servlet.result中的方法 修饰符和类型 方法 说明 protected void
PrintingResultHandler. printFlashMap(FlashMap flashMap)
Print "output" flash attributes.org.springframework.web.servlet中FlashMap的使用
返回FlashMap的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 FlashMap
FlashMap. addTargetRequestParam(String name, String value)
Provide a request parameter identifying the request for this FlashMap.FlashMap
FlashMap. addTargetRequestParams(MultiValueMap<String,String> params)
Provide request parameters identifying the request for this FlashMap.FlashMap
FlashMapManager. retrieveAndUpdate(HttpServletRequest request, HttpServletResponse response)
Find a FlashMap saved by a previous request that matches to the current request, remove it from underlying storage, and also remove other expired FlashMap instances.参数类型为FlashMap的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 int
FlashMap. compareTo(FlashMap other)
Compare two FlashMaps and prefer the one that specifies a target URL path or has more target URL parameters.void
FlashMapManager. saveOutputFlashMap(FlashMap flashMap, HttpServletRequest request, HttpServletResponse response)
Save the given FlashMap, in some underlying storage and set the start of its expiration period.org.springframework.web.servlet.support中FlashMap的使用
返回FlashMap的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 static FlashMap
RequestContextUtils. getOutputFlashMap(HttpServletRequest request)
Return "output" FlashMap to save attributes for request after redirect.FlashMap
AbstractFlashMapManager. retrieveAndUpdate(HttpServletRequest request, HttpServletResponse response)
返回变量类型为FlashMap的类型的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 protected abstract List<FlashMap>
AbstractFlashMapManager. retrieveFlashMaps(HttpServletRequest request)
Retrieve saved FlashMap instances from the underlying storage.protected List<FlashMap>
SessionFlashMapManager. retrieveFlashMaps(HttpServletRequest request)
Retrieves saved FlashMap instances from the HTTP session, if any.参数类型为FlashMap的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 protected boolean
AbstractFlashMapManager. isFlashMapForRequest(FlashMap flashMap, HttpServletRequest request)
Whether the given FlashMap matches the current request.void
AbstractFlashMapManager. saveOutputFlashMap(FlashMap flashMap, HttpServletRequest request, HttpServletResponse response)
类型变量类型为FlashMap的org.springframework.web.servlet.support中的方法参数 修饰符和类型 方法 说明 protected abstract void
AbstractFlashMapManager. updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)
Update the FlashMap instances in the underlying storage.protected void
SessionFlashMapManager. updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)
Saves the given FlashMap instances in the HTTP session.