com.atlassian.confluence.xwork
Class SoyResult

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

public class SoyResult
extends java.lang.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)
           
 java.lang.String getCompleteModuleKey()
           
 java.lang.String getContentType()
           
 java.lang.String getEncoding()
           
 java.lang.String getLocation()
           
 java.lang.String getTemplate()
           
 void setCompleteModuleKey(java.lang.String completeModuleKey)
           
 void setContentType(java.lang.String contentType)
           
 void setEncoding(java.lang.String encoding)
           
 void setLocation(java.lang.String location)
           
 void setTemplate(java.lang.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 java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Result
Throws:
java.lang.Exception

getCompleteModuleKey

public java.lang.String getCompleteModuleKey()

setCompleteModuleKey

public void setCompleteModuleKey(java.lang.String completeModuleKey)

getTemplate

public java.lang.String getTemplate()

setTemplate

public void setTemplate(java.lang.String template)

getLocation

public java.lang.String getLocation()

setLocation

public void setLocation(java.lang.String location)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)


Copyright © 2003-2014 Atlassian. All Rights Reserved.