Interface Encodes.URLEncoder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String encodeURL​(javax.servlet.ServletContext ctx, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String url, Encodes.URLEncoder defaultEncoder)
      Encodes the specified URL by including the session ID and the servlet context path, if necessary.
    • Method Detail

      • encodeURL

        java.lang.String encodeURL​(javax.servlet.ServletContext ctx,
                                   javax.servlet.ServletRequest request,
                                   javax.servlet.ServletResponse response,
                                   java.lang.String url,
                                   Encodes.URLEncoder defaultEncoder)
                            throws java.lang.Exception
        Encodes the specified URL by including the session ID and the servlet context path, if necessary.

        Notice that url might contain "~" and other special characters that the Web server won't support. The implementation might invoke back the default encoding by use of the defaultEcoder parameter.

        Parameters:
        url - the URL to encode. It shall not include the servlet context path.
        defaultEncoder - the default encoder (never null).
        Throws:
        java.lang.Exception
        Since:
        5.0.0