Fantom

 

class

obix::ObixClient

sys::Obj
  obix::ObixClient

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.

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

static Void main(Str[] args)

makeSource

new make(Uri lobby, Str username, Str password)

Construct with lobby URI and authentication credentials.

readSource

ObixObj read(Uri uri)

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

ObixObj write(ObixObj obj)

Write an obix document to the specified href and return the server's result.