@Immutable public class AjaxFunctionDeclaration extends Object implements IAjaxFunctionDeclaration
IAjaxFunctionDeclaration| Modifier and Type | Class and Description |
|---|---|
static class |
AjaxFunctionDeclaration.Builder
Builder for
AjaxFunctionDeclaration objects. |
| Constructor and Description |
|---|
AjaxFunctionDeclaration(String sFunctionName,
com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> aExecutorFactory,
com.helger.commons.functional.IPredicate<? super com.helger.web.scope.IRequestWebScopeWithoutResponse> aExecutionFilter,
String sServletPath) |
| Modifier and Type | Method and Description |
|---|---|
static AjaxFunctionDeclaration.Builder |
builder()
Create a function that is not named.
|
static AjaxFunctionDeclaration.Builder |
builder(String sFunctionName) |
boolean |
canExecute(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
Check if this AJAX function can be executed for the passed request.
|
String |
getAjaxServletPath() |
com.helger.commons.functional.IPredicate<? super com.helger.web.scope.IRequestWebScopeWithoutResponse> |
getExecutionFilter() |
com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> |
getExecutorFactory() |
String |
getName() |
static int |
getUniqueFunctionID() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExecutor, getInvocationURI, getInvocationURI, getInvocationURL, getPathWithoutContextpublic AjaxFunctionDeclaration(@Nonnull @Nonempty String sFunctionName, @Nonnull com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> aExecutorFactory, @Nullable com.helger.commons.functional.IPredicate<? super com.helger.web.scope.IRequestWebScopeWithoutResponse> aExecutionFilter, @Nonnull @Nonempty String sServletPath)
@Nonnull @Nonempty public final String getName()
getName in interface com.helger.commons.name.IHasName@Nonnull public final com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> getExecutorFactory()
getExecutorFactory in interface IAjaxFunctionDeclarationnull.@Nullable public final com.helger.commons.functional.IPredicate<? super com.helger.web.scope.IRequestWebScopeWithoutResponse> getExecutionFilter()
getExecutionFilter in interface IAjaxFunctionDeclarationnull.public boolean canExecute(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
IAjaxFunctionDeclarationcanExecute in interface IAjaxFunctionDeclarationaRequestScope - The request scope to be used for evaluation. Never null
.true if this AJAX function can be executed,
false otherwise.@Nonnull @Nonempty public String getAjaxServletPath()
getAjaxServletPath in interface IAjaxFunctionDeclaration@Nonnull public static AjaxFunctionDeclaration.Builder builder()
builder(String) for a permanent name.null.builder(String)public static int getUniqueFunctionID()
@Nonnull public static AjaxFunctionDeclaration.Builder builder(@Nullable String sFunctionName)
Copyright © 2014–2019 Philip Helger. All rights reserved.