|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.engine.AbstractService
public abstract class AbstractService
Abstract base class for implementing engine services. Instances of services are shared by many engines and threads, so they must be threadsafe.
Note; too much of the URL encoding/decoding stategy is fixed here. A future release of Tapestry may extract this strategy, allowing developers to choose the method via which URLs are encoded.
AbstractEngine.getService(String)
Constructor Summary | |
---|---|
AbstractService()
|
Method Summary | |
---|---|
protected ILink |
constructLink(IRequestCycle cycle,
String serviceName,
String[] serviceContext,
Object[] parameters,
boolean stateful)
Constructs a link for the service. |
protected Object[] |
getParameters(IRequestCycle cycle)
Returns the service parameters as an array of Strings. |
protected String[] |
getServiceContext(RequestContext context)
Returns the service context as an array of Strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.engine.IEngineService |
---|
getLink, getName, service |
Constructor Detail |
---|
public AbstractService()
Method Detail |
---|
protected ILink constructLink(IRequestCycle cycle, String serviceName, String[] serviceContext, Object[] parameters, boolean stateful)
cycle
- the request cycleserviceName
- the name of the serviceserviceContext
- context related to the service itself which is added to the URL as-isparameters
- additional service parameters provided by the component;
this is application specific information, and is encoded with
URLEncoder.encode(String)
before being added
to the query.stateful
- if true, the final URL must be encoded with the HttpSession idprotected String[] getServiceContext(RequestContext context)
protected Object[] getParameters(IRequestCycle cycle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |