public final class SortResponseControl extends BasicControl
在SortControl
代码示例说明了如何使用这个类可以。
实现了服务器端排序中定义的RFC 2891 LDAPv3响应控制这类。控件的值有以下ASN. 1定义:
sortresult::=序列{sortresult列举{成功(0)--结果排序(1),operationserror --服务器内部错误(3),timelimitexceeded --期限之前达成——完成了分类strongauthrequired(8),拒绝返回排序——通过不安全的结果——协议(11),adminlimitexceeded --太多的匹配项-为服务器进行排序(16),nosuchattribute --无法识别的属性键入排序键(18),inappropriatematching --无法识别或不———私人匹配规则——排序关键字insufficientaccessrights(50),拒绝返回排序-此客户端的结果忙(51),--忙得不能处理unwillingtoperform(53),无法排序其他(80)},AttributeType [ 0 ] AttributeType可选}
SortControl
,
Serialized Form
Modifier and Type | Field and Description |
---|---|
static String |
OID
服务器端排序响应控制分配的对象标识符是1.2.840.113556.1.4.474。
|
criticality, id, value
CRITICAL, NONCRITICAL
Constructor and Description |
---|
SortResponseControl(String id, boolean criticality, byte[] value)
构造一个控件来表示一个排序请求的结果。
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeID()
检索导致该排序失败的属性的。
|
NamingException |
getException()
检索适当的结果代码的namingexception。
|
int |
getResultCode()
检索排序操作LDAP结果代码。
|
boolean |
isSorted()
确定是否已成功排序搜索结果。
|
getEncodedValue, getID, isCritical
public static final String OID
public SortResponseControl(String id, boolean criticality, byte[] value) throws IOException
id
-控制的对象标识符字符串。
criticality
-控制的重要性。
value
-控制的ASN.1 BER编码的值1。它没有被克隆-任何值的变化都会影响到控件的内容。
IOException
-如果一个错误是在解码控件的值时。
public boolean isSorted()
public int getResultCode()
public String getAttributeID()
public NamingException getException()
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.