Package org.openqa.selenium.chromium
Class AddHasPermissions
- java.lang.Object
-
- org.openqa.selenium.chromium.AddHasPermissions
-
- All Implemented Interfaces:
AdditionalHttpCommands
,AugmenterProvider<HasPermissions>
@AutoService({AdditionalHttpCommands.class,AugmenterProvider.class}) public class AddHasPermissions extends java.lang.Object implements AugmenterProvider<HasPermissions>, AdditionalHttpCommands
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SET_PERMISSION
-
Constructor Summary
Constructors Constructor Description AddHasPermissions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,CommandInfo>
getAdditionalCommands()
java.lang.Class<HasPermissions>
getDescribedInterface()
HasPermissions
getImplementation(Capabilities capabilities, ExecuteMethod executeMethod)
For the interface that this provider describes, return an implementation.java.util.function.Predicate<Capabilities>
isApplicable()
-
-
-
Field Detail
-
SET_PERMISSION
public static final java.lang.String SET_PERMISSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdditionalCommands
public java.util.Map<java.lang.String,CommandInfo> getAdditionalCommands()
- Specified by:
getAdditionalCommands
in interfaceAdditionalHttpCommands
- Returns:
- Additional commands to add to the
CommandExecutor
.
-
isApplicable
public java.util.function.Predicate<Capabilities> isApplicable()
- Specified by:
isApplicable
in interfaceAugmenterProvider<HasPermissions>
- Returns:
- Whether this provider should be applied given these
caps
.
-
getDescribedInterface
public java.lang.Class<HasPermissions> getDescribedInterface()
- Specified by:
getDescribedInterface
in interfaceAugmenterProvider<HasPermissions>
- Returns:
- The interface that this augmentor describes.
-
getImplementation
public HasPermissions getImplementation(Capabilities capabilities, ExecuteMethod executeMethod)
Description copied from interface:AugmenterProvider
For the interface that this provider describes, return an implementation.- Specified by:
getImplementation
in interfaceAugmenterProvider<HasPermissions>
- Returns:
- An interface implementation
-
-