1 package com.atlassian.xwork.results;
2
3 import com.atlassian.xwork.results.ProfiledVelocityResult;
4
5 /**
6 * Sets the default content type to "text/xml" in order to serve xml only pages (like RSS)
7 * <p>
8 * You should create a result for this in xwork.xml, and add it to action configs that serve RSS views.
9 */
10 public class XmlVelocityResult extends ProfiledVelocityResult
11 {
12 protected String getContentType(String s)
13 {
14 return "text/xml";
15 }
16 }