Package org.w3c.jigadm

Examples of org.w3c.jigadm.RemoteResourceWrapper


      errorPopup("RemoteAccessException", ex);
      //( new MessagePopup("RemoteAccessException : "+
      //ex.getMessage())).show();
      return;
  }
  rootResource = new RemoteResourceWrapper(rr, this);
  initialize(rootResource, "Root", this, diricon);
  tl.focusChanged(rootResource);
  repaint();
    }
View Full Code Here


  } catch (RemoteAccessException ex) {
      // Unable to connect for whatever reason... exit!
      ex.printStackTrace();
      System.exit(0);
  }
  rootResource = new RemoteResourceWrapper(rr, this);
  initialize(rootResource, "Root", this, diricon);
    }
View Full Code Here

    */
    public void notifyExpander(TreeBrowser browser, TreeNode nd) {
  if(tl != null) {
      tl.focusChanged((RemoteResourceWrapper)nd.getItem());
  }
  RemoteResourceWrapper rrw = null;
  RemoteResource rr = null;
  boolean ic = false;
  boolean authorized;

  rrw = (RemoteResourceWrapper)nd.getItem();
  if(rrw == null)
      return;
  rr = rrw.getResource();
  try {
      ic = rr.isContainer();
  } catch(Exception ex) {
      ex.printStackTrace();
  }
  if(ic) {
      String names[] = null;
      setCursor(Frame.WAIT_CURSOR);
      authorized = false;
      while(!authorized) {
    authorized = true;
    try {
        names = rr.enumerateResourceIdentifiers();
    } catch (RemoteAccessException ex) {
        if( ex.getMessage().equals("Unauthorized")) {
      authorized = false;
        } else {
          names = new String[0];
          errorPopup("RemoteAccessException", ex);
          ex.printStackTrace();
        }
    } finally {
        if(!authorized) {
      popupDialog("admin");
        }
    }
      }
      Sorter.sortStringArray(names, true);
      if (debug)
    System.out.println("Found "+names.length+" identifiers");
            for(int i = 0; i <names.length; i++) {
    boolean nic = false;
    RemoteResourceWrapper nrrw = getResources(rrw, names[i]);
    RemoteResource nrr = nrrw.getResource();
    try {
        nic = nrr.isContainer();
    } catch(Exception ex) {
        ex.printStackTrace();
    }
View Full Code Here

  if(isDirectory(this, nd))
     nd.setIcon(diropenedicon);
    }

    public boolean isDirectory(TreeBrowser browser, TreeNode nd) {
  RemoteResourceWrapper rrw = null;
  boolean ic = false;
  rrw = (RemoteResourceWrapper)nd.getItem();
  if(rrw == null)
      return false;
  try {
      return rrw.getResource().isContainer();
  } catch (Exception ex) {
      ex.printStackTrace();
  }
  return false;
    }
View Full Code Here

          rrw.getBrowser().popupDialog("admin");
      }
        }
    }
    if(ok) {
        RemoteResourceWrapper nrrw =
      new RemoteResourceWrapper(rrw, newFrame,
              rrw.getBrowser());
        processEvent(new ResourceChangeEvent(rrw,"added", null,
               nrrw));
        //FIXME useful??
        widget.validate();
View Full Code Here

  protected String [] getStringArray(RemoteResourceWrapper rrw, Properties p) {
    String name = (String)p.get(RESOURCE_P);
    if (name == null)
      return new String[0];
    RemoteResourceWrapper w = rrw;
    RemoteResource rm = w.getResource();
    RemoteResource target = null;

    do {
      w = w.getFatherWrapper();
      if (w != null) {
  rm = w.getResource();
  try {
    if ((rm.getClassHierarchy())[0].equals
        ("org.w3c.jigsaw.http.ConfigResource"))
      target = rm.loadResource(name);
  } catch (RemoteAccessException ex) {
View Full Code Here

                   selected);
    } catch (RemoteAccessException ex) {
        errorPopup("RemoteAccessException",ex);
        return;
    }
    RemoteResourceWrapper nrrw;
    nrrw = new RemoteResourceWrapper(rrw, nrr, rrw.getBrowser());
    rrw.getBrowser().insertNode(rrw, nrrw, tf.getText());
      }
  }
    }
View Full Code Here

             "org.w3c.jigsaw.auth.AuthRealm");
      } catch (RemoteAccessException ex) {
          errorPopup("RemoteAccessException",ex);
    return;
      }
      RemoteResourceWrapper nrrw;
      nrrw = new RemoteResourceWrapper(rrw, nrr, rrw.getBrowser());
      rrw.getBrowser().insertNode(rrw, nrrw, tf.getText());
  }
    }
View Full Code Here

             "org.w3c.jigsaw.auth.AuthUser");
      } catch (RemoteAccessException ex) {
          errorPopup("RemoteAccessException",ex);
    return;
      }
      RemoteResourceWrapper nrrw;
      nrrw = new RemoteResourceWrapper(rrw, nrr, rrw.getBrowser());
      rrw.getBrowser().insertNode(rrw, nrrw, tf.getText());
  }
    }
View Full Code Here

           Properties p)
    {
  String name = (String)p.get(HttpServerResourceFeeder.RESOURCE_P);
  if (name == null)
      return null;
  RemoteResourceWrapper w = rrw;
  RemoteResource rm = w.getResource();
  RemoteResource target = null;
  do {
      w = w.getFatherWrapper();
      if (w != null) {
    rm = w.getResource();
    try {
        if ((rm.getClassHierarchy())[0].equals
      ("org.w3c.jigsaw.http.ConfigResource"))
      target = rm.loadResource(name);
    } catch (RemoteAccessException ex) {
View Full Code Here

TOP

Related Classes of org.w3c.jigadm.RemoteResourceWrapper

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.