org.eclipse.jetty.plus.jndi
类 NamingEntryUtil
java.lang.Object
org.eclipse.jetty.plus.jndi.NamingEntryUtil
public class NamingEntryUtil
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamingEntryUtil
public NamingEntryUtil()
bindToENC
public static boolean bindToENC(Object scope,
String asName,
String mappedName)
throws NamingException
- Link a name in a webapp's java:/comp/evn namespace to a pre-existing
resource. The pre-existing resource can be either in the webapp's
naming environment, or in the container's naming environment. Webapp's
environment takes precedence over the server's namespace.
- 参数:
scope - the scope of the lookupasName - the name to bind asmappedName - the name from the environment to link to asName
- 抛出:
NamingException
lookupNamingEntry
public static NamingEntry lookupNamingEntry(Object scope,
String jndiName)
throws NamingException
- Find a NamingEntry in the given scope.
- 参数:
scope - jndiName -
- 返回:
- the naming entry for the given scope
- 抛出:
NamingException
lookup
public static Object lookup(Object scope,
String jndiName)
throws NamingException
- 抛出:
NamingException
lookupNamingEntries
public static List<Object> lookupNamingEntries(Object scope,
Class<?> clazz)
throws NamingException
- Get all NameEntries of a certain type in the given naming
environment scope (server-wide names or context-specific names)
- 参数:
scope - clazz - the type of the entry
- 返回:
- all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names)
- 抛出:
NamingException
makeNamingEntryName
public static Name makeNamingEntryName(NameParser parser,
NamingEntry namingEntry)
throws NamingException
- 抛出:
NamingException
makeNamingEntryName
public static Name makeNamingEntryName(NameParser parser,
String jndiName)
throws NamingException
- 抛出:
NamingException
getNameForScope
public static Name getNameForScope(Object scope)
getContextForScope
public static Context getContextForScope(Object scope)
throws NamingException
- 抛出:
NamingException
getContextForNamingEntries
public static Context getContextForNamingEntries(Object scope)
throws NamingException
- 抛出:
NamingException
Copyright © 2013. All Rights Reserved.