public abstract class LdapReferralException extends ReferralException
一个Control[]数组作为参数传递给方法的调用者拥有getReferralContext()。服务提供商不会修改数组或保持一个参考吧,尽管它可能保持引用数组中的单个Control对象。
remainingName, resolvedName, resolvedObj, rootException
Modifier | Constructor and Description |
---|---|
protected |
LdapReferralException()
构建一个新的实例ldapreferralexception。
|
protected |
LdapReferralException(String explanation)
构建一个使用说明提供的ldapreferralexception新实例。
|
Modifier and Type | Method and Description |
---|---|
abstract Context |
getReferralContext()
检索使用上下文环境和无控件继续使用该方法的上下文。
|
abstract Context |
getReferralContext(Hashtable<?,?> env)
检索使用环境属性和没有控件的方法的上下文。
|
abstract Context |
getReferralContext(Hashtable<?,?> env, Control[] reqCtls)
检索使用请求控件和环境属性继续使用的方法的上下文。
|
getReferralInfo, retryReferral, skipReferral
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected LdapReferralException(String explanation)
explanation
-更多详细介绍这种例外。可以为空。
Throwable.getMessage()
protected LdapReferralException()
public abstract Context getReferralContext() throws NamingException
此方法相当于
哪里 ctx是语境,把 ReferralException.getReferralContext(ctx.getEnvironment(), null);
正是在这一类中重写文件的目的只。看到ReferralException如何使用这种方法。
getReferralContext
方法重写,继承类
ReferralException
NamingException
-如果遇到一个命名的例外。调用
retryReferral()或
skipReferral()继续处理推荐。
public abstract Context getReferralContext(Hashtable<?,?> env) throws NamingException
此方法相当于
getReferralContext(env, null);
正是在这一类中重写文件的目的只。看到ReferralException如何使用这种方法。
getReferralContext
方法重写,继承类
ReferralException
env
-可能的空环境下使用检索查询上下文时。如果为空,没有环境属性将被使用。
NamingException
-如果遇到一个命名的例外。调用
retryReferral()或
skipReferral()继续处理推荐。
public abstract Context getReferralContext(Hashtable<?,?> env, Control[] reqCtls) throws NamingException
reqCtls是当创建连接服务器使用的简称。这些控件将用于作为上下文上下文和上下文实例派生的上下文和上下文实例的连接请求控件。reqCtls也将语境的要求控制后续的上下文操作。详细内容见LdapContext类描述。
此方法应使用而不是其他两个重载形式,当调用方需要提供用于创建转介上下文的请求控件时。它可能需要这样做,例如,当它需要提供有关身份验证的特殊控件时。
服务提供商的用户应该阅读实施细则LdapContext类描述的“服务提供者”部分。
reqCtls
-可能的空请求的控件使用的新语境。如果空或空数组意味着使用没有请求控制。
env
-可能的空的环境属性时要使用的新语境。如果为空,则上下文初始化为没有环境属性。
NamingException
-如果遇到一个命名的例外。调用
retryReferral()或
skipReferral()继续处理推荐。
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.