|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.controller.PortletController
public class PortletController
The portlet controller which handles the page state management and the interactions between the action phase and the event phase. It really only does that and not more.
The event distribution is based on a fifo policy.
1/ introduce EventRequest so the portal can send events directly to a portlet 2/ make the event controller return a decision for a given event. Today it just returns a list of events to process. An event can be handled in various manners by the controller: - produce new events (what exists today) - make it a portal event which delivers the event to the portal
| Constructor Summary | |
|---|---|
PortletController()
|
|
| Method Summary | |
|---|---|
int |
getConsumedEventThreshold()
The option configures the maximum number of events that can be consumed during one interaction. |
boolean |
getDistributeNonConsumableEvents()
This option configures the behavior of the controller when an event returned by the event controller is not declared by the target receiving portlet. |
boolean |
getDistributeNonProduceableEvents()
This option configures the behavior of the controller when a portlet produces an event it does not declare. |
int |
getProducedEventThreshold()
The option configures the maximum number of events that can be produced during one interaction. |
ControllerResponse |
process(PortletControllerContext controllerContext,
ControllerRequest controllerRequest)
|
PortletInvocationResponse |
render(PortletControllerContext controllerContext,
java.util.List<javax.servlet.http.Cookie> cookies,
PortletPageNavigationalState pageNavigationalState,
java.lang.String windowId)
|
void |
setConsumedEventThreshold(int consumedEventThreshold)
|
void |
setDistributeNonConsumableEvents(boolean distributeNonConsumableEvents)
|
void |
setDistributeNonProduceableEvents(boolean distributeNonProduceableEvents)
|
void |
setProducedEventThreshold(int producedEventThreshold)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletController()
| Method Detail |
|---|
public boolean getDistributeNonConsumableEvents()
public void setDistributeNonConsumableEvents(boolean distributeNonConsumableEvents)
public boolean getDistributeNonProduceableEvents()
public void setDistributeNonProduceableEvents(boolean distributeNonProduceableEvents)
public int getProducedEventThreshold()
public void setProducedEventThreshold(int producedEventThreshold)
public int getConsumedEventThreshold()
public void setConsumedEventThreshold(int consumedEventThreshold)
public ControllerResponse process(PortletControllerContext controllerContext,
ControllerRequest controllerRequest)
throws PortletInvokerException
PortletInvokerException
public PortletInvocationResponse render(PortletControllerContext controllerContext,
java.util.List<javax.servlet.http.Cookie> cookies,
PortletPageNavigationalState pageNavigationalState,
java.lang.String windowId)
throws PortletInvokerException
PortletInvokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||