createsessioninterceptor.java

来自「struts 2 核心包 的源码 有错误是难免的」· Java 代码 · 共 34 行

JAVA
34
字号
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   CreateSessionInterceptor.java

package org.apache.struts2.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.ServletActionContext;

public class CreateSessionInterceptor extends AbstractInterceptor
{

	private static final long serialVersionUID = 0xc04be5f4ae12838bL;
	private static final Log _log = LogFactory.getLog(org/apache/struts2/interceptor/CreateSessionInterceptor);

	public CreateSessionInterceptor()
	{
	}

	public String intercept(ActionInvocation invocation)
		throws Exception
	{
		_log.debug("Creating HttpSession");
		ServletActionContext.getRequest().getSession(true);
		return invocation.invoke();
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?