PortletRequestAttributes.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:class-guard 作者:
public void removeAttribute(String name, int scope) {
    if (scope == SCOPE_REQUEST) {
        if (isRequestActive()) {
            this.request.removeAttribute(name);
            removeRequestDestructionCallback(name);
        }
    }
    else {
        PortletSession session = getSession(false);
        if (session != null) {
            if (scope == SCOPE_GLOBAL_SESSION) {
                session.removeAttribute(name, PortletSession.APPLICATION_SCOPE);
                this.globalSessionAttributesToUpdate.remove(name);
            }
            else {
                session.removeAttribute(name);
                this.sessionAttributesToUpdate.remove(name);
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号