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.BaseWebAppDecoratorRenders Velocity decorators with a context map of objects provided by Confluence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceConfluenceSitemeshDecorator.ErrorHandlingStrategy
-
Field Summary
Fields Modifier and Type Field Description static booleanBUFFER_RESPONSEstatic StringCONFLUENCE_SITEMESH_DECORATOR_ATTRIBUTEprotected static ConfluenceSitemeshDecorator.ErrorHandlingStrategyERROR_SENDING_STRATEGYprotected static ConfluenceSitemeshDecorator.ErrorHandlingStrategyERROR_THROWING_STRATEGYstatic StringHTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyDecorator(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.DecoratorgetDecorator()protected voidrender(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 voidrenderInternal(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:
renderin classcom.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator- Throws:
IOExceptionjavax.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:
IOExceptionjavax.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.ServletExceptionIOException
-
getDecorator
protected com.opensymphony.module.sitemesh.Decorator getDecorator()
-
-