Package javax.naming

Examples of javax.naming.OperationNotSupportedException


   * @param newName
   *    the name of the new binding; may not be empty
   * @throws  NamingException if a naming exception is encountered
   */
  public void rename(String oldName, String newName) throws NamingException {
    throw new OperationNotSupportedException("Rename not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here


   *    context, or does not name a context of the appropriate type
   * @throws  ContextNotEmptyException if the named context is not empty
   * @throws  NamingException if a naming exception is encountered
   */
  public void destroySubcontext(String name) throws NamingException {
    throw new OperationNotSupportedException("destroySubcontext not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

   * @throws  NamingException if a naming exception is encountered
   *
   * @see #composeName(String, String)
   */
  public Name composeName(Name name, Name prefix) throws NamingException {
    throw new OperationNotSupportedException("scnURLContext: composeName not supported");
  }
View Full Code Here

   *    the name of this context relative to one of its ancestors
   * @return  the composition of prefix and name
   * @throws  NamingException if a naming exception is encountered
   */
  public String composeName(String name, String prefix) throws NamingException {
    throw new OperationNotSupportedException("composeName not supported in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

   * @throws  OperationNotSupportedException if the naming system does
   *    not have the notion of a full name
   * @throws  NamingException if a naming exception is encountered
   */
  public String getNameInNamespace() throws NamingException {
    throw new OperationNotSupportedException("getNameInNamespace not implemented in scn:comp in " + this.getClass().getName());
  }
View Full Code Here

            }
        }
    }

    public void rename(Name oldName, Name newName) throws NamingException {
        throw new OperationNotSupportedException(
                "rename not supported in Winstone java:/ context");
    }
View Full Code Here

                name2));
        return name == null ? null : name.toString();
    }

    public Name composeName(Name name1, Name name2) throws NamingException {
        throw new OperationNotSupportedException(
                "composeName not supported in Winstone java:/ namespace");
    }
View Full Code Here

     * @param name the name of the context to be destroyed; may not be empty
     * @throws NamingException if a naming exception is encountered
     */
    public void destroySubcontext(final String name) throws NamingException {
        logger.error("CompNamingContext try to destroySubcontext {0}", name);
        throw new OperationNotSupportedException("CompNamingContext: destroySubcontext");
    }
View Full Code Here

     * @throws NamingException if a naming exception is encountered
     */
    public Name composeName(final Name name, final Name prefix) throws NamingException {
        logger.error("CompNamingContext composeName not implemented yet!");

        throw new OperationNotSupportedException("CompNamingContext composeName");
    }
View Full Code Here

     * @throws NamingException if a naming exception is encountered
     */
    public String composeName(final String name, final String prefix) throws NamingException {
        logger.error("CompNamingContext composeName {0} {1}", name, prefix);

        throw new OperationNotSupportedException("CompNamingContext composeName");
    }
View Full Code Here

TOP

Related Classes of javax.naming.OperationNotSupportedException

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.