Package org.apache.juneau.rest.vars
Class UrlVar
java.lang.Object
org.apache.juneau.svl.Var
org.apache.juneau.svl.SimpleVar
org.apache.juneau.rest.vars.UrlVar
URL variable resolver.
 
 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.
 
 This variable resolver requires that a RestRequest bean be available in the session bean store.
 
 Uses the URI resolver returned by RestRequest.getUriResolver().
 
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanResolve(VarResolverSession session) Returnstrue if this variable can be resolved in the specified session.resolve(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.svl.VarallowNested, allowRecurse, doResolve, getName
- 
Field Details- 
NAMEThe name of this variable.- See Also:
 
 
- 
- 
Constructor Details- 
UrlVarpublic UrlVar()Constructor.
 
- 
- 
Method Details- 
resolveDescription copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar.
- 
canResolveDescription copied from class:VarReturnstrue if this variable can be resolved in the specified session.For example, some variable cannot resolve unless specific context or session objects are available. - Overrides:
- canResolvein class- Var
- Parameters:
- session- The current session.
- Returns:
- true if this variable can be resolved in the specified session.
 
 
-