AtLookUp class abstract interface

Implementers

Properties

authenticator ↔ AtAuthenticator?
Authenticates each connection this lookup opens. With none set, a command that needs authentication fails.
getter/setter pair
connection → AtConnection?
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryAddressFinder → SecondaryAddressFinder
no setter

Methods

close() → Future<void>
Closes this lookup's connection: the next call opens a new one and authenticates again as the same atSign, with the credentials the lookup holds at that moment.
executeCommand(String command, {bool auth = false}) → Future<String?>
Sends command as written and returns the atServer's response; auth authenticates the connection first.
executeVerb(VerbBuilder builder) → Future<String?>
Runs builder's command on the atServer, authenticating the connection first when the verb needs it, and returns the atServer's response.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pkamAuthenticate() → Future<bool>
Authenticates this lookup's connection with its authenticator, opening the connection when there is none, and returns true once it has. A connection logged in by another authenticator is closed, and the authenticator logs in on a new one.
stop() → Future<void>
Ends this lookup: closes its connection, and stops its notifications when it has any.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

withSecureSocket({required String atSign, required AtRootDomain rootDomain, required AtAuthenticator? authenticator, required AtLookupTransport transport, required SecondaryAddressFinder secondaryAddressFinder, Future<void> onConnect(AtCommandExecutor connection)?}) → AtLookupMuxable
Build a lookup that talks to an atServer over TLS.
withTransport({required String atSign, required AtRootDomain rootDomain, required AtAuthenticator? authenticator, required AtLookupTransport transport, required SecondaryAddressFinder secondaryAddressFinder, Future<void> onConnect(AtCommandExecutor connection)?}) → AtLookupMuxable
Build a lookup over transport; every parameter means what it means on withSecureSocket.