类的使用
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-inResultMatcherandResultHandlerimplementations.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中的方法 修饰符和类型 方法 说明 FlashMapMvcResult. 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 voidPrintingResultHandler. printFlashMap(FlashMap flashMap)Print "output" flash attributes.org.springframework.web.servlet中FlashMap的使用
返回FlashMap的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 FlashMapFlashMap. addTargetRequestParam(String name, String value)Provide a request parameter identifying the request for this FlashMap.FlashMapFlashMap. addTargetRequestParams(MultiValueMap<String,String> params)Provide request parameters identifying the request for this FlashMap.FlashMapFlashMapManager. 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中的方法 修饰符和类型 方法 说明 intFlashMap. compareTo(FlashMap other)Compare two FlashMaps and prefer the one that specifies a target URL path or has more target URL parameters.voidFlashMapManager. 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 FlashMapRequestContextUtils. getOutputFlashMap(HttpServletRequest request)Return "output" FlashMap to save attributes for request after redirect.FlashMapAbstractFlashMapManager. 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 booleanAbstractFlashMapManager. isFlashMapForRequest(FlashMap flashMap, HttpServletRequest request)Whether the given FlashMap matches the current request.voidAbstractFlashMapManager. saveOutputFlashMap(FlashMap flashMap, HttpServletRequest request, HttpServletResponse response)类型变量类型为FlashMap的org.springframework.web.servlet.support中的方法参数 修饰符和类型 方法 说明 protected abstract voidAbstractFlashMapManager. updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)Update the FlashMap instances in the underlying storage.protected voidSessionFlashMapManager. updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)Saves the given FlashMap instances in the HTTP session.