use of javax.naming.CompoundName in project jetty.project by eclipse.
the class NamingContext method composeName.
/*------------------------------------------------*/
/** Join two names together. These are treated as
* CompoundNames.
*
* @param name a <code>Name</code> value
* @param prefix a <code>Name</code> value
* @return a <code>Name</code> value
* @exception NamingException if an error occurs
*/
public String composeName(String name, String prefix) throws NamingException {
if (name == null)
throw new NamingException("Name cannot be null");
if (prefix == null)
throw new NamingException("Prefix cannot be null");
Name compoundName = _parser.parse(prefix);
compoundName.add(name);
return compoundName.toString();
}
use of javax.naming.CompoundName in project jetty.project by eclipse.
the class NamingContext method composeName.
/*------------------------------------------------*/
/** Join two names together. These are treated as
* CompoundNames.
*
* @param name a <code>Name</code> value
* @param prefix a <code>Name</code> value
* @return a <code>Name</code> value
* @exception NamingException if an error occurs
*/
public Name composeName(Name name, Name prefix) throws NamingException {
if (name == null)
throw new NamingException("Name cannot be null");
if (prefix == null)
throw new NamingException("Prefix cannot be null");
Name compoundName = (CompoundName) prefix.clone();
compoundName.addAll(name);
return compoundName;
}
Aggregations