Endpoints class
Constructors
Properties
-
connectors
↔ Map<
String, EndpointConnector> -
All connectors associating endpoint method names with the actual methods.
getter/setter pairinherited
- futureCalls → FutureCallDispatch?
-
Reference to the generated future calls.
no setterinherited
- 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
-
getConnectorByName(
String endpointName) → EndpointConnector? -
Finds an
EndpointConnectorby its name. If the connector is in a module, a period should separate the module name from the endpoint name.inherited -
getEndpointConnector(
{required Session session, required String endpointPath}) → Future< EndpointConnector> -
Tries to get an
EndpointConnectorfor a given endpoint and method name. If the endpoint is not found, anEndpointNotFoundExceptionis thrown. If the user is not authorized to access the endpoint, aNotAuthorizedExceptionis thrown.inherited -
getMethodCallContext(
{required FutureOr< Session> createSessionCallback(EndpointConnector connector), required String endpointPath, required String methodName, required Map<String, dynamic> parameters, required SerializationManager serializationManager}) → Future<MethodCallContext> -
Tries to get a
MethodCallContextfor a given endpoint and method name. If the method is not found, aMethodNotFoundExceptionis thrown. If the endpoint is not found, anEndpointNotFoundExceptionis thrown. If the user is not authorized to access the endpoint, aNotAuthorizedExceptionis thrown. If the input parameters are invalid, anInvalidParametersExceptionis thrown. If the found method is not aMethodConnector, anInvalidEndpointMethodTypeExceptionis thrown.inherited -
getMethodStreamCallContext(
{required FutureOr< Session> createSessionCallback(EndpointConnector connector), required String endpointPath, required String methodName, required Map<String, dynamic> arguments, required SerializationManager serializationManager, required List<String> requestedInputStreams}) → Future<MethodStreamCallContext> -
Tries to get a
MethodStreamCallContextfor a given endpoint and method name. If the method is not found, aMethodNotFoundExceptionis thrown. If the endpoint is not found, anEndpointNotFoundExceptionis thrown. If the user is not authorized to access the endpoint, aNotAuthorizedExceptionis thrown. If the input parameters are invalid, anInvalidParametersExceptionis thrown. If the found method is not aMethodStreamConnector, anInvalidEndpointMethodTypeExceptionis thrown.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