Package org.jwall.web.policy

Examples of org.jwall.web.policy.WebPolicy


    log.debug("Loading parameter-types from: {}", url);

    if (url != null) {
      try {

        WebPolicy std = WebPolicy.load(url.openStream());

        if (std != null) {
          for (ParameterType pt : std.getParameterTypes())
            lm.add(pt);
        }

      } catch (Exception e2) {
        e2.printStackTrace();
View Full Code Here


    dividerLoc = d;
    this.validate();
  }

  public void createNewProfile() {
    WebPolicy p = new WebPolicy();

    URL url = WebPolicyEditor.class
        .getResource("/org/jwall/web/profile/standard-types.xml");
    if (url != null) {
      try {

        WebPolicy std = WebPolicy.load(url.openStream());
        if (std != null) {

          for (ResourceClass rc : std.getResourceClasses())
            p.add(rc);

          for (ParameterType pt : std.getParameterTypes())
            p.add(pt);
        }

      } catch (Exception e2) {
        e2.printStackTrace();
View Full Code Here

  /**
     *
     */
  public ParameterTypeListModel() {
    profile = new WebPolicy();
  }
View Full Code Here

TOP

Related Classes of org.jwall.web.policy.WebPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.