public static String getRewrittenActionURI ( ServletContext servletContext , HttpServletRequest request , HttpServletResponse response , String actionName , Map params , String fragment , boolean forXML ) throws URISyntaxException { MutableURI uri = getActionURI ( servletContext , request , response , actionName ) ; if ( params != null ) uri . addParameters ( params , false ) ; if ( fragment != null ) uri . setFragment ( uri . encode ( fragment ) ) ; boolean needsToBeSecure = needsToBeSecure ( servletContext , request , uri . getPath ( ) , true ) ; URLRewriterService . rewriteURL ( servletContext , request , response , uri , URLType . ACTION , needsToBeSecure ) ; String key = getURLTemplateKey ( URLType . ACTION , needsToBeSecure ) ; URIContext uriContext = URIContextFactory . getInstance ( forXML ) ; return URLRewriterService . getTemplatedURL ( servletContext , request , uri , key , uriContext ) ; }
Create a fully - rewritten URI given an action name and parameters .