org.apache.tapestry.jsp
Class AbstractTapestryTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.tapestry.jsp.AbstractTapestryTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
AbstractLinkTag, AbstractURLTag

public abstract class AbstractTapestryTag
extends TagSupport

Contains common code and methods for all the Tapestry JSP tag implementations.

Since:
3.0
Version:
$Id: AbstractTapestryTag.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
AbstractTapestryTag()
           
 
Method Summary
protected  Object[] constructExternalServiceParameters(String pageName, String parameters)
          Builds an object array appropriate for use as the service parameters for the external service.
protected  Object[] convertParameters(String _parameters)
          The external service allows service parameters (an array of objects) to be passed along inside the URL.
 String getServlet()
           
protected abstract  URLRetriever getURLRetriever()
          Implemented in subclasses to provide a URLRetriever instance that can insert the correct URL into the output.
 void setServlet(String servlet)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTapestryTag

public AbstractTapestryTag()
Method Detail

getServlet

public String getServlet()

setServlet

public void setServlet(String servlet)

getURLRetriever

protected abstract URLRetriever getURLRetriever()
                                         throws JspException
Implemented in subclasses to provide a URLRetriever instance that can insert the correct URL into the output.

Throws:
JspException

constructExternalServiceParameters

protected Object[] constructExternalServiceParameters(String pageName,
                                                      String parameters)
                                               throws JspException
Builds an object array appropriate for use as the service parameters for the external service. The first object in the array is the name of the page. Any additional objects are service parameters to be supplied to the listener method.

The parameters are converted to an array of objects via convertParameters(String).

Throws:
JspException

convertParameters

protected Object[] convertParameters(String _parameters)
                              throws JspException

The external service allows service parameters (an array of objects) to be passed along inside the URL. This method converts the input string into an array of parameter objects.

Throws:
JspException