Utility methods for working with UrlMappings
Type | Name and description |
---|---|
static java.lang.String |
buildDispatchUrlForMapping(UrlMappingInfo info) Constructs the URI to forward to using the given request and UrlMappingInfo instance |
static java.lang.String |
forwardRequestForUrlMappingInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UrlMappingInfo info) @see #forwardRequestForUrlMappingInfo(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.codehaus.groovy.grails.web.mapping.UrlMappingInfo, java.util.Map) |
static java.lang.String |
forwardRequestForUrlMappingInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UrlMappingInfo info, java.util.Map model) @see #forwardRequestForUrlMappingInfo(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.codehaus.groovy.grails.web.mapping.UrlMappingInfo, java.util.Map, boolean) |
static java.lang.String |
forwardRequestForUrlMappingInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UrlMappingInfo info, java.util.Map model, boolean includeParams) Forwards a request for the given UrlMappingInfo object and model |
static GrailsClass |
getConfiguredControllerForUrlMappingInfo(GrailsWebRequest webRequest, UrlMappingInfo info, UrlConverter urlConverterToUse, GrailsApplication grailsApplicationToUse) |
static java.lang.String |
getControllerFeatureURI(UrlConverter urlConverter, java.lang.String controller, java.lang.String action) |
static org.codehaus.groovy.grails.commons.ControllerArtefactHandler$ControllerCacheKey |
getFeatureId(UrlConverter urlConverter, UrlMappingInfo info) |
static IncludedContent |
includeForUrl(java.lang.String includeUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map model) Includes the given URL returning the resulting content as a String |
static IncludedContent |
includeForUrlMappingInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UrlMappingInfo info, java.util.Map model) Include whatever the given UrlMappingInfo maps to within the current response |
static UrlMappingsHolder |
lookupUrlMappings(javax.servlet.ServletContext servletContext) Looks up the UrlMappingsHolder instance |
protected static void |
passControllerForForwardedRequest(GrailsWebRequest webRequest, UrlMappingInfo info) |
static GrailsClass |
passControllerForUrlMappingInfoInRequest(GrailsWebRequest webRequest, UrlMappingInfo info, UrlConverter urlConverterToUse, GrailsApplication grailsApplicationToUse) |
static org.springframework.web.servlet.View |
resolveView(javax.servlet.http.HttpServletRequest request, UrlMappingInfo info, java.lang.String viewName, org.springframework.web.servlet.ViewResolver viewResolver) Resolves a view for the given view and UrlMappingInfo instance |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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 modelLooks 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