Endpoints class

Constructors

Endpoints()

Properties

connectors Map<String, EndpointConnector>
All connectors associating endpoint method names with the actual methods.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
modules Map<String, EndpointDispatch>
References to modules.
getter/setter pairinherited
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.
inherited
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.
inherited
handleUriCall(Server server, String endpointName, 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.
inherited
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