FrameworkHandlerAdapter class
Adapter responsible for handling Jetleaf's internal framework routes.
The FrameworkHandlerAdapter executes internal framework endpoints
registered by Jetleaf itself—such as diagnostic pages, system routes,
or default resources exposed via FrameworkHandlerMapping.
Unlike user-defined routes or annotated controllers, these handlers are built directly into the framework and generally use lightweight route definitions without external dependencies.
Responsibilities
- Identify FrameworkHandlerMethod instances.
- Invoke the handler's underlying route function.
- Delegate the result to the configured
CompositeReturnValueHandler.
Example
final adapter = FrameworkHandlerAdapter(argResolver, returnHandler);
if (adapter.supports(handler)) {
await adapter.handle(request, response, handler);
}
{@macro abstract_url_handler_adapter}
- Inheritance
-
- Object
- AbstractUrlHandlerAdapter
- FrameworkHandlerAdapter
- Annotations
-
- @Author.new("Evaristus Adimonyemma")
Constructors
- FrameworkHandlerAdapter(MethodArgumentResolverManager methodArgumentResolver, ReturnValueHandlerManager methodReturnValueHandler)
- Adapter responsible for handling Jetleaf's internal framework routes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodArgumentResolver → MethodArgumentResolverManager
-
The composite argument resolver responsible for resolving method parameters
dynamically during handler invocation.
finalinherited
- methodReturnValueHandler → ReturnValueHandlerManager
-
The composite return value handler that processes and writes handler results
(e.g., JSON serialization, view rendering, redirects).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doHandle(
HandlerMethod handler, Object target, ServerHttpRequest request, ServerHttpResponse response, Method method) → Future< void> -
Executes the given handler method for the current HTTP request lifecycle.
inherited
-
handle(
ServerHttpRequest request, ServerHttpResponse response, HandlerMethod handler) → Future< void> -
Handles the given HandlerMethod for the provided HTTP
requestandresponse.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supports(
HandlerMethod handler) → bool -
Determines whether this adapter supports the given HandlerMethod.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited