Class SoyResult

java.lang.Object
com.atlassian.confluence.struts.soy.SoyResult
All Implemented Interfaces:
Serializable, org.apache.struts2.result.Result
Direct Known Subclasses:
SoyResult

public class SoyResult extends Object implements org.apache.struts2.result.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>
 
Since:
9.3
See Also:
  • Constructor Details

    • SoyResult

      public SoyResult()
  • Method Details

    • execute

      public void execute(org.apache.struts2.ActionInvocation invocation) throws Exception
      Specified by:
      execute in interface org.apache.struts2.result.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)