Package javax.naming

Examples of javax.naming.CannotProceedException


      if(isBinded(name)) {
        Object subCtx = getObject(name, credence);
        if(subCtx != null && subCtx instanceof NamingServer) {
          newSubCtx = ((NamingServer)subCtx).createSubcontext(name.getSuffix(1), credence);
        } else {
          throw new CannotProceedException(name.get(0) + "is not a valid namespace.");
        }
      } else {
        throw new NameNotFoundException(name.get(0) + "is not bound.");
      }
    } else {
View Full Code Here


    } else {
      Object ctx = getObject(name, credence);
      if(ctx instanceof Naming) {
        list = ((Naming)ctx).list(name, credence);
      } else {
        throw new CannotProceedException(name + " is not a valid namespace.");
      }
    }
    return list;
  }
View Full Code Here

    } else {
      Object ctx = getObject(name, credence);
      if(ctx instanceof NamingServer) {
        list = ((NamingServer)ctx).listBindings(name.getSuffix(1), credence);
      } else {
        throw new CannotProceedException(name + " is not a valid namespace.");
      }
    }
   
    return list;
  }
View Full Code Here

      if(isBinded(name)) {
        Object subCtx = getObject(name, credence);
        if(subCtx != null && subCtx instanceof NamingServer) {
          ((NamingServer)subCtx).rebind(name.getSuffix(1), object, className, credence);
        } else {
          throw new CannotProceedException(name.get(0) + "is not a valid namespace.");
        }
      } else {
        throw new NameNotFoundException(name.get(0) + "is not bound.");
      }
    } else {
View Full Code Here

      if(isBinded(name)) {
        Object subCtx = getObject(name, credence);
        if(subCtx != null && subCtx instanceof NamingServer) {
          ((NamingServer)subCtx).unbind(name.getSuffix(1), credence);
        } else {
          throw new CannotProceedException(name.get(0) + "is not a valid namespace.");
        }
      } else {
        throw new NameNotFoundException(name.get(0) + "is not bound.");
      }
    } else {
View Full Code Here

/* 109 */           ((NamingServer)ctx).bind(name.getSuffix(1), obj, className); } else {
/* 110 */           if ((ctx instanceof Reference))
/*     */           {
/* 113 */             if (((Reference)ctx).get("nns") != null)
/*     */             {
/* 115 */               CannotProceedException cpe = new CannotProceedException();
/* 116 */               cpe.setResolvedObj(ctx);
/* 117 */               cpe.setRemainingName(name.getSuffix(1));
/* 118 */               throw cpe;
/*     */             }
/*     */
/* 121 */             throw new NotContextException();
/*     */           }
View Full Code Here

/* 168 */         ((NamingServer)ctx).rebind(name.getSuffix(1), obj, className); } else {
/* 169 */         if ((ctx instanceof Reference))
/*     */         {
/* 172 */           if (((Reference)ctx).get("nns") != null)
/*     */           {
/* 174 */             CannotProceedException cpe = new CannotProceedException();
/* 175 */             cpe.setResolvedObj(ctx);
/* 176 */             cpe.setRemainingName(name.getSuffix(1));
/* 177 */             throw cpe;
/*     */           }
/*     */
/* 180 */           throw new NotContextException();
/*     */         }
View Full Code Here

/* 215 */         ((NamingServer)ctx).unbind(name.getSuffix(1)); } else {
/* 216 */         if ((ctx instanceof Reference))
/*     */         {
/* 219 */           if (((Reference)ctx).get("nns") != null)
/*     */           {
/* 221 */             CannotProceedException cpe = new CannotProceedException();
/* 222 */             cpe.setResolvedObj(ctx);
/* 223 */             cpe.setRemainingName(name.getSuffix(1));
/* 224 */             throw cpe;
/*     */           }
/*     */
/* 227 */           throw new NotContextException();
/*     */         }
View Full Code Here

/*     */           Object result;
/* 271 */           if ((ctx instanceof Reference))
/*     */           {
/* 274 */             if (((Reference)ctx).get("nns") != null)
/*     */             {
/* 276 */               CannotProceedException cpe = new CannotProceedException();
/* 277 */               cpe.setResolvedObj(ctx);
/* 278 */               cpe.setRemainingName(name.getSuffix(1));
/* 279 */               throw cpe;
/*     */             }
/*     */
/* 282 */             result = new ResolveResult(ctx, name.getSuffix(1));
/*     */           }
View Full Code Here

/* 337 */       return ((NamingServer)ctx).list(name.getSuffix(1));
/* 338 */     }if ((ctx instanceof Reference))
/*     */     {
/* 341 */       if (((Reference)ctx).get("nns") != null)
/*     */       {
/* 343 */         CannotProceedException cpe = new CannotProceedException();
/* 344 */         cpe.setResolvedObj(ctx);
/* 345 */         cpe.setRemainingName(name.getSuffix(1));
/* 346 */         throw cpe;
/*     */       }
/*     */
/* 349 */       throw new NotContextException();
/*     */     }
View Full Code Here

TOP

Related Classes of javax.naming.CannotProceedException

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.