com.atlassian.confluence.xwork
Class SoyResult

java.lang.Object
  extended by com.atlassian.confluence.xwork.SoyResult
All Implemented Interfaces:
com.opensymphony.xwork.Result, Serializable

public class SoyResult
extends Object
implements com.opensymphony.xwork.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
SoyResult()
           
 
Method Summary
 void execute(com.opensymphony.xwork.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoyResult

public SoyResult()
Method Detail

execute

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


Copyright © 2003–2015 Atlassian. All rights reserved.