org.apache.tapestry.services.impl
Class LinkFactoryImpl

java.lang.Object
  |
  +--org.apache.tapestry.services.impl.LinkFactoryImpl
All Implemented Interfaces:
LinkFactory

public class LinkFactoryImpl
extends java.lang.Object
implements LinkFactory

Since:
3.1
Author:
Howard M. Lewis Ship

Constructor Summary
LinkFactoryImpl()
           
 
Method Summary
 ILink constructLink(IRequestCycle cycle, java.util.Map parameters, boolean stateful)
          Constructs an ILink.
 java.lang.Object[] extractServiceParameters(IRequestCycle cycle)
          A secondary function of the service is to convert encoded (aka "squeezed") service parameters back into an array of Objects.
 ServiceEncoder[] getServiceEncoders()
          Returns an array of ServiceEncoder, ordering into execution order.
 void initializeService()
           
 void setContextPath(java.lang.String contextPath)
           
 void setContributions(java.util.List contributions)
           
 void setDataSqueezer(DataSqueezer dataSqueezer)
           
 void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
           
 void setServletPath(java.lang.String servletPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkFactoryImpl

public LinkFactoryImpl()
Method Detail

initializeService

public void initializeService()

constructLink

public ILink constructLink(IRequestCycle cycle,
                           java.util.Map parameters,
                           boolean stateful)
Description copied from interface: LinkFactory
Constructs an ILink.

Specified by:
constructLink in interface LinkFactory
Parameters:
cycle - the current request cycle
parameters - A map; keys are strings and values are strings or string arrays (exception: key ServiceConstants.PARAMETERis 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.

getServiceEncoders

public ServiceEncoder[] getServiceEncoders()
Description copied from interface: LinkFactory
Returns an array of ServiceEncoder, ordering into execution order. May return an empty array, but won't return null.

Specified by:
getServiceEncoders in interface LinkFactory

extractServiceParameters

public java.lang.Object[] extractServiceParameters(IRequestCycle cycle)
Description copied from interface: LinkFactory
A secondary function of the service is to convert encoded (aka "squeezed") service parameters back into an array of Objects. This does makes sense .. the link factory is responsible for encoding the service parameters, it should be responsible for decoding them.

Specified by:
extractServiceParameters in interface LinkFactory
Parameters:
cycle - the current request cycle
Returns:
an array of Object[]. May return an empty array, but won't return null.

setDataSqueezer

public void setDataSqueezer(DataSqueezer dataSqueezer)

setContributions

public void setContributions(java.util.List contributions)

setErrorLog

public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)

setServletPath

public void setServletPath(java.lang.String servletPath)

setContextPath

public void setContextPath(java.lang.String contextPath)