Package com.helger.photon.ajax
Class AjaxRegistry
- java.lang.Object
-
- com.helger.photon.ajax.AjaxRegistry
-
- All Implemented Interfaces:
IAjaxRegistry,Serializable
@ThreadSafe public class AjaxRegistry extends Object implements IAjaxRegistry
The default implementation ofIAjaxRegistry.- Since:
- 8.1.4
- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AjaxRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.collection.impl.ICommonsMap<String,IAjaxFunctionDeclaration>getAllRegisteredFunctions()IAjaxFunctionDeclarationgetRegisteredFunction(String sFunctionName)Get the registered AJAX function with the specified namebooleanisRegisteredFunction(String sFunctionName)Check whether an AJAX function with the given name is presentstatic booleanisValidFunctionName(String sFunctionName)voidregisterFunction(IAjaxFunctionDeclaration aFunctionDeclaration)Add a handler function that is used as a callback.StringtoString()
-
-
-
Method Detail
-
getAllRegisteredFunctions
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsMap<String,IAjaxFunctionDeclaration> getAllRegisteredFunctions()
- Specified by:
getAllRegisteredFunctionsin interfaceIAjaxRegistry
-
getRegisteredFunction
@Nullable public IAjaxFunctionDeclaration getRegisteredFunction(@Nullable String sFunctionName)
Description copied from interface:IAjaxRegistryGet the registered AJAX function with the specified name- Specified by:
getRegisteredFunctionin interfaceIAjaxRegistry- Parameters:
sFunctionName- The AJAX function name to search. May benull.- Returns:
nullif no such AJAX function is registered.
-
isRegisteredFunction
public boolean isRegisteredFunction(@Nullable String sFunctionName)
Description copied from interface:IAjaxRegistryCheck whether an AJAX function with the given name is present- Specified by:
isRegisteredFunctionin interfaceIAjaxRegistry- Parameters:
sFunctionName- The name of the AJAX function to check. May benull.- Returns:
trueif an AJAX function with the given name is contained,falseotherwise.
-
registerFunction
public void registerFunction(@Nonnull IAjaxFunctionDeclaration aFunctionDeclaration)
Description copied from interface:IAjaxRegistryAdd a handler function that is used as a callback.- Specified by:
registerFunctionin interfaceIAjaxRegistry- Parameters:
aFunctionDeclaration- The AJAX function declaration to be invoked. May not benull.
-
-