类 AbstractRequestAttributes

    • 方法详细资料

      • requestCompleted

        public void requestCompleted()
        Signal that the request has been completed.

        Executes all request destruction callbacks and updates the session attributes that have been accessed during request processing.

      • registerRequestDestructionCallback

        protected final void registerRequestDestructionCallback​(String name,
                                                                Runnable callback)
        Register the given callback as to be executed after request completion.
        参数:
        name - the name of the attribute to register the callback for
        callback - the callback to be executed for destruction
      • removeRequestDestructionCallback

        protected final void removeRequestDestructionCallback​(String name)
        Remove the request destruction callback for the specified attribute, if any.
        参数:
        name - the name of the attribute to remove the callback for
      • updateAccessedSessionAttributes

        protected abstract void updateAccessedSessionAttributes()
        Update all session attributes that have been accessed during request processing, to expose their potentially updated state to the underlying session manager.