Class EncodingVelocityResult
java.lang.Object
org.apache.struts2.result.StrutsResultSupport
org.apache.struts2.views.velocity.result.VelocityResult
com.atlassian.struts.result.ProfiledVelocityResult
com.atlassian.confluence.setup.struts.EncodingVelocityResult
- All Implemented Interfaces:
com.opensymphony.xwork2.Result,Serializable,org.apache.struts2.result.Result,org.apache.struts2.StrutsStatics
public class EncodingVelocityResult
extends com.atlassian.struts.result.ProfiledVelocityResult
Struts Velocity result that adds automatic HTML entity encoding support to the result context if the final content
type is "text/html".
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.Result
com.opensymphony.xwork2.Result.LegacyAdapter -
Field Summary
Fields inherited from class org.apache.struts2.result.StrutsResultSupport
DEFAULT_PARAM, DEFAULT_URL_ENCODING, parseLocationFields inherited from interface org.apache.struts2.StrutsStatics
ACTION_MAPPING, HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.velocity.context.ContextcreateContext(org.apache.struts2.views.velocity.VelocityManagerInterface velocityManager, com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String location) voidMethods inherited from class com.atlassian.struts.result.ProfiledVelocityResult
getTemplateMethods inherited from class org.apache.struts2.views.velocity.result.VelocityResult
createContext, getContentType, getEncoding, setDefaultEncoding, setVelocityManager, setVelocityManagerMethods inherited from class org.apache.struts2.result.StrutsResultSupport
conditionalParse, conditionalParseCollection, doExecute, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.xwork2.Result
execute
-
Constructor Details
-
EncodingVelocityResult
public EncodingVelocityResult()
-
-
Method Details
-
createContext
protected org.apache.velocity.context.Context createContext(org.apache.struts2.views.velocity.VelocityManagerInterface velocityManager, com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String location) - Overrides:
createContextin classorg.apache.struts2.views.velocity.result.VelocityResult
-
doExecute
public void doExecute(String location, com.opensymphony.xwork2.ActionInvocation invocation) throws Exception - Overrides:
doExecutein classcom.atlassian.struts.result.ProfiledVelocityResult- Throws:
Exception
-