com.atlassian.confluence.setup.webwork
Class EncodingVelocityResult

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended by com.opensymphony.webwork.dispatcher.VelocityResult
          extended by com.atlassian.xwork.results.ProfiledVelocityResult
              extended by com.atlassian.confluence.setup.webwork.EncodingVelocityResult
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, java.io.Serializable

public class EncodingVelocityResult
extends com.atlassian.xwork.results.ProfiledVelocityResult

Webwork Velocity result that adds automatic HTML entity encoding support to the result context if the final content type is "text/html".

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
DEFAULT_PARAM, parse
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Constructor Summary
EncodingVelocityResult()
           
 
Method Summary
protected  org.apache.velocity.context.Context createContext(com.opensymphony.webwork.views.velocity.VelocityManager velocityManager, com.opensymphony.xwork.util.OgnlValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String location)
           
 void doExecute(java.lang.String location, com.opensymphony.xwork.ActionInvocation invocation)
           
 
Methods inherited from class com.atlassian.xwork.results.ProfiledVelocityResult
getTemplate
 
Methods inherited from class com.opensymphony.webwork.dispatcher.VelocityResult
getContentType, getEncoding
 
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
execute, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingVelocityResult

public EncodingVelocityResult()
Method Detail

createContext

protected org.apache.velocity.context.Context createContext(com.opensymphony.webwork.views.velocity.VelocityManager velocityManager,
                                                            com.opensymphony.xwork.util.OgnlValueStack stack,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response,
                                                            java.lang.String location)
Overrides:
createContext in class com.opensymphony.webwork.dispatcher.VelocityResult

doExecute

public void doExecute(java.lang.String location,
                      com.opensymphony.xwork.ActionInvocation invocation)
               throws java.lang.Exception
Overrides:
doExecute in class com.atlassian.xwork.results.ProfiledVelocityResult
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.