Methods Summary |
---|
public void | bind(Path path, java.lang.String name, AttributeSet attributes, java.rmi.Remote server)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_remoteHolder.bind(name, attributes, server);
} else {
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ firstPathComponent + " is not a valid context name.");
}
subContext.bind(path.getSubPath(), name, attributes, server);
}
|
public void | bindSubContext(Path path, java.lang.String name, Context context)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_contextHolder.bind(name, context);
return;
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
subContext.bindSubContext(path.getSubPath(), name, context);
return;
|
private void | checkNameForBindingOperation(java.lang.String name)
if ((null == name) || (name.equals(""))) {
throw new InvalidNameException("Name cannot be null");
}
|
public Context | createSubContext(Path path, java.lang.String name)
checkNameForBindingOperation(name);
Context newSubContext = new ContextImpl();
bindSubContext(path, name, newSubContext);
return newSubContext;
|
public java.rmi.Remote[] | list(Path path, java.lang.String name, AttributeSet attributes)
if ((null == path) || (path.isEmpty())) {
return _remoteHolder.list(name, attributes);
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
return subContext.list(path.getSubPath(), name, attributes);
|
public java.rmi.Remote[] | list()
return _remoteHolder.list();
|
public java.rmi.Remote[] | list(AttributeSet attributes)
return _remoteHolder.list(attributes);
|
public java.rmi.Remote[] | list(java.lang.String name, AttributeSet attributes)
return _remoteHolder.list(name, attributes);
|
public ContextList | listSubContexts()
return _contextHolder.list();
|
public ContextList | listSubContexts(Path path)
if ((null == path) || (path.isEmpty())) {
return _contextHolder.list();
}
String name = path.getFirstComponent();
Context subContext = _contextHolder.lookup(name);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
return subContext.listSubContexts(path.getSubPath());
|
public java.rmi.Remote | lookup(Path path, java.lang.String name, AttributeSet attributes)
if ((null == path) || (path.isEmpty())) {
return _remoteHolder.lookup(name, attributes);
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
return subContext.lookup(path.getSubPath(), name, attributes);
|
public Context | lookupSubContext(Path path, java.lang.String name)
if ((null == path) || (path.isEmpty())) {
return _contextHolder.lookup(name);
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
return subContext.lookupSubContext(path.getSubPath(), name);
|
public void | rebind(Path path, java.lang.String name, AttributeSet attributes, java.rmi.Remote server)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_remoteHolder.rebind(name, attributes, server);
} else {
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ firstPathComponent + " is not a valid context name.");
}
subContext.rebind(path.getSubPath(), name, attributes, server);
}
|
public void | rebindSubContext(Path path, java.lang.String name, Context context)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_contextHolder.rebind(name, context);
return;
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
subContext.rebindSubContext(path.getSubPath(), name, context);
return;
|
public void | unbind(Path path, java.lang.String name, AttributeSet attributes)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_remoteHolder.unbind(name, attributes);
} else {
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ firstPathComponent + " is not a valid context name.");
}
subContext.unbind(path.getSubPath(), name, attributes);
}
|
public void | unbindSubContext(Path path, java.lang.String name)
checkNameForBindingOperation(name);
if ((null == path) || (path.isEmpty())) {
_contextHolder.unbind(name);
return;
}
String firstPathComponent = path.getFirstComponent();
Context subContext = _contextHolder.lookup(firstPathComponent);
if (null == subContext) {
throw new InvalidPathException("The specified path in the naming hierarchy does not exist. In particular "
+ name + " is not a valid context name.");
}
subContext.unbindSubContext(path.getSubPath(), name);
return;
|