public class NamingContext extends Object implements NamingContextMBean, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
private CompositeName |
contextName |
private NamingContextId |
id |
private Object |
ownerId |
private Vector |
records |
private static long |
serialVersionUID |
Constructor and Description |
---|
NamingContext(NamingContextId id,
Object ownerId,
CompositeName contextName) |
Modifier and Type | Method and Description |
---|---|
void |
addRecord(Record record) |
Object |
clone() |
void |
createSubcontext(String ctxName) |
void |
destroySubcontext() |
Binding[] |
getBindings() |
private static String |
getClassName(Object obj) |
private CompositeName |
getCompositeName(String path) |
CompositeName |
getContextName() |
Enumeration |
getEnumRecord() |
NamingContextId |
getId() |
NameClassPair[] |
getNameClassPairs() |
String[] |
getNamingContext() |
Object |
getOwnerId() |
Properties |
getProperties(String name) |
Record |
getRecord(String name) |
String |
getStrOwnerId() |
String |
lookup(String name) |
boolean |
removeRecord(String name) |
private void |
sendTo(JndiRequest request) |
void |
setOwnerId(Object ownerId) |
void |
setStrOwnerId(String strOwnerId) |
int |
size() |
String |
toString() |
void |
unbind(String name) |
private static final long serialVersionUID
private NamingContextId id
private Object ownerId
private Vector records
private CompositeName contextName
public NamingContext(NamingContextId id, Object ownerId, CompositeName contextName)
public final NamingContextId getId()
public final Object getOwnerId()
public void setOwnerId(Object ownerId)
public Enumeration getEnumRecord()
public void addRecord(Record record)
public boolean removeRecord(String name)
public int size()
public NameClassPair[] getNameClassPairs()
public Binding[] getBindings()
public CompositeName getContextName()
public String[] getNamingContext()
getNamingContext
in interface NamingContextMBean
public String getStrOwnerId()
getStrOwnerId
in interface NamingContextMBean
public void setStrOwnerId(String strOwnerId)
setStrOwnerId
in interface NamingContextMBean
public void createSubcontext(String ctxName) throws NamingException
createSubcontext
in interface NamingContextMBean
NamingException
public void destroySubcontext() throws NamingException
destroySubcontext
in interface NamingContextMBean
NamingException
public String lookup(String name) throws NamingException
lookup
in interface NamingContextMBean
NamingException
public void unbind(String name) throws NamingException
unbind
in interface NamingContextMBean
NamingException
public Properties getProperties(String name) throws NamingException
getProperties
in interface NamingContextMBean
NamingException
private CompositeName getCompositeName(String path) throws InvalidNameException
InvalidNameException
private void sendTo(JndiRequest request)
Copyright © 2021 ScalAgent D.T.. All rights reserved.