Ejemplo n.º 1
0
  /**
   * Set the location.
   *
   * @param location The new location
   */
  public void setLocation(String location) {

    //        if ((location == null) || !location.startsWith("/"))
    //            throw new IllegalArgumentException
    //                ("Error Page Location must start with a '/'");
    this.location = RequestUtil.URLDecode(location);
  }
Ejemplo n.º 2
0
 public void addURLPattern(String urlPattern) {
   if ("*".equals(urlPattern)) {
     this.matchAllUrlPatterns = true;
   } else {
     String[] results = new String[urlPatterns.length + 1];
     System.arraycopy(urlPatterns, 0, results, 0, urlPatterns.length);
     results[urlPatterns.length] = RequestUtil.URLDecode(urlPattern);
     urlPatterns = results;
   }
 }