HtmlWidgetVar@Deprecated public class WidgetVar extends SimpleVar
The format for this var is
Widgets are simple class that produce some sort of string based on a passed-in HTTP request.
They're registered via the following mechanisms:
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
Deprecated.
The name of this variable.
|
| Constructor and Description |
|---|
WidgetVar()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResolve(VarResolverSession session)
Deprecated.
Returns
|
String |
resolve(VarResolverSession session,
String key)
Deprecated.
The interface that needs to be implemented for subclasses of
SimpleVar. |
allowNested, allowRecurse, doResolve, getNamepublic static final String NAME
public WidgetVar()
public String resolve(VarResolverSession session, String key) throws Exception
VarSimpleVar.public boolean canResolve(VarResolverSession session)
VarFor example, some variable cannot resolve unless specific context or session objects are available.
canResolve in class Varsession - The current session.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.