public class SerializedRequestAttrVar extends StreamedVar
The format for this var is
This variable resolver requires that a RestRequest
object be set as a context object on the resolver or a
session object on the resolver session.
Since this is a SimpleVar
, any variables contained in the result will be recursively resolved.
Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this variable.
|
Constructor and Description |
---|
SerializedRequestAttrVar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowNested()
Returns whether nested variables are supported by this variable.
|
protected boolean |
allowRecurse()
Returns whether variables in the resolved contents of this variable should also be resolved.
|
boolean |
canResolve(VarResolverSession session)
Returns
|
void |
resolveTo(VarResolverSession session,
Writer w,
String key)
The interface that needs to be implemented for subclasses of
StreamedVar . |
resolve
public static final String NAME
public SerializedRequestAttrVar()
public void resolveTo(VarResolverSession session, Writer w, String key) throws Exception
Var
StreamedVar
.protected boolean allowNested()
Var
For example, in
The default implementation of this method always returns
allowNested
in class Var
protected boolean allowRecurse()
Var
For example, if
The default implementation of this method always returns
Subclasses can override this method to override the default behavior.
allowRecurse
in class Var
public boolean canResolve(VarResolverSession session)
Var
For example, some variable cannot resolve unless specific context or session objects are available.
canResolve
in class Var
session
- The current session.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.