ObixClient implements the client side of the oBIX HTTP REST protocol.
Slots
- aboutUriSource
-
Uri? aboutUri
About object relative URI - either set manually or via readLobby.
-
private Str authHeader
Log for tracing
- batchReadSource
-
ObixObj[] batchRead(Uri[] uris)
Perform a batch read for all the given URIs. The batchUri must be either set manually or via readLobby.
- batchUriSource
-
Uri? batchUri
Batch operation relative URI - either set manually or via readLobby.
- invokeSource
-
ObixObj invoke(Uri uri, ObixObj in)
Invoke the operation identified by the specified href.
- lobbyUriSource
-
const Uri lobbyUri
Uri of the lobby object
- mainSource
- makeSource
-
new make(Uri lobby, Str username, Str password)
Construct with lobby URI and authentication credentials.
- readSource
-
Read an obix document with the specified href.
- readAboutSource
-
ObixObj readAbout()
Read about object. The aboutUri must be either set manually or via readLobby.
- readLobbySource
-
ObixObj readLobby()
Read the lobby object. This method will set the aboutUri and batchUri fields.
- usernameSource
-
const Str username
Username to use for authentication, or null if not using authentication.
- writeSource
-
Write an obix document to the specified href and return the server's result.