Class ConfluenceSitemeshDecorator
- java.lang.Object
-
- com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
-
- com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator
-
- All Implemented Interfaces:
com.opensymphony.sitemesh.Decorator
- Direct Known Subclasses:
ConfluenceSitemeshErrorDecorator
public class ConfluenceSitemeshDecorator extends com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
Renders Velocity decorators with a context map of objects provided by Confluence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
ConfluenceSitemeshDecorator.ErrorHandlingStrategy
-
Field Summary
Fields Modifier and Type Field Description static boolean
BUFFER_RESPONSE
static String
CONFLUENCE_SITEMESH_DECORATOR_ATTRIBUTE
protected static ConfluenceSitemeshDecorator.ErrorHandlingStrategy
ERROR_SENDING_STRATEGY
protected static ConfluenceSitemeshDecorator.ErrorHandlingStrategy
ERROR_THROWING_STRATEGY
static String
HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected com.opensymphony.module.sitemesh.Decorator
getDecorator()
protected void
render(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext siteMeshWebAppContext)
protected void
renderInternal(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
public static final String HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
- See Also:
- Constant Field Values
-
BUFFER_RESPONSE
public static final boolean BUFFER_RESPONSE
-
ERROR_SENDING_STRATEGY
protected static final ConfluenceSitemeshDecorator.ErrorHandlingStrategy ERROR_SENDING_STRATEGY
-
ERROR_THROWING_STRATEGY
protected static final ConfluenceSitemeshDecorator.ErrorHandlingStrategy ERROR_THROWING_STRATEGY
-
CONFLUENCE_SITEMESH_DECORATOR_ATTRIBUTE
public static final String CONFLUENCE_SITEMESH_DECORATOR_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
protected void render(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext, com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext siteMeshWebAppContext) throws IOException, javax.servlet.ServletException
- Specified by:
render
in classcom.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator
- Throws:
IOException
javax.servlet.ServletException
-
renderInternal
protected void renderInternal(com.opensymphony.sitemesh.Content content, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
applyDecorator
public void applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
getDecorator
protected com.opensymphony.module.sitemesh.Decorator getDecorator()
-
-