Class PrefixingPathRegistry
java.lang.Object
com.foreach.across.modules.web.context.PrefixingPathRegistry
- All Implemented Interfaces:
WebAppPathResolver
- Author:
- Arne Vandamme
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(@NonNull String name, @NonNull PrefixingPathContext context) Adds aPrefixingPathContext
to this registry.Resolves the requested path in the relative context of the web application.Creates a Spring MVC redirect for the requested path.void
-
Field Details
-
DEFAULT
- See Also:
-
-
Constructor Details
-
PrefixingPathRegistry
public PrefixingPathRegistry()
-
-
Method Details
-
add
Adds aPrefixingPathContext
to this registry. This will set the registry as namedDescriptorMap on the context by callingPrefixingPathContext.setNamedPrefixMap(java.util.Map)
.- Parameters:
name
- name that can be used to refer to this contextcontext
- implementation
-
get
-
remove
-
path
Description copied from interface:WebAppPathResolver
Resolves the requested path in the relative context of the web application. Note that this does not take the actual web application context of the container into account.- Specified by:
path
in interfaceWebAppPathResolver
- Parameters:
path
- Original path to be resolved.- Returns:
- Resolved path - might be modified.
-
redirect
Description copied from interface:WebAppPathResolver
Creates a Spring MVC redirect for the requested path. This will usually apply the regular path resolving and prepend redirect: if necessary.- Specified by:
redirect
in interfaceWebAppPathResolver
- Parameters:
path
- Original path for which to create a redirect.- Returns:
- Redirect path.
-