Package fr.dyade.aaa.jndi2.impl
Class NamingContext
- java.lang.Object
-
- fr.dyade.aaa.jndi2.impl.NamingContext
-
- All Implemented Interfaces:
NamingContextMBean,Serializable,Cloneable
public class NamingContext extends Object implements NamingContextMBean, Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CompositeNamecontextNameprivate NamingContextIdidprivate ObjectownerIdprivate Vector<Record>recordsprivate static longserialVersionUIDdefine serialVersionUID for interoperability
-
Constructor Summary
Constructors Constructor Description NamingContext(NamingContextId id, Object ownerId, CompositeName contextName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord(Record record)Objectclone()voidcreateSubcontext(String ctxName)voiddestroySubcontext()Binding[]getBindings()private static StringgetClassName(Object obj)private CompositeNamegetCompositeName(String path)CompositeNamegetContextName()Enumeration<Record>getEnumRecord()NamingContextIdgetId()NameClassPair[]getNameClassPairs()String[]getNamingContext()ObjectgetOwnerId()PropertiesgetProperties(String name)RecordgetRecord(String name)StringgetStrOwnerId()Stringlookup(String name)booleanremoveRecord(String name)private voidsendTo(JndiRequest request)voidsetOwnerId(Object ownerId)voidsetStrOwnerId(String strOwnerId)intsize()StringtoString()voidunbind(String name)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
id
private NamingContextId id
-
ownerId
private Object ownerId
-
contextName
private CompositeName contextName
-
-
Constructor Detail
-
NamingContext
public NamingContext(NamingContextId id, Object ownerId, CompositeName contextName)
-
-
Method Detail
-
getId
public final NamingContextId getId()
-
getOwnerId
public final Object getOwnerId()
-
setOwnerId
public void setOwnerId(Object ownerId)
-
getEnumRecord
public Enumeration<Record> getEnumRecord()
-
addRecord
public void addRecord(Record record)
-
removeRecord
public boolean removeRecord(String name)
-
size
public int size()
-
getNameClassPairs
public NameClassPair[] getNameClassPairs()
-
getBindings
public Binding[] getBindings()
-
getContextName
public CompositeName getContextName()
-
getNamingContext
public String[] getNamingContext()
- Specified by:
getNamingContextin interfaceNamingContextMBean
-
getStrOwnerId
public String getStrOwnerId()
- Specified by:
getStrOwnerIdin interfaceNamingContextMBean
-
setStrOwnerId
public void setStrOwnerId(String strOwnerId)
- Specified by:
setStrOwnerIdin interfaceNamingContextMBean
-
createSubcontext
public void createSubcontext(String ctxName) throws NamingException
- Specified by:
createSubcontextin interfaceNamingContextMBean- Throws:
NamingException
-
destroySubcontext
public void destroySubcontext() throws NamingException- Specified by:
destroySubcontextin interfaceNamingContextMBean- Throws:
NamingException
-
lookup
public String lookup(String name) throws NamingException
- Specified by:
lookupin interfaceNamingContextMBean- Throws:
NamingException
-
unbind
public void unbind(String name) throws NamingException
- Specified by:
unbindin interfaceNamingContextMBean- Throws:
NamingException
-
getProperties
public Properties getProperties(String name) throws NamingException
- Specified by:
getPropertiesin interfaceNamingContextMBean- Throws:
NamingException
-
getCompositeName
private CompositeName getCompositeName(String path) throws InvalidNameException
- Throws:
InvalidNameException
-
sendTo
private void sendTo(JndiRequest request)
-
-