FrameworkHandlerMethod class final
A lightweight HandlerMethod representing a framework-provided route.
This handler type is used by FrameworkHandlerMapping to execute
built-in route definitions that do not belong to user controllers.
Instead of a target class, it reflects back to its own class type.
Purpose
- Represents internal framework endpoints (e.g.,
/jetleaf). - Avoids dependency on any user-defined pods or controller pods.
- Integrates seamlessly into the normal handler dispatch process.
Example
final handler = FrameworkHandlerMethod(
DefaultHandlerExecutionContext(),
definition,
);
final ctx = handler.getContext();
ctx.invoke(); // Executes the internal handler
See also
- Implemented types
- Annotations
-
- @Author.new("Evaristus Adimonyemma")
Constructors
- FrameworkHandlerMethod(HandlerArgumentContext _context, RouteDefinition definition)
-
Creates a new FrameworkHandlerMethod for the given
definition.
Properties
- definition → RouteDefinition
-
The route definition corresponding to this handler.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getContext(
) → HandlerArgumentContext -
Returns the execution context associated with this handler.
override
-
getHttpMethod(
) → HttpMethod -
The HTTP method associated with this handler (e.g.
GET,POST, etc).override -
getInvokingClass(
) → Class -
Returns the reflective
Classthat declares this handler.override -
getMethod(
) → Method? -
Returns the reflective
Methodthat declares this handler.override -
getPath(
) → String -
The path of the request as written
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited