01: package com.flexive.war.webdav.catalina;
02:
03: import javax.naming.CompositeName;
04: import javax.naming.Name;
05: import javax.naming.NameParser;
06: import javax.naming.NamingException;
07:
08: /**
09: * Catalina sources cloned for packaging issues to the flexive source tree.
10: * Refactored to JDK 1.5 compatibility.
11: * Licensed under the Apache License, Version 2.0
12: * <p/>
13: * Parses names.
14: *
15: * @author Remy Maucherat
16: * @author Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
17: */
18:
19: public class NameParserImpl implements NameParser {
20:
21: // ----------------------------------------------------- Instance Variables
22:
23: // ----------------------------------------------------- NameParser Methods
24:
25: /**
26: * Parses a name into its components.
27: *
28: * @param name The non-null string name to parse
29: * @return A non-null parsed form of the name using the naming convention
30: * of this parser.
31: */
32: public Name parse(String name) throws NamingException {
33: return new CompositeName(name);
34: }
35: }
|