com.atlassian.xwork.results
Class XmlVelocityResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.opensymphony.webwork.dispatcher.VelocityResult
com.atlassian.xwork.results.ProfiledVelocityResult
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
| 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 |
| 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 |
XmlVelocityResult
public XmlVelocityResult()
getContentType
protected String getContentType(String s)
- Overrides:
getContentType in class com.opensymphony.webwork.dispatcher.VelocityResult
Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.