Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.ResourceReference.unlock()


      return frame.getServletContext();
    }
      } catch (InvalidResourceException ex) {
    // continue
      } finally {
    r_target.unlock();
      }
  }
  return null;
    }
View Full Code Here


      if (rra == null)
          error(request, "unknown frame");
        } catch (InvalidResourceException ex) {
      error(request, ex.getMessage());
        } finally {
      the_rrf.unlock();
        }
        the_rrf = null;
        frameName = lfs.getNextComponent();
        ResourceReference rrf   = null;
        ResourceFrame     frame = null;
View Full Code Here

        break;
          }
      } catch (InvalidResourceException ex) {
          error(request, ex.getMessage());
      } finally {
          rrf.unlock();
      }
        }
        if (the_rrf == null)
      error(request,"unknown frame");
    }
View Full Code Here

  } catch (IOException ioex) {
      error(request, "bad request");
  } catch (AdminProtocolException apex) {
      error(request, apex.getMessage());
  } finally {
      rr.unlock();
  }
  // All the changes done, return OK:
  return okReply(request);
    }
View Full Code Here

      // Should not be continued by the caller.
      return true;
  } catch (InvalidResourceException ex) {
      return false;
  } finally {
      vrroot.unlock();
  }
    }
}
View Full Code Here

      (FramedResource) selected.unsafeLock();
        resource.lookup(ls, lr);
    } catch (InvalidResourceException ex) {
        // the failure will be processed in perform
    } finally {
        selected.unlock();
    }
      }
      request.setState(STATE_NEG, selected);
      // fake now, we handle the process to have a two-level processing
      // just to add the Vary: header
View Full Code Here

  } catch (InvalidResourceException ex) {
      Reply error = request.makeReply(HTTP.INTERNAL_SERVER_ERROR) ;
      error.setContent("Error negotiating : Invalid selected resource");
      throw new HTTPException(error) ;
  } finally {
      selected.unlock();
  }
    }
}
View Full Code Here

        handler = new CvsDirectoryHandler(cvs);
    } catch (InvalidResourceException ex) {
        getServer().errlog(resource, "Invalid parent");
        throw new RuntimeException("The server is misconfigured.");
    } finally {
        rrp.unlock();
    }
      }
  }
  return cvs;
    }
View Full Code Here

    return (((DirectoryResource)parent).lookup(name) != null);
      } catch (InvalidResourceException ex) {
    getServer().errlog(resource, "Invalid parent");
    throw new RuntimeException("The server is misconfigured.");
      } finally {
    rrp.unlock();
      }
  } else {
      getServer().errlog(resource, "No parent!");
      throw new RuntimeException("The server is misconfigured.");
  }
View Full Code Here

      parentpath = parent.getURLPath();
  } catch (InvalidResourceException ex) {
      getServer().errlog(resource, "Invalid parent");
      throw new RuntimeException("The server is misconfigured.");
  } finally {
      rr_parent.unlock();
  }

  //entries
  boolean nofile   = true;
  boolean nodir    = true;
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.