Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.ResourceContext


    public void start ()
  throws ServerHandlerInitException
    {
  if (!isAClone) {
      // Create the default resource context (shared by all resources):
      this.context = new ResourceContext(this);
      //FIXME
      // Create the resource store manager
      initializeResourceSpace(identifier,
            root_class,
            props.getString(EDIT_ROOT_P, root_name),
View Full Code Here


     * attribute is set to the full URL path of the children.
     * </dl>
     */

    protected ResourceContext updateDefaultChildAttributes(Hashtable attrs) {
  ResourceContext context = super.updateDefaultChildAttributes(attrs);
  if (context == null) {
      context = new ResourceContext(getContext());
      attrs.put(co, context) ;
  }
  attrs.put(ur, "/");
  return context;
    }
View Full Code Here

    if (rr == null) {
        // create the resource.
        FramedResource resource = new FramedResource();
        Hashtable defs = new Hashtable(5) ;
        defs.put(id, noext);
        ResourceContext context =
      updateDefaultChildAttributes(defs);
        resource.initialize(defs);
        addResource(resource, defs);
        // add a NegotiatedFrame.
        String variants[] = new String[1] ;
View Full Code Here

   
    NewStoreEntry entry = new NewStoreEntry(this,
              ROOT_REP,
              getRootKey());
    ResourceReference rr = entry.addResource(root, defs);
    ResourceContext context = (ResourceContext)
        defs.get("context");
    context.setResourceReference(rr);
    entry.saveResource(root);
    entries.put(getRootKey(), entry);
    saveNewEntriesIndex();
      } catch (InstantiationException ex) {
      } catch (IllegalAccessException ex) {
View Full Code Here

    protected synchronized ResourceReference getDirectories() {
  if ( directories == null ) {
      String diridxid = getIdentifier()+"-d";
      directories = new DummyResourceReference(
             new TemplateContainer(
             new ResourceContext(getContext()),
                 diridxid+".db"));
  }
  return directories;
    }
View Full Code Here

    protected synchronized ResourceReference getExtensions() {
  if ( extensions == null ) {
      String extidxid = getIdentifier()+"-e";
      extensions = new DummyResourceReference(
            new TemplateContainer(
            new ResourceContext(getContext()),
                extidxid+".db"));
  }
  return extensions;
    }
View Full Code Here

TOP

Related Classes of org.w3c.tools.resources.ResourceContext

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.