org.apache.tapestry.portlet
Class PortletLinkFactoryImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.LinkFactoryImpl
      extended by org.apache.tapestry.portlet.PortletLinkFactoryImpl
All Implemented Interfaces:
LinkFactory

public class PortletLinkFactoryImpl
extends LinkFactoryImpl

Extended version of LinkFactoryImpl that can create generate Portlet URLs.

Since:
4.0
Author:
Howard M. Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.services.impl.LinkFactoryImpl
_codec, _persistenceStrategySource, _request, _requestCycle
 
Constructor Summary
PortletLinkFactoryImpl()
           
 
Method Summary
 ILink constructLink(IEngineService service, boolean post, Map parameters, boolean stateful)
          Constructs an ILink.
 void setRenderResponse(javax.portlet.RenderResponse renderResponse)
           
 
Methods inherited from class org.apache.tapestry.services.impl.LinkFactoryImpl
createServiceEncoding, extractListenerParameters, finalizeParameters, getServiceEncoders, initializeService, setContributions, setDataSqueezer, setErrorLog, setPersistenceStrategySource, setRequest, setRequestCycle, setServletPath, squeezeServiceParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletLinkFactoryImpl

public PortletLinkFactoryImpl()
Method Detail

setRenderResponse

public void setRenderResponse(javax.portlet.RenderResponse renderResponse)

constructLink

public ILink constructLink(IEngineService service,
                           boolean post,
                           Map parameters,
                           boolean stateful)
Description copied from interface: LinkFactory
Constructs an ILink.

Specified by:
constructLink in interface LinkFactory
Overrides:
constructLink in class LinkFactoryImpl
Parameters:
service - the service for which the link is being generated
post - if true, then the link will be used for a post (not a get, i.e., for a HTML form); this may affect what information is encoded into the link
parameters - A map; keys are strings and values are strings or string arrays (exception: key ServiceConstants.PARAMETER is an array of objects. Certain keys, defined in ServiceConstants may have special meaning. The map will typically be modified internally. May not be null.
stateful - If true, then the final URL should be encoded (with the session id) if necessary. If false, the session encoding should not occur. The latter case is useful for services that will absolutely not need any access to user-specific state.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.