Examples of DirContextURLStreamHandler


Examples of org.apache.naming.resources.DirContextURLStreamHandler

                        ("jndi", null, 0, getJNDIUri(hostName, fullPath),
                         */
                        // START SJAS 6318494
                        ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                        // END SJSAS 6318494
             new DirContextURLStreamHandler(resources));
                } catch (Exception e) {
                    // Ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

            String hostName = context.getParent().getName();
            try {
                resources.lookup(path);
                return new URL
                    ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                     new DirContextURLStreamHandler(resources));
            } catch (NamingException e) {
                // Ignore
            } catch (Exception e) {
                // Unexpected
                log(sm.getString("applicationContext.lookup.error", path,
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

                        ("jndi", null, 0, getJNDIUri(hostName, fullPath),
                         */
                        // START SJAS 6318494
                        ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                        // END SJSAS 6318494
             new DirContextURLStreamHandler(resources));
                } catch (Exception e) {
                    try {
                        // Try looking up resource in
                        // WEB-INF/lib/[*.jar]/META-INF/resources
                        return getMetaInfResource(path);
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

                String hostName = context.getParent().getName();
                try {
                    resources.lookup(path);
                    return new URL
                        ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                         new DirContextURLStreamHandler(resources));
                } catch (Exception e) {
                    // Ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

                String hostName = context.getParent().getName();
                try {
                    resources.lookup(path);
                    return new URL
                        ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                         new DirContextURLStreamHandler(resources));
                } catch (Exception e) {
                    // Ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

            String hostName = context.getParent().getName();
            try {
                resources.lookup(path);
                return new URL
                    ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                     new DirContextURLStreamHandler(resources));
            } catch (NamingException e) {
                // Ignore
            } catch (Exception e) {
                // Unexpected
                log(sm.getString("applicationContext.lookup.error", path,
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

            if ("jndi".equals(currentUrl.getProtocol())) {
                String file = currentUrl.getFile();
                try {
                    final URLConnection connection = currentUrl.openConnection();
                    if (connection instanceof DirContextURLConnection) {
                        final DirContextURLStreamHandler handler = DirContextURLStreamHandler.class.cast(Reflections.get(currentUrl, "handler"));
                        final ProxyDirContext dirContext = ProxyDirContext.class.cast(Reflections.get(handler, "context"));
                        final String host = String.class.cast(Reflections.get(dirContext, "hostName"));
                        final String contextPath = String.class.cast(Reflections.get(dirContext, "contextPath"));
                        final Object context = Reflections.get(dirContext, "dirContext");
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

            String hostName = context.getParent().getName();
            try {
                resources.lookup(path);
                return new URL
                    ("jndi", "", 0, getJNDIUri(hostName, fullPath),
                     new DirContextURLStreamHandler(resources));
            } catch (NamingException e) {
                // Ignore
            } catch (Exception e) {
                // Unexpected
                log(sm.getString("applicationContext.lookup.error", path,
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

                String hostName = context.getParent().getName();
                try {
                    resources.lookup(path);
                    return new URL
                        ("jndi", null, 0, getJNDIUri(hostName, fullPath),
                         new DirContextURLStreamHandler(resources));
                } catch (Exception e) {
                    // Ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.naming.resources.DirContextURLStreamHandler

            try {
                resources.lookup(normPath);
                URI uri = new URI("jndi", null, "", -1,
                        getJNDIUri(hostName, fullPath), null, null);
                return new URL(null, uri.toString(),
                        new DirContextURLStreamHandler(resources));
            } catch (NamingException e) {
                // Ignore
            } catch (Exception e) {
                // Unexpected
                log(sm.getString("applicationContext.lookup.error", path,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.