类 PortletRequestHandledEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.web.context.support.RequestHandledEvent
- org.springframework.web.portlet.context.PortletRequestHandledEvent
- 所有已实现的接口:
Serializable
public class PortletRequestHandledEvent extends RequestHandledEvent
Portlet-specific subclass of RequestHandledEvent, adding portlet-specific context information.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, John A. Lewis
- 另请参阅:
FrameworkPortlet
,ApplicationEventPublisher.publishEvent(org.springframework.context.ApplicationEvent)
, 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 PortletRequestHandledEvent(Object source, String portletName, String portletMode, String requestType, String sessionId, String userName, long processingTimeMillis)
Create a new PortletRequestHandledEvent.PortletRequestHandledEvent(Object source, String portletName, String portletMode, String requestType, String sessionId, String userName, long processingTimeMillis, Throwable failureCause)
Create a new PortletRequestHandledEvent.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getDescription()
Return a full description of this event, involving all available context data.String
getPortletMode()
Return the mode of the portlet request (usually 'view', 'edit', or 'help').String
getPortletName()
Return the name of the portlet that handled the request.String
getRequestType()
Return the type of Portlet Request ('action' or 'render').String
getShortDescription()
Return a short description of this event, only involving the most important context data.String
toString()
从类继承的方法 org.springframework.web.context.support.RequestHandledEvent
getFailureCause, getProcessingTimeMillis, getSessionId, getUserName, wasFailure
从类继承的方法 org.springframework.context.ApplicationEvent
getTimestamp
从类继承的方法 java.util.EventObject
getSource
构造器详细资料
PortletRequestHandledEvent
public PortletRequestHandledEvent(Object source, String portletName, String portletMode, String requestType, String sessionId, String userName, long processingTimeMillis)
Create a new PortletRequestHandledEvent.- 参数:
source
- the component that published the eventportletName
- the name of the portlet that handled the requestportletMode
- the PortletMode of the request (usually 'view', 'edit', or 'help')requestType
- the type of Portlet request ('action' or 'render')sessionId
- the id of the HTTP session, if anyuserName
- the name of the user that was associated with the request, if any (usually the UserPrincipal)processingTimeMillis
- the processing time of the request in milliseconds
PortletRequestHandledEvent
public PortletRequestHandledEvent(Object source, String portletName, String portletMode, String requestType, String sessionId, String userName, long processingTimeMillis, Throwable failureCause)
Create a new PortletRequestHandledEvent.- 参数:
source
- the component that published the eventportletName
- the name of the portlet that handled the requestportletMode
- the PortletMode of the request (usually 'view', 'edit', or 'help')requestType
- the type of Portlet request ('action' or 'render')sessionId
- the id of the HTTP session, if anyuserName
- the name of the user that was associated with the request, if any (usually the UserPrincipal)processingTimeMillis
- the processing time of the request in millisecondsfailureCause
- the cause of failure, if any
方法详细资料
getPortletName
public String getPortletName()
Return the name of the portlet that handled the request.
getPortletMode
public String getPortletMode()
Return the mode of the portlet request (usually 'view', 'edit', or 'help').
getRequestType
public String getRequestType()
Return the type of Portlet Request ('action' or 'render').
getShortDescription
public String getShortDescription()
从类复制的说明:RequestHandledEvent
Return a short description of this event, only involving the most important context data.
getDescription
public String getDescription()
从类复制的说明:RequestHandledEvent
Return a full description of this event, involving all available context data.
toString
public String toString()
- 覆盖:
toString
在类中RequestHandledEvent