Package net.webpdf.wsclient.openapi
Class ApplicationConfigChromiumBridge
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ApplicationConfigChromiumBridge
-
public class ApplicationConfigChromiumBridge extends Object
Defines the settings for the Chromium bridge. The Chromium bridge is used for converting emails and HTML documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationConfigChromiumBridge.HeadlessModeEnumDefines the different headless modes of the Chromium instance
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMMAND_LINEstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_HEADLESS_MODEstatic StringJSON_PROPERTY_HOST_ADDRESSstatic StringJSON_PROPERTY_NO_SANDBOXstatic StringJSON_PROPERTY_PATHstatic StringJSON_PROPERTY_PORT
-
Constructor Summary
Constructors Constructor Description ApplicationConfigChromiumBridge()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_COMMAND_LINE
public static final String JSON_PROPERTY_COMMAND_LINE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEADLESS_MODE
public static final String JSON_PROPERTY_HEADLESS_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_ADDRESS
public static final String JSON_PROPERTY_HOST_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NO_SANDBOX
public static final String JSON_PROPERTY_NO_SANDBOX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PATH
public static final String JSON_PROPERTY_PATH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
commandLine
public ApplicationConfigChromiumBridge commandLine(ApplicationConfigChromiumBridgeCommandLine commandLine)
-
getCommandLine
@Nullable public @Nullable ApplicationConfigChromiumBridgeCommandLine getCommandLine()
Get commandLine- Returns:
- commandLine
-
setCommandLine
public void setCommandLine(ApplicationConfigChromiumBridgeCommandLine commandLine)
-
enabled
public ApplicationConfigChromiumBridge enabled(Boolean enabled)
-
getEnabled
@Nullable public @Nullable Boolean getEnabled()
If enabled, then the Chromium bridge is activated.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
headlessMode
public ApplicationConfigChromiumBridge headlessMode(ApplicationConfigChromiumBridge.HeadlessModeEnum headlessMode)
-
getHeadlessMode
@Nullable public @Nullable ApplicationConfigChromiumBridge.HeadlessModeEnum getHeadlessMode()
Defines the different headless modes of the Chromium instance. * NEW = Uses the same code base for the Chromium headless instance as the normal non-headless browser. * OLD = Uses the old code base for the Chromium headless instance, which is different from the non-headless browser- Returns:
- headlessMode
-
setHeadlessMode
public void setHeadlessMode(ApplicationConfigChromiumBridge.HeadlessModeEnum headlessMode)
-
hostAddress
public ApplicationConfigChromiumBridge hostAddress(String hostAddress)
-
getHostAddress
@Nullable public @Nullable String getHostAddress()
The IP address on which Chromium should be reachable.- Returns:
- hostAddress
-
setHostAddress
public void setHostAddress(String hostAddress)
-
noSandbox
public ApplicationConfigChromiumBridge noSandbox(Boolean noSandbox)
-
getNoSandbox
@Nullable public @Nullable Boolean getNoSandbox()
Sets this option whether the Chromium process should run in a sandbox or not. **Important:** Be aware that running Chromium outside a sandbox can be a security risk. Proceed with caution!- Returns:
- noSandbox
-
setNoSandbox
public void setNoSandbox(Boolean noSandbox)
-
path
public ApplicationConfigChromiumBridge path(String path)
-
getPath
@Nullable public @Nullable String getPath()
Sets a custom base path for the Chromium application.- Returns:
- path
-
setPath
public void setPath(String path)
-
port
public ApplicationConfigChromiumBridge port(Integer port)
-
getPort
@Nullable public @Nullable Integer getPort()
The port on which Chromium should listen for requests.- Returns:
- port
-
setPort
public void setPort(Integer port)
-
-