org.apache.cocoon.portal.wsrp.consumer
Class URLGeneratorImpl

java.lang.Object
  extended byorg.apache.cocoon.portal.wsrp.consumer.URLGeneratorImpl
All Implemented Interfaces:
RequiresPortalService, RequiresWSRPAdapter, org.apache.wsrp4j.consumer.URLGenerator

public class URLGeneratorImpl
extends Object
implements org.apache.wsrp4j.consumer.URLGenerator, RequiresPortalService, RequiresWSRPAdapter

Implements the URLGenerator interface providing methods to query the consumer's urls.

Version:
$Id: URLGeneratorImpl.java 322475 2005-10-16 14:26:44Z cziegeler $

Field Summary
protected  WSRPAdapter adapter
          The WSRP Adapter.
protected  PortalService service
          The portal service.
 
Constructor Summary
URLGeneratorImpl()
           
 
Method Summary
protected  String generateUrl(Map params)
          Generate the url.
 String getBlockingActionURL(Map params)
           
 String getNamespacedToken(String token)
           
 String getRenderURL(Map params)
           
 String getResourceURL(Map params)
           
 void setPortalService(PortalService service)
           
 void setWSRPAdapter(WSRPAdapter adapter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected PortalService service
The portal service.


adapter

protected WSRPAdapter adapter
The WSRP Adapter.

Constructor Detail

URLGeneratorImpl

public URLGeneratorImpl()
Method Detail

setWSRPAdapter

public void setWSRPAdapter(WSRPAdapter adapter)
Specified by:
setWSRPAdapter in interface RequiresWSRPAdapter
See Also:
RequiresWSRPAdapter.setWSRPAdapter(org.apache.cocoon.portal.wsrp.adapter.WSRPAdapter)

setPortalService

public void setPortalService(PortalService service)
Specified by:
setPortalService in interface RequiresPortalService
See Also:
RequiresPortalService.setPortalService(org.apache.cocoon.portal.PortalService)

getBlockingActionURL

public String getBlockingActionURL(Map params)
Specified by:
getBlockingActionURL in interface org.apache.wsrp4j.consumer.URLGenerator
See Also:
URLGenerator.getBlockingActionURL(java.util.Map)

getRenderURL

public String getRenderURL(Map params)
Specified by:
getRenderURL in interface org.apache.wsrp4j.consumer.URLGenerator
See Also:
URLGenerator.getRenderURL(java.util.Map)

getResourceURL

public String getResourceURL(Map params)
Specified by:
getResourceURL in interface org.apache.wsrp4j.consumer.URLGenerator
See Also:
URLGenerator.getResourceURL(java.util.Map)

getNamespacedToken

public String getNamespacedToken(String token)
Specified by:
getNamespacedToken in interface org.apache.wsrp4j.consumer.URLGenerator
See Also:
URLGenerator.getNamespacedToken(java.lang.String)

generateUrl

protected String generateUrl(Map params)
Generate the url.
We simply create a new wsrp event and use the portal link service.

Parameters:
params - Url-parameters
Returns:
portal-url including all required attributes


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.