org.apache.tapestry.engine
Class TagSupportService

java.lang.Object
  extended by org.apache.tapestry.engine.TagSupportService
All Implemented Interfaces:
IEngineService

public class TagSupportService
extends Object
implements IEngineService

A very specialized service used by JSPs to access Tapestry URLs. This is used by the Tapestry JSP tags, such as PageTag.

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

Constructor Summary
TagSupportService()
           
 
Method Summary
 ILink getLink(IRequestCycle cycle, IComponent component, Object[] parameters)
          Not to be invoked; this service is different than the others.
 String getName()
          Returns the name of the service.
 void service(IEngineServiceView engine, IRequestCycle cycle, ResponseOutputStream output)
          Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagSupportService

public TagSupportService()
Method Detail

getLink

public ILink getLink(IRequestCycle cycle,
                     IComponent component,
                     Object[] parameters)
Not to be invoked; this service is different than the others.

Specified by:
getLink in interface IEngineService
Parameters:
cycle - Defines the request cycle being processed.
component - The component requesting the URL. Generally, the service context is established from the component.
parameters - Additional parameters specific to the component requesting the EngineServiceLink.
Returns:
The URL for the service. The URL will have to be encoded via HttpServletResponse.encodeURL(java.lang.String).
Throws:
ApplicationRuntimeException - always

service

public void service(IEngineServiceView engine,
                    IRequestCycle cycle,
                    ResponseOutputStream output)
             throws ServletException,
                    IOException
Description copied from interface: IEngineService
Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a result page.

Specified by:
service in interface IEngineService
Parameters:
engine - a view of the IEngine with additional methods needed by services
cycle - the incoming request
output - stream to which output should ultimately be directed
Throws:
ServletException
IOException
See Also:
IEngine.service(org.apache.tapestry.request.RequestContext)

getName

public String getName()
Description copied from interface: IEngineService
Returns the name of the service.

Specified by:
getName in interface IEngineService
Returns:
Tapestry.TAGSUPPORT_SERVICE.