Package com.atlassian.confluence.xwork
Class SoyResult
- java.lang.Object
-
- com.atlassian.confluence.xwork.SoyResult
-
- All Implemented Interfaces:
com.opensymphony.xwork2.Result
,Serializable
public class SoyResult extends Object implements com.opensymphony.xwork2.Result
Represents a soy result. You can declare a soy result using:<result name="success" type="soy"> <param name="completeModuleKey">${project.groupId}.${project.artifactId}:soy-templates</param> <param name="template">Confluence.Templates.templateName</param> </result>
Or more concisely,
<result name="success" type="soy"> <param name="location">${project.groupId}.${project.artifactId}:soy-templates/Confluence.Templates.templateName</param> </result>
The plugin key of the module can also be implicit:
<result name="success" type="soy"> <param name="location">:soy-templates/Confluence.Templates.templateName</param> </result>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SoyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(com.opensymphony.xwork2.ActionInvocation invocation)
String
getCompleteModuleKey()
String
getContentType()
String
getEncoding()
String
getLocation()
String
getTemplate()
void
setCompleteModuleKey(String completeModuleKey)
void
setContentType(String contentType)
void
setEncoding(String encoding)
void
setLocation(String location)
void
setTemplate(String template)
-
-
-
Method Detail
-
execute
public void execute(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Result
- Throws:
Exception
-
getCompleteModuleKey
public String getCompleteModuleKey()
-
setCompleteModuleKey
public void setCompleteModuleKey(String completeModuleKey)
-
getTemplate
public String getTemplate()
-
setTemplate
public void setTemplate(String template)
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getEncoding
public String getEncoding()
-
setEncoding
public void setEncoding(String encoding)
-
-