Class ParameterValue
java.lang.Object
io.fluxzero.sdk.web.ParameterValue
Wrapper around a
Value representing a resolved parameter value in a web request.
This class is used internally by Fluxzero 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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ParameterValue
public ParameterValue()
-
-
Method Details
-
as
Converts the underlying value to the specified target type.If conversion fails or the value is not present,
nullis returned.- Type Parameters:
V- the generic type to cast to- Parameters:
type- the desired target type- Returns:
- the converted value or
nullif unavailable
-