Package anvil.server

Examples of anvil.server.Resource




  public ModuleEnvelope forge() throws IOException, ForgingException
  {
    Resource resource = _address.openResource();
    return new ModuleEnvelope(_cache, _address, resource, _version+1, true);
  }
View Full Code Here


 
  protected ModuleEnvelope load(Address address)
    throws IOException, ForgingException
  {
    ModuleEnvelope envelope = _cache.get(address);
    Resource resource = null;
    boolean reload = false;
    if (envelope != null) {
      long lastmodified = envelope.getLastModified();
      if ((lastmodified != -1) && address.getZone().shouldInvalidate()) {
        resource = address.openResource();
        if (resource.getLastModified() > lastmodified) {
          reload = true;
        }
      }   
    } else {
      resource = address.openResource();
View Full Code Here

    } catch (anvil.server.ZoneInactiveException e) {
      throw context.ImportError(e.getMessage(), null);
    }
    context.checkImport(importing.getPathinfo());
    try {
      Resource resource = importing.openResource();
      return new AnyResource(resource);
    } catch (anvil.server.ContainerException t) {
      throw context.ImportError(t.getMessage(), null);
    }
  }
View Full Code Here

TOP

Related Classes of anvil.server.Resource

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.