Class ParameterValue

java.lang.Object
io.fluxcapacitor.javaclient.web.ParameterValue

public class ParameterValue extends Object
Wrapper around a Value representing a resolved parameter value in a web request.

This class is used internally by Flux Capacitor to abstract over raw parameter values retrieved from different parts of a WebRequestContext (such as query strings, form data, path variables, headers, or cookies).

The value is backed by Jooby’s Value type, which provides flexible conversion and null-safe access to typed values.

Usage

ParameterValue instances are returned by methods such as: These are used during web handler method resolution to supply method argument values.
See Also:
  • Constructor Details

    • ParameterValue

      public ParameterValue()
  • Method Details

    • as

      public <V> V as(Class<V> type)
      Converts the underlying value to the specified target type.

      If conversion fails or the value is not present, null is returned.

      Type Parameters:
      V - the generic type to cast to
      Parameters:
      type - the desired target type
      Returns:
      the converted value or null if unavailable