All LDAP Classes
Internal LDAP Classes

com.novell.ldap
Class LDAPIntermediateResponse

java.lang.Object
  extended by com.novell.ldap.LDAPMessage
      extended by com.novell.ldap.LDAPResponse
          extended by com.novell.ldap.LDAPIntermediateResponse
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

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
private static RespExtensionSet registeredResponses
           
 
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(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 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, getActiveReferral, getControls, getErrorMessage, getException, getMatchedDN, getMessageID, getReferrals, getResultCode, getResultException, getType, hasException, setDeserializedValues
 
Methods inherited from class com.novell.ldap.LDAPMessage
clone, getASN1Object, getRequestingMessage, 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
 

Field Detail

registeredResponses

private static RespExtensionSet registeredResponses
Constructor Detail

LDAPIntermediateResponse

public LDAPIntermediateResponse(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 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.

All LDAP Classes
Internal LDAP Classes

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