public class CustomHttpCommandExecutor
extends java.lang.Object
implements org.openqa.selenium.remote.CommandExecutor, org.openqa.selenium.logging.NeedsLocalLogs
修飾子とタイプ | フィールドと説明 |
---|---|
protected java.util.Map<java.lang.String,CommandInfo> |
additionalCommands |
protected org.openqa.selenium.remote.http.HttpClient |
client |
protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> |
commandCodec |
protected org.openqa.selenium.remote.Dialect |
dialect |
protected org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> |
responseCodec |
コンストラクタと説明 |
---|
CustomHttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer)
Creates an
HttpCommandExecutor that supports non-standard additionalCommands in addition to the
standard. |
CustomHttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands,
java.net.URL addressOfRemoteServer,
org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory) |
CustomHttpCommandExecutor(java.net.URL addressOfRemoteServer) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
defineCommand(java.lang.String commandName,
CommandInfo info)
It may be useful to extend the commands understood by this
HttpCommandExecutor at run time, and this can
be achieved via this method. |
org.openqa.selenium.remote.Response |
execute(org.openqa.selenium.remote.Command command) |
java.net.URL |
getAddressOfRemoteServer() |
org.openqa.selenium.remote.Dialect |
getDialect() |
protected void |
log(java.lang.String logType,
org.openqa.selenium.logging.LogEntry entry) |
void |
setLocalLogs(org.openqa.selenium.logging.LocalLogs logs) |
protected final org.openqa.selenium.remote.http.HttpClient client
protected final java.util.Map<java.lang.String,CommandInfo> additionalCommands
protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> commandCodec
protected org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> responseCodec
protected org.openqa.selenium.remote.Dialect dialect
public CustomHttpCommandExecutor(java.net.URL addressOfRemoteServer)
public CustomHttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer)
HttpCommandExecutor
that supports non-standard additionalCommands
in addition to the
standard.additionalCommands
- additional commands to allow the command executor to processaddressOfRemoteServer
- URL of remote end Selenium serverpublic CustomHttpCommandExecutor(java.util.Map<java.lang.String,CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
protected void defineCommand(java.lang.String commandName, CommandInfo info)
HttpCommandExecutor
at run time, and this can
be achieved via this method. Note, this is protected, and expected usage is for subclasses only to call this.commandName
- The name of the command to use.info
- CommandInfo for the command name providedpublic void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
setLocalLogs
インタフェース内 org.openqa.selenium.logging.NeedsLocalLogs
protected void log(java.lang.String logType, org.openqa.selenium.logging.LogEntry entry)
public java.net.URL getAddressOfRemoteServer()
public org.openqa.selenium.remote.Response execute(org.openqa.selenium.remote.Command command) throws java.io.IOException
execute
インタフェース内 org.openqa.selenium.remote.CommandExecutor
java.io.IOException
public org.openqa.selenium.remote.Dialect getDialect()