Class DefaultUrlHelper

java.lang.Object
org.apache.struts2.views.util.DefaultUrlHelper
All Implemented Interfaces:
UrlHelper

public class DefaultUrlHelper extends Object implements UrlHelper
Default implementation of UrlHelper
  • Field Details

  • Constructor Details

    • DefaultUrlHelper

      public DefaultUrlHelper()
  • Method Details

    • setHttpPort

      public void setHttpPort(String httpPort)
    • setHttpsPort

      public void setHttpsPort(String httpsPort)
    • setQueryStringBuilder

      public void setQueryStringBuilder(QueryStringBuilder builder)
    • buildUrl

      public String buildUrl(String action, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String,Object> params)
      Specified by:
      buildUrl in interface UrlHelper
    • buildUrl

      public String buildUrl(String action, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String,Object> params, String scheme, boolean includeContext, boolean encodeResult)
      Specified by:
      buildUrl in interface UrlHelper
    • buildUrl

      public String buildUrl(String action, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String,Object> params, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort)
      Specified by:
      buildUrl in interface UrlHelper
    • buildUrl

      public String buildUrl(String action, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String,Object> params, String urlScheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)
      Specified by:
      buildUrl in interface UrlHelper
    • isValidScheme

      protected boolean isValidScheme(String scheme)