|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.jetty.plus.naming.NamingEntryUtil
public class NamingEntryUtil
Constructor Summary | |
---|---|
NamingEntryUtil()
|
Method Summary | |
---|---|
static void |
bindToENC(String asName,
String mappedName)
Link a name in a webapps java:/comp/evn namespace to a pre-existing resource. |
static String |
getMappedName(String localName)
Check to see if there is a mapping for a local resource name from web.xml. |
static List |
lookupNamingEntries(int scopeType,
Class clazz)
Get all NameEntries of a certain type in either the local or global namespace. |
static Object |
lookupNamingEntry(Context context,
String jndiName)
Find a NamingEntry. |
static NamingEntry |
lookupNamingEntry(String jndiName)
Find a NamingEntry instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamingEntryUtil()
Method Detail |
---|
public static String getMappedName(String localName) throws NamingException
localName
-
NamingException
public static void bindToENC(String asName, String mappedName) throws NamingException
asName
- the name to bind asmappedName
- the name from the environment to link to asNamenamingEntryType
-
NamingException
public static NamingEntry lookupNamingEntry(String jndiName) throws NamingException
jndiName
- name to lookup
NamingException
public static Object lookupNamingEntry(Context context, String jndiName) throws NamingException
context
- the context to searchclazz
- the type of the entry (ie subclass of NamingEntry)jndiName
- the name of the class instance
NamingException
public static List lookupNamingEntries(int scopeType, Class clazz) throws NamingException
scopeType
- local or globalclazz
- the type of the entry
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |