Class BridgeDirectiveModel
java.lang.Object
org.apache.juneau.console.freemarker.BridgeDirectiveModel
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public final class BridgeDirectiveModel
extends Object
implements freemarker.template.TemplateDirectiveModel
<@bridge id transport session downstream upstream? maxAttempts?/>: declares a server bridge in the
contract's bridges list. The FTL twin of PageSpec.bridge(BridgeDecl). session may be a
servlet: / context: URI; it is resolved against the current request.
Example:
<@topic name="ops.jobs" retain=true publisher="server"/> <@bridge id="ops" transport="sse" session="servlet:/juneau-bus/session" downstream="ops.jobs"/>
- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe shared-variable name this directive registers under.Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Method Summary
-
Field Details
-
NAME
The shared-variable name this directive registers under.- See Also:
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException - Specified by:
executein interfacefreemarker.template.TemplateDirectiveModel- Throws:
freemarker.template.TemplateExceptionIOException
-