Class WeblinkConfigurator

Object
com.zebra.sdk.weblink.WeblinkConfigurator

public class WeblinkConfigurator extends Object
Task to configure a printers Weblink setting
  • Constructor Details

    • WeblinkConfigurator

      public WeblinkConfigurator(DiscoveredPrinter printer)
      Initializes a new instance of the WeblinkConfiguratior class.
      Parameters:
      printer - The DiscoveredPrinter to configure.
    • WeblinkConfigurator

      public WeblinkConfigurator(Connection connection)
      Initializes a new instance of the WeblinkConfiguratior class.
      Parameters:
      connection - A Connection to a printer
  • Method Details

    • configure

      public void configure(String webLinkAddress, WeblinkAddressStrategy strategy, WeblinkConfigurationStateUpdater webConfigStatusUpdater) throws ZebraWeblinkException
      Configures a printer to connect to a Zebra Weblink server and attempts to validate a successful connection. Please note that this function will block while waiting for the printer to reset and while validating the connection. This could take an excess of 60 seconds.
      Parameters:
      webLinkAddress - Weblink address to set
      strategy - Determines which weblink setting will be configured
      webConfigStatusUpdater - Callback object to report task status
      Throws:
      ZebraWeblinkException - Thrown when a configuration error occurs Configures the printers weblink according to the selected strategy. Also validates the weblink address is valid.
    • getCurrentState

      public WeblinkConfigurationState getCurrentState()
      Returns the current WeblinkConfigurationState
      Returns:
      The current configuration state
    • getStatus

      public ConfigurationStatus getStatus()
      Returns the ConfigurationStatus of the weblink configuration task.
      Returns:
      Returns the status of the current configuration task
    • isValidWeblinkUrl

      public boolean isValidWeblinkUrl(String url)
      Returns true if the supplied weblink url is valid for the Zebra weblink server.
      Parameters:
      url - Potential URL to a Zebra Weblink server
      Returns:
      true if the URL is a properly formed URL for the Zebra Weblink server