Class ApachePublishDelegateMock
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.publication.apache.ApachePublishDelegate
-
- com._1c.g5.v8.dt.platform.services.core.publication.ApachePublishDelegateMock
-
- All Implemented Interfaces:
IWebServerPublishDelegate
public class ApachePublishDelegateMock extends ApachePublishDelegate
Mocks Apache publish delegate web extension component resolving.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.platform.services.core.publication.apache.ApachePublishDelegate
APACHE_CONFIGURATION_FILE, APACHE_CONFIGURATION_FOLDER
-
-
Constructor Summary
Constructors Constructor Description ApachePublishDelegateMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
formatPathToWebExtensionComponent(String modulePath)
Formats path to the web extension component of the 1C:Enterprise runtime depending on the OS.protected String
getWebServerExecutableFileName(WebServer webServer)
Returns the web server executable file name.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.core.publication.apache.ApachePublishDelegate
contains, formatIfExtists, get, getAll, getDefaultPublicationLocation, getPublicationUrl, getWebExtension, isPublishSupported, isWebExtensionConfigured, publish, publishTypeSpecificSettings, remove, restart, update
-
-
-
-
Method Detail
-
formatPathToWebExtensionComponent
protected String formatPathToWebExtensionComponent(String modulePath)
Description copied from class:ApachePublishDelegate
Formats path to the web extension component of the 1C:Enterprise runtime depending on the OS. Formatted path will be written in the web server configuration file.- Specified by:
formatPathToWebExtensionComponent
in classApachePublishDelegate
- Parameters:
modulePath
- the web extension component to format, cannot benull
- Returns:
- formatted path to the web extension component of the 1C:Enterprise runtime,
never
null
-
getWebServerExecutableFileName
protected String getWebServerExecutableFileName(WebServer webServer)
Description copied from class:ApachePublishDelegate
Returns the web server executable file name.- Specified by:
getWebServerExecutableFileName
in classApachePublishDelegate
- Parameters:
webServer
- the web server to get executable file name for, cannot benull
- Returns:
- the web server executable file name, never
null
-
-