EndpointDispatch class abstract

The EndpointDispatch is responsible for directing requests to the Server to the correct Endpoint and method. Typically, this class is overridden by an Endpoints class that is generated.

Constructors

EndpointDispatch()

Properties

connectors Map<String, EndpointConnector>
All connectors associating endpoint method names with the actual methods.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
modules Map<String, EndpointDispatch>
References to modules.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canUserAccessEndpoint(Session session, Endpoint endpoint) Future<ResultAuthenticationFailed?>
Checks if a user can access an Endpoint. If access is granted null is returned, otherwise a ResultAuthenticationFailed describing the issue is returned.
getConnectorByName(String endpointName) EndpointConnector?
Finds an EndpointConnector by its name. If the connector is in a module, a period should separate the module name from the endpoint name.
handleUriCall(Server server, String path, Uri uri, String body, HttpRequest request) Future<Result>
Dispatches a call to the Server to the correct Endpoint method. If successful, it returns the object from the method. If unsuccessful it will return a Result object.
initializeEndpoints(Server server) → void
Initializes all endpoints that are connected to the dispatch.
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