com.atlassian.confluence.setup.webwork
Class EncodingVelocityResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.opensymphony.webwork.dispatcher.VelocityResult
com.atlassian.xwork.results.ProfiledVelocityResult
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
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 |
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 |
EncodingVelocityResult
public EncodingVelocityResult()
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.