Class HttpCommandInfo
Provides the execution information for a DriverCommand.
public class HttpCommandInfo : CommandInfo, IEquatable<CommandInfo>
- Inheritance
-
HttpCommandInfo
- Implements
- Inherited Members
Constructors
HttpCommandInfo(string, string)
Initializes a new instance of the HttpCommandInfo class
public HttpCommandInfo(string method, string resourcePath)
Parameters
methodstringMethod of the Command
resourcePathstringRelative URL path to the resource used to execute the command
Exceptions
- ArgumentNullException
If
methodorresourcePathare null.
Fields
DeleteCommand
DELETE verb for the command info
public const string DeleteCommand = "DELETE"
Field Value
GetCommand
GET verb for the command info
public const string GetCommand = "GET"
Field Value
PostCommand
POST verb for the command info
public const string PostCommand = "POST"
Field Value
Properties
CommandIdentifier
Gets the unique identifier for this command within the scope of its protocol definition
public override string CommandIdentifier { get; }
Property Value
Method
Gets the HTTP method associated with the command.
public string Method { get; }
Property Value
ResourcePath
Gets the URL representing the path to the resource.
public string ResourcePath { get; }
Property Value
Methods
CreateCommandUri(Uri, Command)
Creates the full URI associated with this command, substituting command parameters for tokens in the URI template.
public Uri CreateCommandUri(Uri baseUri, Command commandToExecute)
Parameters
baseUriUriThe base URI associated with the command.
commandToExecuteCommandThe command containing the parameters with which to substitute the tokens in the template.
Returns
- Uri
The full URI for the command, with the parameters of the command substituted for the tokens in the template.