return new InvokeGetResponse(url);
}
});
//
seq.bindAction(2, p1actionjp, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
calls.add("2_action");
}
});
seq.bindAction(2, p1renderjp, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
// Should be called
calls.add("2_render");
// Refresh with different URL
PortletURL url = configurator.createPortletURL(response);
return new InvokeGetResponse(url.toString());
}
});
//
seq.bindAction(3, p1renderjp, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
// Should be called
calls.add("3");
// Invoke with same different URL
PortletURL url = configurator.createPortletURL(response);
return new InvokeGetResponse(url.toString());
}
});
//
seq.bindAction(4, p1renderjp, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
// Should not be called
calls.add("4");
return null;
}
});
seq.bindAction(4, p2renderjp, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
// Invalidate with action
return new InvokeGetResponse(url);
}
});
//
seq.bindAction(5, p1actionjp, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
calls.add("5_action");