public final class SortResponseControl extends BasicControl
SortControl のコーディング例は、このクラスの使用方法を示しています。
このクラスは、RFC 2891 で定義されているサーバー側でのソートの LDAPv3 応答コントロールを実装します。 このコントロールの値の ASN.1 定義は次のとおりです。
SortResult ::= SEQUENCE {
sortResult ENUMERATED {
success (0), -- results are sorted
operationsError (1), -- server internal failure
timeLimitExceeded (3), -- timelimit reached before
-- sorting was completed
strongAuthRequired (8), -- refused to return sorted
-- results via insecure
-- protocol
adminLimitExceeded (11), -- too many matching entries
-- for the server to sort
noSuchAttribute (16), -- unrecognized attribute
-- type in sort key
inappropriateMatching (18), -- unrecognized or inappro-
-- priate matching rule in
-- sort key
insufficientAccessRights (50), -- refused to return sorted
-- results to this client
busy (51), -- too busy to process
unwillingToPerform (53), -- unable to sort
other (80)
},
attributeType [0] AttributeType OPTIONAL }
SortControl, 直列化された形式| 修飾子と型 | フィールドと説明 |
|---|---|
static String |
OID
サーバー側でのソートの応答コントロールに割り当てられているオブジェクト識別子は 1.2.840.113556.1.4.474 です。
|
criticality, id, valueCRITICAL, NONCRITICAL| コンストラクタと説明 |
|---|
SortResponseControl(String id, boolean criticality, byte[] value)
ソート要求の結果を示すためのコントロールを構築します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
String |
getAttributeID()
ソート失敗の原因となった属性の ID を取得します。
|
NamingException |
getException()
結果コードに適した NamingException を取得します。
|
int |
getResultCode()
ソート操作の LDAP 結果コードを取得します。
|
boolean |
isSorted()
検索結果が正常にソートされているかどうかを判定します。
|
getEncodedValue, getID, isCriticalpublic SortResponseControl(String id, boolean criticality, byte[] value) throws IOException
id - コントロールのオブジェクト識別子の文字列。criticality - コントロールのクリティカルの程度。value - コントロールの ASN.1 BER でエンコードされた値。この値は複製されないので、この値を変更するとコントロールの内容に影響する。IOException - コントロールの値をデコードするときにエラーが発生した場合。public boolean isSorted()
public int getResultCode()
public String getAttributeID()
public NamingException getException()
バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.