static {
    TreeSet set = new TreeSet();
    set.add("/rhn/Login");
    set.add("/rhn/ReLogin");
    set.add("/rhn/newlogin/");

    LOGIN_URIS = UnmodifiableSet.decorate(set);

    set = new TreeSet(set);
    set.add("/rhn/rpc/api");
    set.add("/rhn/help/");
    set.add("/rhn/apidoc");
    set.add("/rhn/kickstart/DownloadFile");
    set.add("/rhn/ty/TinyUrl");
    set.add("/css");
    set.add("/img");
    set.add("/favicon.ico");
    set.add("/rhn/common/DownloadFile");
    // password-reset-link destination
    set.add("/rhn/ResetLink");
    set.add("/rhn/ResetPasswordSubmit");

    UNPROTECTED_URIS = UnmodifiableSet.decorate(set);

    set = new TreeSet(set);
    set.add("/rhn/common/DownloadFile");
    // search (safe to be unprotected, since it has no modifying side-effects)
    set.add("/rhn/Search.do");

    POST_UNPROTECTED_URIS = UnmodifiableSet.decorate(set);
  }
Esempio n. 2
0
 /**
  * Gets an unmodifiable view as a Set.
  *
  * @return an unmodifiable set view
  */
 public Set asSet() {
   return UnmodifiableSet.decorate(set);
 }
 @SuppressWarnings("unchecked")
 protected Set<String> getExecutableTypes() {
   return UnmodifiableSet.decorate(executableTypes);
 }
Esempio n. 4
0
 public Set keySet() {
   Set set = map.keySet();
   return UnmodifiableSet.decorate(set);
 }
Esempio n. 5
0
 public Set entrySet() {
   Set set = map.entrySet();
   // unmodifiable set will still allow modification via Map.Entry objects
   return UnmodifiableSet.decorate(set);
 }
Esempio n. 6
0
 protected Set<Person> freezeSet(Set<Person> elements) {
   return UnmodifiableSet.decorate(elements);
 }