Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.ContainerResource.lookup()


      // List the children:
    for (int i = 0 ; i < resources.size() ; i++) {
        String            name = (String) resources.elementAt(i);
        ResourceReference rr   = null;
        long              size = -1;
        rr = cresource.lookup(name);
        FramedResource resource = null;
        if (rr != null) {
      try {
          resource = (FramedResource) rr.unsafeLock();
          // remove manually deleted FileResources
View Full Code Here


      host = host + ":" + port;
        }
    }
      }
      if (host != null) {
    vrroot = root.lookup(host.toLowerCase());
      }
  }
  if ( vrroot == null ) {
      vrroot  = lookupFollowup();
  }
View Full Code Here

    ResourceReference rr_dir = res.getParent();
    try {
        Resource parent = rr_dir.lock();
        if (parent instanceof ContainerResource) {
      ContainerResource dir = (ContainerResource) parent;
      ResourceReference rr_res = dir.lookup(name);
      if (rr_res == null) {
          this.setValue(ATTR_CONTENT_TYPE,
             org.w3c.www.mime.Utils.getMimeType(name));
          return;
      }
View Full Code Here

      // List the children:
      for (int i = 0 ; i < resources.size() ; i++) {
    String            name = (String) resources.elementAt(i);
    ResourceReference rr   = null;
    long              size = -1;
    rr = cresource.lookup(name);
    FramedResource resource = null;
    if (rr != null) {
        try {
      resource = (FramedResource) rr.lock();
      // remove manually deleted FileResources
View Full Code Here

        ResourceReference framrr;
        // get all the children, and find the container with
        // the most recent last-modified.
        while (res_enum.hasMoreElements()) {
      childname = (String) res_enum.nextElement();
      childrr = cr.lookup(childname);
      try {
          FramedResource cp = (FramedResource)childrr.lock();
          if (cp instanceof ContainerResource) {
        long lm = cp.getLastModified();
        if ((lmbest == 0) || (lm > lmbest)) {
View Full Code Here

      Enumeration e = cresource.enumerateResourceIdentifiers();
      ResourceReference rr = null;
      FramedResource    fr = null;
      while (e.hasMoreElements()) {
    String name = (String)e.nextElement();
    rr = cresource.lookup(name);
    if (rr != null) {
        try {
      fr = (FramedResource) rr.lock();
      if (fr == resource) { // for root
          continue;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.