Class PluginMappingHandlerMapping
java.lang.Object
eu.rarogsoftware.rarog.platform.core.plugins.web.PluginMappingHandlerMapping
- All Implemented Interfaces:
FeatureModule<HandlerMappingDescriptor>,org.springframework.web.servlet.HandlerMapping
@AutoRegisterFeatureModuleComponent(HandlerMappingDescriptor.class)
public class PluginMappingHandlerMapping
extends Object
implements org.springframework.web.servlet.HandlerMapping, FeatureModule<HandlerMappingDescriptor>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsFields inherited from interface org.springframework.web.servlet.HandlerMapping
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.HandlerExecutionChaingetHandler(jakarta.servlet.http.HttpServletRequest request) voidplugDescriptor(Plugin plugin, HandlerMappingDescriptor descriptor) Registers new descriptor into module.voidunplugDescriptor(Plugin plugin, HandlerMappingDescriptor descriptor) Unregisters new descriptor into module.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.HandlerMapping
usesPathPatterns
-
Field Details
-
HANDLER_PLUGIN_ATTRIBUTE
- See Also:
-
PLUGINS_URL_PREFIX
- See Also:
-
REST_URL_PREFIX
- See Also:
-
-
Constructor Details
-
PluginMappingHandlerMapping
public PluginMappingHandlerMapping()
-
-
Method Details
-
getHandler
public org.springframework.web.servlet.HandlerExecutionChain getHandler(jakarta.servlet.http.HttpServletRequest request) throws Exception - Specified by:
getHandlerin interfaceorg.springframework.web.servlet.HandlerMapping- Throws:
Exception
-
getHandlerMappings
-
plugDescriptor
Description copied from interface:FeatureModuleRegisters new descriptor into module. Module will use resources represented by descriptor to provide its functionality as long as descriptor is unplugged.- Specified by:
plugDescriptorin interfaceFeatureModule<HandlerMappingDescriptor>- Parameters:
plugin- plugin that is parent of descriptordescriptor- feature descriptor to plug
-
unplugDescriptor
Description copied from interface:FeatureModuleUnregisters new descriptor into module. Module will no longer use resources provided by specified descriptor- Specified by:
unplugDescriptorin interfaceFeatureModule<HandlerMappingDescriptor>- Parameters:
plugin- plugin that is parent of descriptordescriptor- feature descriptor to unplug
-