public class UrlVar extends SimpleVar
The format for this var is
The advantage of using this variable is that you can resolve URLs with special protocols such as
See UriResolver
for the kinds of URIs that can be resolved.
Uses the URI resolver returned by RestRequest.getUriResolver(UriResolution, UriRelativity)
with resolution
UriResolution.ROOT_RELATIVE
and relativity UriRelativity.RESOURCE
.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this variable.
|
Constructor and Description |
---|
UrlVar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(VarResolverSession session,
String key)
The interface that needs to be implemented for subclasses of
SimpleVar . |
allowNested, allowRecurse, doResolve, getName
public static final String NAME
public UrlVar()
Copyright © 2018 Apache. All rights reserved.