public class WeblinkConfigurator
extends Object
| Constructor and Description |
|---|
WeblinkConfigurator(Connection connection)
Initializes a new instance of the WeblinkConfiguratior class.
|
WeblinkConfigurator(DiscoveredPrinter printer)
Initializes a new instance of the WeblinkConfiguratior class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String webLinkAddress,
WeblinkAddressStrategy strategy,
WeblinkConfigurationStateUpdater webConfigStatusUpdater)
Configures a printer to connect to a Zebra Weblink server and attempts to validate a successful connection.
|
WeblinkConfigurationState |
getCurrentState()
Returns the current
WeblinkConfigurationState |
ConfigurationStatus |
getStatus()
Returns the
ConfigurationStatus of the weblink configuration task. |
boolean |
isValidWeblinkUrl(String url)
Returns true if the supplied weblink
url is valid for the Zebra weblink server. |
public WeblinkConfigurator(DiscoveredPrinter printer)
printer - The DiscoveredPrinter to configure.public WeblinkConfigurator(Connection connection)
connection - A Connection to a printerpublic void configure(String webLinkAddress,
WeblinkAddressStrategy strategy,
WeblinkConfigurationStateUpdater webConfigStatusUpdater)
throws ZebraWeblinkException
webLinkAddress - Weblink address to setstrategy - Determines which weblink setting will be configuredwebConfigStatusUpdater - Callback object to report task statusZebraWeblinkException - Thrown when a configuration error occurs Configures the printers weblink according
to the selected strategy. Also validates the weblink address is valid.public WeblinkConfigurationState getCurrentState()
WeblinkConfigurationStatepublic ConfigurationStatus getStatus()
ConfigurationStatus of the weblink configuration task.public boolean isValidWeblinkUrl(String url)
url is valid for the Zebra weblink server.url - Potential URL to a Zebra Weblink server
© 2017 ZIH Corp. All Rights Reserved.