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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkFactoryImpl
public LinkFactoryImpl()
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 cycleparameters
- 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.
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)