Examples of ResolveResult


Examples of javax.naming.spi.ResolveResult

            context.close();
        }
    }

    public Attributes getAttributes(String url) throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.getAttributes(result.getRemainingName());
        } finally {
            context.close();
        }
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

        }
    }

    public Attributes getAttributes(String url, String[] as)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.getAttributes(result.getRemainingName(), as);
        } finally {
            context.close();
        }
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

            context.close();
        }
    }

    public DirContext getSchema(String url) throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.getSchema(result.getRemainingName());
        } finally {
            context.close();
        }
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

        }
    }

    public DirContext getSchemaClassDefinition(String url)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.getSchema(result.getRemainingName());
        } finally {
            context.close();
        }
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    }

    public void modifyAttributes(String url, int i, Attributes attributes)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            context.modifyAttributes(result.getRemainingName(), i, attributes);
        } finally {
            context.close();
        }

    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    }

    public void modifyAttributes(String url,
            ModificationItem[] modificationItems) throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            context.modifyAttributes(result.getRemainingName(),
                    modificationItems);
        } finally {
            context.close();
        }
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    }

    public void rebind(String url, Object obj, Attributes attributes)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            context.rebind(result.getRemainingName(), obj, attributes);
        } finally {
            context.close();
        }

    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    if (context == null) {
      throw new NameNotFoundException("No context for this component");
    }
   
    // Build a ResolveResult object to return
    ResolveResult r = new ResolveResult(context, rname);
    return r;
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    if (name.equals("")) {
      return new hascnURLContext(myEnv);
    }

    // Retrieve the correct context to resolve the reminding name
    ResolveResult r = findContextFor(name);
    Context ctx = (Context) r.getResolvedObj();
    String rname = r.getRemainingName().toString();
   

    Object o =  ctx.lookup(rname);
    return o;
    ////////////////////////////
View Full Code Here

Examples of javax.naming.spi.ResolveResult

   *     if object did not supply all mandatory attributes
   * @throws  NamingException if a naming exception is encountered
   */
  public void bind(String name, Object obj) throws NamingException {
    // Retrieve the correct context for this name
    ResolveResult r = findContextFor(name);
    Context ctx = (Context) r.getResolvedObj();
    String rname = r.getRemainingName().toString();

    // Bind the name in its proper context
    ctx.bind(rname, obj);
  }
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.