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, value
CRITICAL, NONCRITICAL
コンストラクタ | 説明 |
---|---|
SortResponseControl(String id, boolean criticality, byte[] value) |
ソート要求の結果を示すためのコントロールを構築します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
String |
getAttributeID() |
ソート失敗の原因となった属性のIDを取得します。
|
NamingException |
getException() |
結果コードに適したNamingExceptionを取得します。
|
int |
getResultCode() |
ソート操作のLDAP結果コードを取得します。
|
boolean |
isSorted() |
検索結果が正常にソートされているかどうかを判定します。
|
getEncodedValue, getID, isCritical
public 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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。