ContextPathAware class abstract interface

A contract for components that need knowledge of the server's context path.

The context path defines the base path under which the web server exposes its endpoints. Implementers of this interface receive this information for routing, URL generation, or configuration purposes.

Example

class UrlBuilderComponent implements ContextPathAware {
  late String _contextPath;

  @override
  void setContextPath(String contextPath) {
    _contextPath = contextPath;
  }
}

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setContextPath(String contextPath) → void
Provides the implementing component with the server's base context path.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited