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
           
 
Fields inherited from interface com.primix.tapestry.IEngineService
ACTION_SERVICE, ASSET_SERVICE, CONTEXT_QUERY_PARMETER_NAME, DIRECT_SERVICE, HOME_SERVICE, PAGE_SERVICE, PARAMETERS_QUERY_PARAMETER_NAME, RESET_SERVICE, RESTART_SERVICE, SERVICE_QUERY_PARAMETER_NAME
 
Constructor Summary
AbstractService()
           
 
Method Summary
protected  Gesture assembleGesture(java.lang.String servletPath, java.lang.String serviceName, java.lang.String[] serviceContext, java.lang.String[] parameters)
          Assembles a URL.
protected  java.lang.StringBuffer getBuffer()
          Returns a buffer, cleared and ready to go.
protected  java.lang.String[] getParameters(RequestContext context)
          Returns the service parameters as an array of Strings.
protected  java.lang.String[] getServiceContext(RequestContext context)
          Returns the service context as an array of Strings.
protected  StringSplitter getSplitter()
          Returns a StringSplitter configured to split on slashes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.primix.tapestry.IEngineService
buildGesture, getName, service
 

Field Detail

buffer

protected java.lang.StringBuffer buffer
Constructor Detail

AbstractService

public AbstractService()
Method Detail

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 application
serviceName - the name of the service
serviceContext - context related to the service itself which is added to the URL as-is
otherContext - 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).