类 HttpSessionRequiredException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.HttpSessionRequiredException
- 所有已实现的接口:
Serializable
public class HttpSessionRequiredException extends ServletException
Exception thrown when an HTTP request handler requires a pre-existing session.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 HttpSessionRequiredException(String msg)
Create a new HttpSessionRequiredException.HttpSessionRequiredException(String msg, String expectedAttribute)
Create a new HttpSessionRequiredException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getExpectedAttribute()
Return the name of the expected session attribute, if any.从类继承的方法 javax.servlet.ServletException
getRootCause
构造器详细资料
HttpSessionRequiredException
public HttpSessionRequiredException(String msg)
Create a new HttpSessionRequiredException.- 参数:
msg
- the detail message
HttpSessionRequiredException
public HttpSessionRequiredException(String msg, String expectedAttribute)
Create a new HttpSessionRequiredException.- 参数:
msg
- the detail messageexpectedAttribute
- the name of the expected session attribute- 从以下版本开始:
- 4.3
方法详细资料
getExpectedAttribute
public String getExpectedAttribute()
Return the name of the expected session attribute, if any.- 从以下版本开始:
- 4.3