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);
  }
示例#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);
 }
示例#4
0
 public Set keySet() {
   Set set = map.keySet();
   return UnmodifiableSet.decorate(set);
 }
示例#5
0
 public Set entrySet() {
   Set set = map.entrySet();
   // unmodifiable set will still allow modification via Map.Entry objects
   return UnmodifiableSet.decorate(set);
 }
示例#6
0
文件: Group.java 项目: Kayvlim/fenix
 protected Set<Person> freezeSet(Set<Person> elements) {
   return UnmodifiableSet.decorate(elements);
 }