Package org.xwiki.rendering.async
Interface AsyncContextHandler
-
@Role public interface AsyncContextHandlerCalled to give a chance to an handler to do something with the values associated to a cached rendering (inject some required skin extension for example).- Since:
- 10.10RC1
- Version:
- $Id: 8b3e7ce073b2f8b883ad3c8ab162132fa4a9a7d9 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddHTMLHead(StringBuilder head, Collection<Object> values)Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).default voidaddHTMLHead(StringBuilder head, Collection<Object> values, boolean scripts)Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).default voidaddHTMLScripts(StringBuilder head, Collection<Object> values)Add to the returned HTML the required script elements.voiduse(Collection<Object> values)
-
-
-
Method Detail
-
use
void use(Collection<Object> values)
- Parameters:
values- the values to restore
-
addHTMLHead
void addHTMLHead(StringBuilder head, Collection<Object> values)
Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).- Parameters:
head- the head to fillvalues- the values for which to add HTML meta (if needed)
-
addHTMLHead
default void addHTMLHead(StringBuilder head, Collection<Object> values, boolean scripts)
Add to the returned HTML head tags required elements (required js/css, metadatas, etc.).- Parameters:
head- the head to fillvalues- the values for which to add HTML meta (if needed)scripts- true if the scripts should be included- Since:
- 11.9RC1
-
addHTMLScripts
default void addHTMLScripts(StringBuilder head, Collection<Object> values)
Add to the returned HTML the required script elements.- Parameters:
head- the head to fillvalues- the values for which to add HTML meta (if needed)- Since:
- 11.9RC1
-
-