com.primix.tapestry.engine
Class AbstractService
java.lang.Object
|
+--com.primix.tapestry.engine.AbstractService
- All Implemented Interfaces:
- IEngineService
- Direct Known Subclasses:
- AssetService, VirtualLibraryEngine.ExternalService
- public abstract class AbstractService
- extends java.lang.Object
- implements IEngineService
Abstract base class for implementing engine services.
- Since:
- 1.0.3
- Version:
- $Id: AbstractService.java,v 1.1 2001/08/07 20:12:28 hship Exp $
- Author:
- Howard Ship
Field Summary |
protected java.lang.StringBuffer |
buffer
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected java.lang.StringBuffer buffer
AbstractService
public AbstractService()
getBuffer
protected java.lang.StringBuffer getBuffer()
- Returns a buffer, cleared and ready to go.
assembleGesture
protected Gesture assembleGesture(java.lang.String servletPath,
java.lang.String serviceName,
java.lang.String[] serviceContext,
java.lang.String[] parameters)
- Assembles a URL.
- Parameters:
the
- path for the servlet for this Tapestry applicationserviceName
- the name of the serviceserviceContext
- context related to the service itself which is added to the URL as-isotherContext
- additional context provided by the component; this is application specific
information, and is encoded with URLEncoder#encode(String)
before being added
to the query.
getSplitter
protected StringSplitter getSplitter()
- Returns a
StringSplitter
configured to split on slashes.
getServiceContext
protected java.lang.String[] getServiceContext(RequestContext context)
- Returns the service context as an array of Strings.
getParameters
protected java.lang.String[] getParameters(RequestContext context)
- Returns the service parameters as an array of Strings.
The strings will have been passed through
URLDecoder.decode(String)
.