| 1 7 package winstone.jndi; 8 9 import java.util.Properties ; 10 11 import javax.naming.CompoundName ; 12 import javax.naming.Name ; 13 import javax.naming.NameParser ; 14 import javax.naming.NamingException ; 15 16 22 public class WinstoneNameParser implements NameParser { 23 private static final Properties syntax = new Properties (); 24 static { 25 syntax.put("jndi.syntax.direction", "left_to_right"); 26 syntax.put("jndi.syntax.separator", "/"); 27 syntax.put("jndi.syntax.ignorecase", "false"); 28 syntax.put("jndi.syntax.escape", "\\"); 29 syntax.put("jndi.syntax.beginquote", "'"); 30 } 31 32 public Name parse(String name) throws NamingException { 33 return new CompoundName (name, syntax); 34 } 35 } 36 | Popular Tags |