org.tigris.scarab.screens
Class RSSDataExport

java.lang.Object
  extended byorg.apache.turbine.modules.Module
      extended byorg.apache.turbine.modules.screens.TemplateScreen
          extended byorg.apache.turbine.TemplateScreen
              extended byorg.tigris.scarab.screens.RSSDataExport

public class RSSDataExport
extends org.apache.turbine.TemplateScreen

Sends rss content directly to the output stream, setting the Content-Type to application/xml; charset=UTF-8.

Author:
Eric Pugh

Field Summary
static java.lang.String DEFAULT_FEED_FORMAT
           
static java.lang.String FEED_FORMAT_KEY
           
static java.lang.String FEED_TYPE_KEY
           
static java.lang.String ISSUE_ID_KEY
           
static java.lang.String QUERY_ID_KEY
           
static java.lang.String USER_ID_KEY
           
 
Constructor Summary
RSSDataExport()
           
 
Method Summary
 void doBuildTemplate(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Sets the Content-Type header for the response.
protected  ScarabLocalizationTool getLocalizationTool(org.apache.turbine.TemplateContext context)
          Helper method to retrieve the ScarabLocalizationTool from the Context
 ScarabLink getScarabLinkTool(org.apache.turbine.TemplateContext context)
          Helper method to retrieve the ScarabRequestTool from the Context
 ScarabRequestTool getScarabRequestTool(org.apache.turbine.TemplateContext context)
          Helper method to retrieve the ScarabRequestTool from the Context
 
Methods inherited from class org.apache.turbine.modules.Module
build, doBuild, doBuildTemplate, evaluate, execute, getPullService, getTemplateContext, getTemplateService, getTool, handleRequest, handleRequest, requestFinished, setTarget, setTemplate, templateExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FEED_FORMAT

public static final java.lang.String DEFAULT_FEED_FORMAT
See Also:
Constant Field Values

QUERY_ID_KEY

public static final java.lang.String QUERY_ID_KEY
See Also:
Constant Field Values

ISSUE_ID_KEY

public static final java.lang.String ISSUE_ID_KEY
See Also:
Constant Field Values

USER_ID_KEY

public static final java.lang.String USER_ID_KEY
See Also:
Constant Field Values

FEED_TYPE_KEY

public static final java.lang.String FEED_TYPE_KEY
See Also:
Constant Field Values

FEED_FORMAT_KEY

public static final java.lang.String FEED_FORMAT_KEY
See Also:
Constant Field Values
Constructor Detail

RSSDataExport

public RSSDataExport()
Method Detail

doBuildTemplate

public void doBuildTemplate(org.apache.turbine.RunData data,
                            org.apache.turbine.TemplateContext context)
                     throws java.lang.Exception
Sets the Content-Type header for the response. Since this assumes we're writing the reponse ourself, indicates no target to render by setting it to null.

Throws:
java.lang.Exception

getLocalizationTool

protected final ScarabLocalizationTool getLocalizationTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabLocalizationTool from the Context


getScarabRequestTool

public ScarabRequestTool getScarabRequestTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabRequestTool from the Context


getScarabLinkTool

public ScarabLink getScarabLinkTool(org.apache.turbine.TemplateContext context)
Helper method to retrieve the ScarabRequestTool from the Context



Copyright © 2000-2004 Tigris.org. All Rights Reserved.