Class WebExecutionCommandBuilder
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractExecutionCommandBuilder<WebExecutionCommandBuilder>
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.WebExecutionCommandBuilder
-
public class WebExecutionCommandBuilder extends AbstractExecutionCommandBuilder<WebExecutionCommandBuilder>
1C:Enterprise web client launch command builder. UsebuildUrl()
method to build ready-to-open URL.Instances of
WebExecutionCommandBuilder
are stateful and are not safe for use by multiple threads.Example of usage:
String url = new WebCommandBuilder("http://localhost:8080/DemoConf") .userName(userName).userPassword(userPassword).buildUrl(); ...launch browser with builded URL
-
-
Constructor Summary
Constructors Constructor Description WebExecutionCommandBuilder(URL url)
Creates an instance ofWebExecutionCommandBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendOption(List<String> commands, String option)
Append the provided option to the the command builder.protected void
appendOptionParameter(List<String> commands, String optionParameter)
Append the provided option parameter to the command builder.URL
buildUrl()
Builds ready-to-open URL, based on constructed commands.WebExecutionCommandBuilder
urlFragment(String urlFragment)
Adde1cib
transfering URL fragment option to constructing command.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractExecutionCommandBuilder
append, appendOption, appendOptionParameter, commands, dataSeparation, disableHomePageForms, disableStartupDialogs, disableStartupMessages, displayAllFunctions, displayPerformance, enableCheckExtensionsAndAddInsSyncCalls, enableCheckModal, enableDebug, execute, interfaceLanguage, mainWindowMode, osAuthentication, pwaAppName, self, sessionLocale, startupOption, technicalSpecialistMode, userName, userPassword, withConnectionSpeed
-
-
-
-
Constructor Detail
-
WebExecutionCommandBuilder
public WebExecutionCommandBuilder(URL url)
Creates an instance ofWebExecutionCommandBuilder
.- Parameters:
url
- theURL
to open in a web browser, cannot benull
-
-
Method Detail
-
urlFragment
public WebExecutionCommandBuilder urlFragment(String urlFragment)
Description copied from class:AbstractExecutionCommandBuilder
Adde1cib
transfering URL fragment option to constructing command.- Overrides:
urlFragment
in classAbstractExecutionCommandBuilder<WebExecutionCommandBuilder>
- Parameters:
urlFragment
- thee1cib
transfering URL fragment, cannot benull
- Returns:
- a reference to this command builder, never
null
-
buildUrl
public URL buildUrl()
Builds ready-to-open URL, based on constructed commands.- Returns:
- the ready-to-open URL, never
null
-
appendOption
protected void appendOption(List<String> commands, String option)
Description copied from class:AbstractExecutionCommandBuilder
Append the provided option to the the command builder. Subclass must implement.- Specified by:
appendOption
in classAbstractExecutionCommandBuilder<WebExecutionCommandBuilder>
option
- option to append, cannot benull
-
appendOptionParameter
protected void appendOptionParameter(List<String> commands, String optionParameter)
Description copied from class:AbstractExecutionCommandBuilder
Append the provided option parameter to the command builder. Subclass must implement.- Specified by:
appendOptionParameter
in classAbstractExecutionCommandBuilder<WebExecutionCommandBuilder>
optionParameter
- option parameter to append, cannot benull
-
-