throw new IllegalStateException("Calling PortletURL toString or write methods from a PortletURLGenerationListener not allowed");
}
filtering = true;
try
{
PortletURLListenerService service = responseContext.getContainer().getContainerServices().getPortletURLListenerService();
PortletApplicationDefinition portletApp = responseContext.getPortletWindow().getPortletDefinition().getApplication();
for (PortletURLGenerationListener listener : service.getPortletURLGenerationListeners(portletApp))
{
if (PortletURLProvider.TYPE.ACTION == urlProvider.getType())
{
listener.filterActionURL(this);
}