LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPIntermediateResponse

java.lang.Object
  extended bycom.novell.ldap.LDAPMessage
      extended bycom.novell.ldap.LDAPResponse
          extended bycom.novell.ldap.LDAPIntermediateResponse
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
EdirEventIntermediateResponse

public class LDAPIntermediateResponse
extends LDAPResponse

Encapsulates the response returned by an LDAP server on an asynchronous extended operation request. It extends LDAPResponse. The response can contain the OID of the extension, an octet string with the operation's data, both, or neither.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.novell.ldap.LDAPMessage
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, INTERMEDIATE_RESPONSE, message, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST
 
Constructor Summary
LDAPIntermediateResponse(com.novell.ldap.rfc2251.RfcLDAPMessage message)
          Creates an LDAPIntermediateResponse object which encapsulates a server response to an asynchronous extended operation request.
 
Method Summary
 java.lang.String getID()
          Returns the message identifier of the response.
static com.novell.ldap.client.RespExtensionSet getRegisteredResponses()
           
 byte[] getValue()
          Returns the value part of the response in raw bytes.
static void register(java.lang.String oid, java.lang.Class extendedResponseClass)
          Registers a class to be instantiated on receipt of a extendedresponse with the given OID.
 
Methods inherited from class com.novell.ldap.LDAPResponse
chkResultCode, getControls, getErrorMessage, getMatchedDN, getMessageID, getReferrals, getResultCode, getType, setDeserializedValues
 
Methods inherited from class com.novell.ldap.LDAPMessage
getTag, isRequest, readDSML, readExternal, setTag, toString, writeDSML, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPIntermediateResponse

public LDAPIntermediateResponse(com.novell.ldap.rfc2251.RfcLDAPMessage message)
Creates an LDAPIntermediateResponse object which encapsulates a server response to an asynchronous extended operation request.

Parameters:
message - The RfcLDAPMessage to convert to an LDAPIntermediateResponse object.
Method Detail

register

public static void register(java.lang.String oid,
                            java.lang.Class extendedResponseClass)
Registers a class to be instantiated on receipt of a extendedresponse with the given OID.

Any previous registration for the OID is overridden. The extendedResponseClass object MUST be an extension of LDAPIntermediateResponse.

Parameters:
oid - The object identifier of the control.

extendedResponseClass - A class which can instantiate an LDAPIntermediateResponse.

getRegisteredResponses

public static com.novell.ldap.client.RespExtensionSet getRegisteredResponses()

getID

public java.lang.String getID()
Returns the message identifier of the response.

Returns:
OID of the response.

getValue

public byte[] getValue()
Returns the value part of the response in raw bytes.

Returns:
The value of the response.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000