Examples of unsafeLock()


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

      for (int i = 0 ; i < variants.length ; i++) {
    if (variants[i] == null)
        continue;
    rr = variants[i];
    try {
        resource = (FramedResource)rr.unsafeLock() ;
        itsframe = (HTTPFrame)resource.getFrame(httpFrameClass);
        if (itsframe == null) {
      nb_v--;
      variants[i] = null;
      continue;
View Full Code Here

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

  throws ProtocolException, ResourceException
    {
  ResourceReference rr = getResource().getParent();
  if (rr != null) {
      try {
    FramedResource p = (FramedResource)rr.unsafeLock();
    // synchronize here to create locks in the right order
    synchronized (p) {
        // verify
        Class http_class = null;
        try {
View Full Code Here

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

        if (rrf == null) {
      throw new ResourceException("DirectoryResource has "+
                "no HTTPFrame");
        }
        try {
      HTTPFrame httpframe = (HTTPFrame) rrf.unsafeLock();
      if (p instanceof DirectoryResource)
          return httpframe.getDirectoryListing(request);
      else
          return httpframe.get(request);
        } catch (InvalidResourceException ex) {
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.