@SuppressWarnings("unchecked") public final class UrlMappingUtils extends Object
Utility methods for working with UrlMappings
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static String |
buildDispatchUrlForMapping(UrlMappingInfo info)Constructs the URI to forward to using the given request and UrlMappingInfo instance |
|
public static Map |
findAllParamsNotInKeys(Map params, Set keys) |
|
public static Map |
findAllParamsNotInUrlMappingKeywords(Map params)
|
|
public static String |
forwardRequestForUrlMappingInfo(HttpServletRequest request, HttpServletResponse response, UrlMappingInfo info)
|
|
public static String |
forwardRequestForUrlMappingInfo(HttpServletRequest request, HttpServletResponse response, UrlMappingInfo info, Map model)
|
|
public static String |
forwardRequestForUrlMappingInfo(HttpServletRequest request, HttpServletResponse response, UrlMappingInfo info, Map<String, Object> model, boolean includeParams)Forwards a request for the given UrlMappingInfo object and model |
|
public static IncludedContent |
includeForUrl(String includeUrl, HttpServletRequest request, HttpServletResponse response, Map model)Includes the given URL returning the resulting content as a String |
|
public static IncludedContent |
includeForUrlMappingInfo(HttpServletRequest request, HttpServletResponse response, UrlMappingInfo info, Map model)Include whatever the given UrlMappingInfo maps to within the current response |
|
public static IncludedContent |
includeForUrlMappingInfo(HttpServletRequest request, HttpServletResponse response, UrlMappingInfo info, Map model, LinkGenerator linkGenerator)Include whatever the given UrlMappingInfo maps to within the current response |
|
public static UrlMappingsHolder |
lookupUrlMappings(ServletContext servletContext)Looks up the UrlMappingsHolder instance |
|
public static View |
resolveView(HttpServletRequest request, UrlMappingInfo info, String viewName, ViewResolver viewResolver)Resolves a view for the given view and UrlMappingInfo instance |
Constructs the URI to forward to using the given request and UrlMappingInfo instance
info - The UrlMappingInfo
Forwards a request for the given UrlMappingInfo object and model
request - The requestresponse - The responseinfo - The UrlMappingInfo objectmodel - The ModelincludeParams - Whether to include any request parametersIncludes the given URL returning the resulting content as a String
includeUrl - The URL to includerequest - The requestresponse - The responsemodel - The modelInclude whatever the given UrlMappingInfo maps to within the current response
request - The requestresponse - The responseinfo - The UrlMappingInfomodel - The modelInclude whatever the given UrlMappingInfo maps to within the current response
request - The requestresponse - The responseinfo - The UrlMappingInfomodel - The modellinkGenerator - allows for reverse url mappingLooks up the UrlMappingsHolder instance
servletContext - The ServletContext objectResolves a view for the given view and UrlMappingInfo instance
request - The requestinfo - The infoviewName - The view nameviewResolver - The view resolver