|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.services.impl.LinkFactoryImpl
public class LinkFactoryImpl
Field Summary | |
---|---|
protected URLCodec |
_codec
|
protected PropertyPersistenceStrategySource |
_persistenceStrategySource
|
protected WebRequest |
_request
|
protected IRequestCycle |
_requestCycle
|
Constructor Summary | |
---|---|
LinkFactoryImpl()
|
Method Summary | |
---|---|
ILink |
constructLink(IEngineService service,
boolean post,
Map parameters,
boolean stateful)
Constructs an ILink . |
protected ServiceEncoding |
createServiceEncoding(QueryParameterMap parameters)
Creates a new service encoding, and allows the encoders to modify it before returning. |
Object[] |
extractListenerParameters(IRequestCycle cycle)
A secondary function of the service is to convert encoded (aka "squeezed") listener parameters back into an array of Objects. |
protected void |
finalizeParameters(IEngineService service,
Map parameters)
|
ServiceEncoder[] |
getServiceEncoders()
Returns an array of ServiceEncoder ,
ordering into execution order. |
void |
initializeService()
|
void |
setContributions(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 |
setRequestCycle(IRequestCycle requestCycle)
|
void |
setServletPath(String servletPath)
|
protected void |
squeezeServiceParameters(Map parameters)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected URLCodec _codec
protected PropertyPersistenceStrategySource _persistenceStrategySource
protected IRequestCycle _requestCycle
protected WebRequest _request
Constructor Detail |
---|
public LinkFactoryImpl()
Method Detail |
---|
public void initializeService()
public ILink constructLink(IEngineService service, boolean post, Map parameters, boolean stateful)
LinkFactory
ILink
.
constructLink
in interface LinkFactory
service
- the service for which the link is being generatedpost
- 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 linkparameters
- 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.protected void finalizeParameters(IEngineService service, Map parameters)
public ServiceEncoder[] getServiceEncoders()
LinkFactory
ServiceEncoder
,
ordering into execution order. May return an empty array, but won't
return null.
getServiceEncoders
in interface LinkFactory
protected ServiceEncoding createServiceEncoding(QueryParameterMap parameters)
protected void squeezeServiceParameters(Map parameters)
public Object[] extractListenerParameters(IRequestCycle cycle)
LinkFactory
extractListenerParameters
in interface LinkFactory
cycle
- the current request cycle
public void setDataSqueezer(DataSqueezer dataSqueezer)
public void setContributions(List contributions)
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
public void setServletPath(String servletPath)
public void setRequest(WebRequest request)
public void setPersistenceStrategySource(PropertyPersistenceStrategySource persistenceStrategySource)
persistenceStrategySource
- The persistent strategy to use.public void setRequestCycle(IRequestCycle requestCycle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |