Exemple #1
0
  @Override
  public String encodeRedirectURL(String baseUrl, Map<String, List<String>> parameters) {

    UrlBuilder builder = new UrlBuilder(baseUrl, getResponseCharacterEncoding());
    builder.addParameters(parameters);
    return builder.createUrl();
  }
Exemple #2
0
 /**
  * @see javax.faces.context.ExternalContext#encodePartialActionURL(String)
  * @return
  */
 @Override
 public String encodePartialActionURL(String url) {
   UrlBuilder builder = new UrlBuilder(url, getResponseCharacterEncoding());
   return ((HttpServletResponse) response).encodeURL(builder.createUrl());
 }