org.osjava.sj.jndi
Class SimpleNameParser
java.lang.Object
org.osjava.sj.jndi.SimpleNameParser
- All Implemented Interfaces:
- NameParser
public class SimpleNameParser
- extends Object
- implements NameParser
The NameParser for the Simple-JNDI.
- Since:
- OSJava Threads 2.0
- Version:
- $LastChangedRevision $ $LastChangedDate: 2007-06-24 19:01:53 -0700 (Sun, 24 Jun 2007) $
- Author:
- Robert M. Zigweid
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleNameParser
public SimpleNameParser(Context parent)
throws NamingException
- Creates a ThreadNameParser. Any relevant information that is needed,
such as the environment that is passed to
CompundName
objects that are created.
- Parameters:
parent - ThreadContext that utilizes the name parser.
- Throws:
NamingException - if a naming exception is found.
parse
public Name parse(String name)
throws InvalidNameException,
NamingException
- Parses a name into its components.
(Copied from NameParser.parse(java.lang.String)
- Specified by:
parse in interface NameParser
- Parameters:
name - The non-null string name to parse.
- Returns:
- A non-null parsed form of the name using the naming convention
of this parser.
- Throws:
InvalidNameException - If the name does not conform to syntax
defined for the namespace.
NamingException - If a naming exception was encountered.
Copyright © 2003-2008 OSJava. All Rights Reserved.