C# 클래스 OpenQA.Selenium.Remote.Server.CommandHandlerFactory

Creates instances of CommandHandler objects for the desired DriverCommand.
파일 보기 프로젝트 열기: jimevans/strontium 1 사용 예제들

공개 메소드들

메소드 설명
CanCreateHandler ( string commandName ) : bool

Gets a value indicating whether the factory can create a handler for the given command.

CreateHandler ( string commandName, string>.Dictionary locatorParameters, object>.Dictionary parameters ) : CommandHandler

Creates a new CommandHandler given the DriverCommand, locator parameters, and body parameters.

보호된 메소드들

메소드 설명
AddHandlers ( ) : void

Adds handler constructors to the dictionary of handler creators.

CommandHandlerFactory ( ) : System

Initializes a new instance of the CommandHandlerFactory class.

MapCommandHandler ( string command, Type handlerType ) : void

Maps a DriverCommand value to a CommandHandler object.

비공개 메소드들

메소드 설명
GetConstructorInfo ( Type handlerType ) : ConstructorInfo
GetHandlerConstructor ( string commandName ) : ConstructorInfo

메소드 상세

AddHandlers() 보호된 추상적인 메소드

Adds handler constructors to the dictionary of handler creators.
protected abstract AddHandlers ( ) : void
리턴 void

CanCreateHandler() 공개 메소드

Gets a value indicating whether the factory can create a handler for the given command.
public CanCreateHandler ( string commandName ) : bool
commandName string The value to create a handler for.
리턴 bool

CommandHandlerFactory() 보호된 메소드

Initializes a new instance of the CommandHandlerFactory class.
protected CommandHandlerFactory ( ) : System
리턴 System

CreateHandler() 공개 메소드

Creates a new CommandHandler given the DriverCommand, locator parameters, and body parameters.
public CreateHandler ( string commandName, string>.Dictionary locatorParameters, object>.Dictionary parameters ) : CommandHandler
commandName string The value to create a handler for.
locatorParameters string>.Dictionary The parameters in the URL used to locate the resource.
parameters object>.Dictionary The parameters in the body of the request used to act on the resource.
리턴 CommandHandler

MapCommandHandler() 보호된 메소드

Maps a DriverCommand value to a CommandHandler object.
If is not a subclass of .
protected MapCommandHandler ( string command, Type handlerType ) : void
command string The value to map the handler for.
handlerType System.Type The used to handle the command.
리턴 void