Package com.helger.photon.api
Interface IAPIExecutionFilter
-
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IAPIExecutionFilter extends Serializable
Generic API execution filter.- Since:
- 7.0.2
- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IAPIExecutionFilterand(IAPIExecutionFilter aOther)static IAPIExecutionFilterand(IAPIExecutionFilter aFirst, IAPIExecutionFilter aSecond)booleancanExecute(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)Check if the passed request can be executed or not.
-
-
-
Method Detail
-
canExecute
boolean canExecute(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
Check if the passed request can be executed or not.- Parameters:
aRequestScope- The current request scope. Nevernull.- Returns:
trueif execution can continue,falseif not.
-
and
@Nonnull default IAPIExecutionFilter and(@Nullable IAPIExecutionFilter aOther)
-
and
@Nullable static IAPIExecutionFilter and(@Nullable IAPIExecutionFilter aFirst, @Nullable IAPIExecutionFilter aSecond)
-
-