@ProviderType
public class EventPayloadWrapper
extends java.lang.Object
implements javax.faces.FacesWrapper<java.io.Serializable>, java.io.Serializable
The purpose of this class is to provide support a vendor-specific feature of Liferay Portal that provides the ability to broadcast Portlet 2.0 Events to portlets that exist on a different portal page. For more information, refer to the "portlet.event.distribution" key inside of the Liferay Portal portal.properties file.
This class provides the ability to wrap a Serializable event payload that is intended to be sent via
StateAwareResponse.setEvent(String, Serializable) or StateAwareResponse.setEvent(javax.xml.namespace.QName, Serializable). It also provides the ability for the recipient
of the event to determine whether or not a redirect is taking place.
| Constructor and Description |
|---|
EventPayloadWrapper(java.io.Serializable payload,
boolean redirect)
Constructs a new
EventPayloadWrapper instance. |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
getWrapped() |
boolean |
isRedirect() |
public EventPayloadWrapper(java.io.Serializable payload,
boolean redirect)
EventPayloadWrapper instance.payload - The Serializable payload that is to be wrapped.redirect - The flag indicating whether or not a redirect is taking place.Copyright © 2020 Liferay, Inc. All Rights Reserved.