public interface IAjaxFunctionDeclaration extends com.helger.commons.name.IHasName, Serializable
| Modifier and Type | Method and Description |
|---|---|
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() |
default IAjaxExecutor |
getExecutor() |
com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> |
getExecutorFactory() |
default String |
getInvocationURI(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope) |
default String |
getInvocationURI(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
Map<String,String> aParams) |
default com.helger.commons.url.SimpleURL |
getInvocationURL(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope) |
default String |
getPathWithoutContext() |
@Nonnull com.helger.commons.functional.ISupplier<? extends IAjaxExecutor> getExecutorFactory()
null.@Nullable default IAjaxExecutor getExecutor()
getExecutorFactory()@Nullable com.helger.commons.functional.IPredicate<? super com.helger.web.scope.IRequestWebScopeWithoutResponse> getExecutionFilter()
null.@Nonnull @Nonempty String getAjaxServletPath()
@Nonnull @Nonempty default String getPathWithoutContext()
null nor empty. This is a shortcut for
getAjaxServletPath () + getName ()@Nonnull @Nonempty default String getInvocationURI(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
aRequestScope - The request web scope to be used. Required for cookie-less handling.
May not be null.null nor empty.@Nonnull @Nonempty default String getInvocationURI(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nullable Map<String,String> aParams)
aRequestScope - The request web scope to be used. Required for cookie-less handling.
May not be null.aParams - An optional map with URL parameters to be used in the URL. May be
null or empty.null nor empty.@Nonnull default com.helger.commons.url.SimpleURL getInvocationURL(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
aRequestScope - The request web scope to be used. Required for cookie-less handling.
May not be null.null.boolean canExecute(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
aRequestScope - The request scope to be used for evaluation. Never null
.true if this AJAX function can be executed,
false otherwise.Copyright © 2014–2019 Philip Helger. All rights reserved.