dispatchAndCatchRuntimeException(portlet, request, response);
return new InvokeGetResponse(response.createResourceURL().toString());
}
});
seq.bindAction(1, UTS1.SERVICE_JOIN_POINT, throwRuntimeException);
seq.bindAction(2, UTP1.RESOURCE_JOIN_POINT, new PortletResourceTestAction()
{
protected Response run(Portlet portlet, ResourceRequest request, ResourceResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchRuntimeException(portlet, request, response);
return new InvokeGetResponse(response.createActionURL().toString());
}
});
seq.bindAction(2, UTS1.SERVICE_JOIN_POINT, throwRuntimeException);
//
seq.bindAction(3, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchIOException(portlet, request, response);
response.setEvent("Event", null);
}
});
seq.bindAction(3, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchIOException(portlet, request, response);
}
});
seq.bindAction(3, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchIOException(portlet, request, response);
return new InvokeGetResponse(response.createResourceURL().toString());
}
});
seq.bindAction(3, UTS1.SERVICE_JOIN_POINT, throwIOException);
seq.bindAction(4, UTP1.RESOURCE_JOIN_POINT, new PortletResourceTestAction()
{
protected Response run(Portlet portlet, ResourceRequest request, ResourceResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchIOException(portlet, request, response);
return new InvokeGetResponse(response.createActionURL().toString());
}
});
seq.bindAction(4, UTS1.SERVICE_JOIN_POINT, throwIOException);
//
seq.bindAction(5, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchServletException(portlet, request, response);
response.setEvent("Event", null);
}
});
seq.bindAction(5, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchServletException(portlet, request, response);
}
});
seq.bindAction(5, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException
{
dispatchAndCatchServletException(portlet, request, response);
return new InvokeGetResponse(response.createResourceURL().toString());
}
});
seq.bindAction(5, UTS1.SERVICE_JOIN_POINT, throwServletException);
seq.bindAction(6, UTP1.RESOURCE_JOIN_POINT, new PortletResourceTestAction()
{
protected Response run(Portlet portlet, ResourceRequest request, ResourceResponse response, PortletTestContext context) throws PortletException, IOException
{
dispatchAndCatchServletException(portlet, request, response);
return new InvokeGetResponse(response.createRenderURL().toString());