|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.naming.ldap.BasicControl
javax.naming.ldap.SortResponseControl
public final class SortResponseControl
指示搜尋結果的請求排序是否成功。當結果程式碼指示成功時,結果已按照請求進行了排序。否則,排序失敗,同時伺服器可能提供關於錯誤原因的附加詳細資訊。
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。 |
| 從類別 javax.naming.ldap.BasicControl 繼承的欄位 |
|---|
criticality, id, value |
| 從介面 javax.naming.ldap.Control 繼承的欄位 |
|---|
CRITICAL, NONCRITICAL |
| 建構子摘要 | |
|---|---|
SortResponseControl(String id,
boolean criticality,
byte[] value)
建構一個控制元件來指示排序請求的結果。 |
|
| 方法摘要 | |
|---|---|
String |
getAttributeID()
檢索導致排序失敗的屬性的 ID。 |
NamingException |
getException()
檢索適合結果程式碼的 NamingException。 |
int |
getResultCode()
檢索排序操作的 LDAP 結果程式碼。 |
boolean |
isSorted()
確定是否已成功排序搜尋結果。 |
| 從類別 javax.naming.ldap.BasicControl 繼承的方法 |
|---|
getEncodedValue, getID, isCritical |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public static final String OID
| 建構子詳細資訊 |
|---|
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()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。