Endpoints class
Constructors
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
-
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 -
getEndpointConnector(
{required Session session, required String endpointPath}) → Future< EndpointConnector> -
Tries to get an
EndpointConnector
for a given endpoint and method name. If the endpoint is not found, anEndpointNotFoundException
is thrown. If the user is not authorized to access the endpoint, aNotAuthorizedException
is thrown.inherited -
getMethodCallContext(
{required Session createSessionCallback(EndpointConnector connector), required String endpointPath, required String methodName, required Map< String, dynamic> parameters, required SerializationManager serializationManager}) → Future<MethodCallContext> -
Tries to get a
MethodCallContext
for a given endpoint and method name. If the method is not found, aMethodNotFoundException
is thrown. If the endpoint is not found, anEndpointNotFoundException
is thrown. If the user is not authorized to access the endpoint, aNotAuthorizedException
is thrown. If the input parameters are invalid, anInvalidParametersException
is thrown. If the found method is not aMethodConnector
, anInvalidEndpointMethodTypeException
is thrown.inherited -
getMethodStreamCallContext(
{required 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
MethodStreamCallContext
for a given endpoint and method name. If the method is not found, aMethodNotFoundException
is thrown. If the endpoint is not found, anEndpointNotFoundException
is thrown. If the user is not authorized to access the endpoint, aNotAuthorizedException
is thrown. If the input parameters are invalid, anInvalidParametersException
is thrown. If the found method is not aMethodStreamConnector
, anInvalidEndpointMethodTypeException
is 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