|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.LDAPMessage com.novell.ldap.LDAPResponse com.novell.ldap.LDAPExtendedResponse
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.
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 | |
LDAPExtendedResponse()
This constructor was added to support default Serialization |
|
LDAPExtendedResponse(int resultCode,
java.lang.String matchedDN,
java.lang.String serverMessage,
java.lang.String[] referrals,
LDAPControl[] controls,
java.lang.String extendedid,
byte[] extendedvalue)
Creates the Extended Response Object passing the individual parameters. |
|
LDAPExtendedResponse(com.novell.ldap.rfc2251.RfcLDAPMessage message)
Creates an LDAPExtendedResponse 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. |
protected void |
setDeserializedValues(LDAPMessage readObject,
com.novell.ldap.rfc2251.RfcControls asn1Ctrls)
|
Methods inherited from class com.novell.ldap.LDAPResponse |
chkResultCode, getControls, getErrorMessage, getMatchedDN, getMessageID, getReferrals, getResultCode, getType |
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 |
public LDAPExtendedResponse()
public LDAPExtendedResponse(int resultCode, java.lang.String matchedDN, java.lang.String serverMessage, java.lang.String[] referrals, LDAPControl[] controls, java.lang.String extendedid, byte[] extendedvalue) throws java.net.MalformedURLException
resultCode
- The result code as defined in LDAPException.matchedDN
- The name of the lowest entry that was matched
for some error result codes, an empty string
or null
if none.serverMessage
- A diagnostic message returned by the server,
an empty string or null
if none.referrals
- The referral URLs returned for a REFERRAL result
code or null
if none.controls
- Any controls returned by the server or
null
if none.extendedid
- The LDAPOID for this extended operation.extendedvalue
- The Value (Data) for this extended operation.
java.net.MalformedURLException
- When the referral URL are malformed.public LDAPExtendedResponse(com.novell.ldap.rfc2251.RfcLDAPMessage message)
message
- The RfcLDAPMessage to convert to an
LDAPExtendedResponse object.Method Detail |
public java.lang.String getID()
public byte[] getValue()
public static void register(java.lang.String oid, java.lang.Class extendedResponseClass)
Any previous registration for the OID is overridden. The extendedResponseClass object MUST be an extension of LDAPExtendedResponse.
oid
- The object identifier of the control.
extendedResponseClass
- A class which can instantiate an
LDAPExtendedResponse.public static com.novell.ldap.client.RespExtensionSet getRegisteredResponses()
protected void setDeserializedValues(LDAPMessage readObject, com.novell.ldap.rfc2251.RfcControls asn1Ctrls) throws java.io.IOException, java.lang.ClassNotFoundException
setDeserializedValues
in class LDAPResponse
java.io.IOException
java.lang.ClassNotFoundException
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |