public interface EventDirContext extends EventContext, DirContext
通过RFC 2254搜索过滤器在这个界面支持识别物体的方法。
使用搜索过滤器,它是可能的注册在不存在的对象,在注册时的兴趣,但后来进入存在,并满足过滤器。然而,可能有一定的限制,在程度上,这可以支持的服务提供商和相关协议/服务。如果来电者提交一个过滤器,不能以这种方式支持,addNamingListener()抛出一个InvalidSearchFilterException。
看到一个描述事件的源和目标EventContext,和监听器注册/注销,也适用于该接口方法的信息。看到在线程问题的信息package description。
一个SearchControls或数组对象作为参数传递给方法的调用者拥有任何。服务提供程序不会修改对象或保存对象的引用。
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
Modifier and Type | Method and Description |
---|---|
void |
addNamingListener(Name target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l)
添加一个监听器接收命名时触发的事件的搜索过滤器和过滤器的参数
filter在对象的目标识别的对象被修改为。
|
void |
addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l)
添加一个监听器接收命名时触发的事件对象识别的搜索过滤器
filter在对象命名为目标的修改。
|
void |
addNamingListener(String target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l)
添加一个监听器接收命名时触发的事件的搜索过滤器和过滤器的参数
filter在对象的字符串对象命名确定对象的修改。
|
void |
addNamingListener(String target, String filter, SearchControls ctls, NamingListener l)
添加一个监听器接收命名时触发的事件对象识别的搜索过滤器
filter在对象的字符串对象命名的修改。
|
addNamingListener, addNamingListener, removeNamingListener, targetMustExist
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, search
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
void addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l) throws NamingException
的范围,returningobj国旗,国旗和returningattributes从搜索控件ctls用来控制对象的选择,听众很感兴趣,并决定哪些信息是在最终NamingEvent对象返回。请注意,所要求的信息将可能不在NamingEvent对象目前是否可用或不可由服务提供者或服务获得。
target
-对象的非空名解决相对这个语境。
filter
-非空字符串过滤(见rfc2254)。
ctls
-可能的空搜索控制。如果为空,则使用默认的搜索控件。
l
-非空的听众。
NamingException
如果同时添加侦听器中遇到的一个问题。
EventContext.removeNamingListener(javax.naming.event.NamingListener)
,
DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls)
void addNamingListener(String target, String filter, SearchControls ctls, NamingListener l) throws NamingException
target
-对象的非空字符串名称解决相对这个语境。
filter
-非空字符串过滤(见rfc2254)。
ctls
-可能的空搜索控制。如果为空,则使用默认的搜索控件。
l
-非空的听众。
NamingException
如果同时添加侦听器中遇到的一个问题。
EventContext.removeNamingListener(javax.naming.event.NamingListener)
,
DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls)
void addNamingListener(Name target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) throws NamingException
target
-对象的非空名解决相对这个语境。
filter
-非空字符串过滤(见rfc2254)。
filterArgs
为滤波器的参数可能的空数组。
ctls
-可能的空搜索控制。如果为空,则使用默认的搜索控件。
l
-非空的听众。
NamingException
如果同时添加侦听器中遇到的一个问题。
EventContext.removeNamingListener(javax.naming.event.NamingListener)
,
DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)
void addNamingListener(String target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) throws NamingException
target
-对象的非空字符串名称解决相对这个语境。
filter
-非空字符串过滤(见rfc2254)。
filterArgs
为滤波器的参数可能的空数组。
ctls
-可能的空搜索控制。如果为空,则使用默认的搜索控件。
l
-非空的听众。
NamingException
如果同时添加侦听器中遇到的一个问题。
EventContext.removeNamingListener(javax.naming.event.NamingListener)
,
DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.