Class WebClientLauncher
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractRuntimeComponentExecutor
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.WebClientLauncher
-
- All Implemented Interfaces:
IRuntimeComponentExecutor
,IUrlOpenClientLauncher
,IWebClientExecutor
- Direct Known Subclasses:
XdgOpenWebClientLauncher
public class WebClientLauncher extends AbstractRuntimeComponentExecutor implements IWebClientExecutor
Implementation ofWebClientLauncher
.
-
-
Constructor Summary
Constructors Constructor Description WebClientLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
needComponent()
Returns whether instance of 1C:Enterprise component is needed for execution.protected void
openBrowser(URL url)
Open requested URL in default OS browser.Optional<Process>
runClient(IRuntimeComponent thinClient, URL url, InfobaseReference infobase, RuntimeExecutionArguments arguments)
Launches (opens) the providedURL
as 1C:Enterprise runtime client.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractRuntimeComponentExecutor
appendClientArguments, appendExtensionCustomization, appendInfobaseAccess, appendRuntimeClientArguments, createTempFile, executeRuntimeProcessCommand, readRuntimeLog, splitInfobaseConnection
-
-
-
-
Method Detail
-
runClient
public Optional<Process> runClient(IRuntimeComponent thinClient, URL url, InfobaseReference infobase, RuntimeExecutionArguments arguments) throws RuntimeExecutionException
Description copied from interface:IUrlOpenClientLauncher
Launches (opens) the providedURL
as 1C:Enterprise runtime client. 1C:Enterprise runtime client component can be used if executor implementationneeds component
for execution. Returns the started process or none if started process cannot be obtained (e.g. browser opening).- Specified by:
runClient
in interfaceIUrlOpenClientLauncher
- Parameters:
thinClient
- the 1C:Enterprise runtime client component to openURL
with ornull
if executor implementation does notneed component
url
- the web URL to launch client with, cannot benull
infobase
- the infobase that is published on the provided web URL ornull
if nonearguments
- the execution arguments, can benull
, then will not be used- Throws:
RuntimeExecutionException
- if 1C:Enterprise runtime process execution fails
-
needComponent
public boolean needComponent()
Description copied from interface:IRuntimeComponentExecutor
Returns whether instance of 1C:Enterprise component is needed for execution. Some of executor implementations requires compoment for execution actions: for example, executable files launching.- Specified by:
needComponent
in interfaceIRuntimeComponentExecutor
- Overrides:
needComponent
in classAbstractRuntimeComponentExecutor
- Returns:
- whether instance of 1C:Enterprise component is needed for execution
-
openBrowser
protected void openBrowser(URL url) throws RuntimeExecutionException
Open requested URL in default OS browser.- Parameters:
url
- the URL to open, cannot benull
- Throws:
RuntimeExecutionException
- if default browser opening failed
-
-