Class 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 Detail

      • SoyResult

        public SoyResult()
    • Method Detail

      • execute

        public void execute​(com.opensymphony.xwork2.ActionInvocation invocation)
                     throws Exception
        Specified by:
        execute in interface com.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)