spring-framework / org.springframework.web.method.annotation / SessionAttributesHandler / isHandlerSessionAttribute

isHandlerSessionAttribute

open fun isHandlerSessionAttribute(attributeName: String, attributeType: Class<*>): Boolean

Whether the attribute name or type match the names and types specified via @SessionAttributes on the underlying controller.

Attributes successfully resolved through this method are "remembered" and subsequently used in #retrieveAttributes(WebRequest) and #cleanupAttributes(WebRequest).

Parameters

attributeName - the attribute name to check

attributeType - the type for the attribute