Module io.jooby
Package io.jooby

Interface ParamLookup.Stage

All Superinterfaces:
ParamLookup
Enclosing interface:
ParamLookup

public static interface ParamLookup.Stage extends ParamLookup
Fluent interface allowing to conveniently search context parameters in multiple sources.

 Value foo = ctx.lookup()
   .inQuery()
   .inPath()
   .get("foo");
 
See Also:
  • Method Details

    • get

      Value get(String name)
      Searches for a parameter in the specified sources, in the specified order, returning the first non-missing Value, or a 'missing' Value if none found.
      Parameters:
      name - The name of the parameter.
      Returns:
      The first non-missing Value or a Value representing a missing value if none found.
    • getNode

      default Optional<ValueNode> getNode(String name)
      Wraps the result of get(String) in an Optional if the value is a ValueNode or returns an empty Optional otherwise.
      Parameters:
      name - The name of the parameter.
      Returns:
      An Optional wrapping the result of get(String)