com.atlassian.xwork.results
Class XmlVelocityResult

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended by com.opensymphony.webwork.dispatcher.VelocityResult
          extended by com.atlassian.xwork.results.ProfiledVelocityResult
              extended by com.atlassian.xwork.results.XmlVelocityResult
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, Serializable

public class XmlVelocityResult
extends ProfiledVelocityResult

Sets the default content type to "text/xml" in order to serve xml only pages (like RSS)

You should create a result for this in xwork.xml, and add it to action configs that serve RSS views.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
DEFAULT_PARAM, parse
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Constructor Summary
XmlVelocityResult()
           
 
Method Summary
protected  String getContentType(String s)
           
 
Methods inherited from class com.atlassian.xwork.results.ProfiledVelocityResult
doExecute, getTemplate
 
Methods inherited from class com.opensymphony.webwork.dispatcher.VelocityResult
createContext, getEncoding
 
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
execute, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlVelocityResult

public XmlVelocityResult()
Method Detail

getContentType

protected String getContentType(String s)
Overrides:
getContentType in class com.opensymphony.webwork.dispatcher.VelocityResult


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.