|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.services.impl.LinkFactoryImpl
Constructor Summary | |
LinkFactoryImpl()
|
Method Summary | |
ILink |
constructLink(IRequestCycle cycle,
java.util.Map parameters,
boolean stateful)
Constructs an ILink . |
java.lang.Object[] |
extractListenerParameters(IRequestCycle cycle)
A secondary function of the service is to convert encoded (aka "squeezed") listener 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 |
setPersistenceStrategySource(PropertyPersistenceStrategySource persistenceStrategySource)
This is kind of limiting; it's possible that other things beyond persistence strategies will want to have a hand at encoding data into URLs. |
void |
setRequest(WebRequest request)
|
void |
setServletPath(java.lang.String servletPath)
|
protected void |
squeezeServiceParameters(java.util.Map parameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinkFactoryImpl()
Method Detail |
public void initializeService()
public ILink constructLink(IRequestCycle cycle, java.util.Map parameters, boolean stateful)
LinkFactory
ILink
.
constructLink
in interface LinkFactory
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.public ServiceEncoder[] getServiceEncoders()
LinkFactory
ServiceEncoder
, ordering into
execution order. May return an empty array, but won't return null.
getServiceEncoders
in interface LinkFactory
protected void squeezeServiceParameters(java.util.Map parameters)
public java.lang.Object[] extractListenerParameters(IRequestCycle cycle)
LinkFactory
extractListenerParameters
in interface LinkFactory
cycle
- the current request cycle
public void setDataSqueezer(DataSqueezer dataSqueezer)
public void setContributions(java.util.List contributions)
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
public void setServletPath(java.lang.String servletPath)
public void setContextPath(java.lang.String contextPath)
public void setRequest(WebRequest request)
public void setPersistenceStrategySource(PropertyPersistenceStrategySource persistenceStrategySource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |