Interface WorcadeBuilder


  • public interface WorcadeBuilder
    See Worcade.builder() for how to obtain an instance
    • Method Detail

      • baseUrl

        WorcadeBuilder baseUrl​(String url)
        The URL of the Worcade server. Defaults to https://worcade.net
      • disableETagCache

        WorcadeBuilder disableETagCache()
        If your application is a simple script to read or update a few entities, and then exit, it might be beneficial to disable this cache. If your app is more than a simple script, please don't disable the cache.
      • build

        Result<? extends Worcade> build()
        Creates a Worcade client instance, and checks its server url and version. If the server cannot be reached, this method will return with a Result with a Result.Message with Code Code.NO_CONNECTION. You can call this method multiple times, but a new client with its own cache will be created each time. To obtain an instance that reuses the client, but allows different authentication, use the Worcade.copyWithSameAuth() method.
        Throws:
        IncompatibleVersionException - If the server is of an earlier version than the client, or of a different major version.