Class HttpCommandExecutor
java.lang.Object
org.openqa.selenium.remote.HttpCommandExecutor
- All Implemented Interfaces:
CommandExecutor
- Direct Known Subclasses:
DriverCommandExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, CommandInfo> final org.openqa.selenium.remote.http.HttpClientDeprecated, for removal: This API element is subject to removal in a future version.protected @Nullable CommandCodec<org.openqa.selenium.remote.http.HttpRequest> protected final @Nullable org.openqa.selenium.remote.http.HttpClient.FactoryDeprecated, for removal: This API element is subject to removal in a future version.this field will be removed in 4.52; keep a reference to the factory in the subclass instead.protected @Nullable ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> -
Constructor Summary
ConstructorsConstructorDescriptionHttpCommandExecutor(URL addressOfRemoteServer) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, org.openqa.selenium.remote.http.ClientConfig config) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, org.openqa.selenium.remote.http.ClientConfig config, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(org.openqa.selenium.remote.http.ClientConfig config) Deprecated, for removal: This API element is subject to removal in a future version.HttpCommandExecutor(org.openqa.selenium.remote.http.HttpClient httpClient, URL addressOfRemoteServer) Creates anHttpCommandExecutorthat supports only standard commands.HttpCommandExecutor(org.openqa.selenium.remote.http.HttpClient httpClient, Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer) Creates anHttpCommandExecutorthat supports non-standardadditionalCommandsin addition to the standard. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalCommand(String commandName, CommandInfo info) Adds or updates additional commands.protected voiddefineCommand(String commandName, CommandInfo info) It may be useful to extend the commands understood by thisHttpCommandExecutorat run time, and this can be achieved via this method.Returns an immutable view of the additional commands.Deprecated, for removal: This API element is subject to removal in a future version.static org.openqa.selenium.remote.http.HttpClient.FactoryDeprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
additionalCommands
-
client
@Deprecated(forRemoval=true, since="4.50.0") public final org.openqa.selenium.remote.http.HttpClient clientDeprecated, for removal: This API element is subject to removal in a future version.this field will becomeprotectedin 4.52; read it from a subclass instead. -
httpClientFactory
@Deprecated(forRemoval=true, since="4.50.0") protected final @Nullable org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactoryDeprecated, for removal: This API element is subject to removal in a future version.this field will be removed in 4.52; keep a reference to the factory in the subclass instead. -
commandCodec
-
responseCodec
-
-
Constructor Details
-
HttpCommandExecutor
Deprecated, for removal: This API element is subject to removal in a future version. -
HttpCommandExecutor
@Deprecated(forRemoval=true, since="4.50.0") public HttpCommandExecutor(org.openqa.selenium.remote.http.ClientConfig config) Deprecated, for removal: This API element is subject to removal in a future version. -
HttpCommandExecutor
public HttpCommandExecutor(org.openqa.selenium.remote.http.HttpClient httpClient, URL addressOfRemoteServer) Creates anHttpCommandExecutorthat supports only standard commands.- Parameters:
httpClient- the HttpClient to execute commands withaddressOfRemoteServer- URL of remote end Selenium server
-
HttpCommandExecutor
public HttpCommandExecutor(org.openqa.selenium.remote.http.HttpClient httpClient, Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer) Creates anHttpCommandExecutorthat supports non-standardadditionalCommandsin addition to the standard.- Parameters:
httpClient- the HttpClient to execute commands withadditionalCommands- additional commands to allow the command executor to processaddressOfRemoteServer- URL of remote end Selenium server
-
HttpCommandExecutor
@Deprecated(forRemoval=true, since="4.50.0") public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer) Deprecated, for removal: This API element is subject to removal in a future version.Creates anHttpCommandExecutorthat supports non-standardadditionalCommandsin addition to the standard.- Parameters:
additionalCommands- additional commands to allow the command executor to processaddressOfRemoteServer- URL of remote end Selenium server
-
HttpCommandExecutor
@Deprecated(forRemoval=true, since="4.50.0") public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, org.openqa.selenium.remote.http.ClientConfig config) Deprecated, for removal: This API element is subject to removal in a future version. -
HttpCommandExecutor
@Deprecated(forRemoval=true, since="4.50.0") public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
HttpCommandExecutor
@Deprecated(forRemoval=true, since="4.50.0") public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, org.openqa.selenium.remote.http.ClientConfig config, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getDefaultClientFactory
@Deprecated(forRemoval=true, since="4.50.0") public static org.openqa.selenium.remote.http.HttpClient.Factory getDefaultClientFactory()Deprecated, for removal: This API element is subject to removal in a future version. -
getAdditionalCommands
Returns an immutable view of the additional commands.- Returns:
- an unmodifiable map of additional commands.
-
addAdditionalCommand
Adds or updates additional commands. This method is protected to allow subclasses to define their commands.- Parameters:
commandName- the name of the command to add or update.info- the CommandInfo for the command.
-
defineCommand
It may be useful to extend the commands understood by thisHttpCommandExecutorat run time, and this can be achieved via this method. Note, this is protected, and expected usage is for subclasses only to call this.- Parameters:
commandName- The name of the command to use.info- CommandInfo for the command name provided
-
getAddressOfRemoteServer
Deprecated, for removal: This API element is subject to removal in a future version. -
execute
- Specified by:
executein interfaceCommandExecutor- Throws:
IOException
-
protectedin 4.52; read it from a subclass instead.