class obix::ObixClient
sys::Obj obix::ObixClient
ObixClient implements the client side of the oBIX HTTP REST protocol.
- aboutUri
-
Uri? aboutUri
About object relative URI - either set manually or via
readLobby
. - batchRead
-
ObixObj[] batchRead(Uri[] uris)
Perform a batch read for all the given URIs. The
batchUri
must be either set manually or viareadLobby
. - batchUri
-
Uri? batchUri
Batch operation relative URI - either set manually or via
readLobby
. - invoke
-
ObixObj invoke(Uri uri, ObixObj in)
Invoke the operation identified by the specified href. If the result is* an
<err>
object, then throw an ObixErr with the object. - lobbyUri
-
const Uri lobbyUri
Uri of the lobby object
- main
- make
-
new make(Uri lobby, Str:Str authHeaders)
Construct with given headers to use for authentication
- makeBasicAuth
-
static new makeBasicAuth(Uri lobby, Str username, Str password)
Construct to use Basic Authentication
- read
-
Read an obix document with the specified href. If the result is an
<err>
object, then throw an ObixErr with the object. - readAbout
-
ObixObj readAbout()
Read about object. The
aboutUri
must be either set manually or viareadLobby
. - readLobby
-
ObixObj readLobby()
Read the lobby object. This method will set the
aboutUri
andbatchUri
fields. - watchOpen
-
ObixClientWatch watchOpen()
Create a new watch from via
watchServiceUri
and return the object which represents the watch. Raise err if watch service isn't available. - watchServiceUri
-
Uri? watchServiceUri
Watch service relative URI - either set manually or via
readLobby
- write
-
Write an obix document to the specified href and return the server's result. If the result is an
<err>
object, then throw an ObixErr with the object.