Class PrefixingPathRegistry
java.lang.Object
com.foreach.across.modules.web.context.PrefixingPathRegistry
- All Implemented Interfaces:
WebAppPathResolver
- Author:
- Arne Vandamme
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NonNull String name, @NonNull PrefixingPathContext context) Adds aPrefixingPathContextto 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 aPrefixingPathContextto 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:WebAppPathResolverResolves 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:
pathin interfaceWebAppPathResolver- Parameters:
path- Original path to be resolved.- Returns:
- Resolved path - might be modified.
-
redirect
Description copied from interface:WebAppPathResolverCreates a Spring MVC redirect for the requested path. This will usually apply the regular path resolving and prepend redirect: if necessary.- Specified by:
redirectin interfaceWebAppPathResolver- Parameters:
path- Original path for which to create a redirect.- Returns:
- Redirect path.
-