|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.ldap.LDAPMessage
com.novell.ldap.LDAPResponse
A message received from an LDAPServer in response to an asynchronous request.
Sample Code: Searchas.java
LDAPConnection.search(java.lang.String, int, java.lang.String, java.lang.String[], boolean),
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 | |
LDAPResponse()
This constructor was added to support default Serialization |
|
LDAPResponse(int type)
Creates a SUCCESS response LDAPMessage. |
|
LDAPResponse(com.novell.ldap.InterThreadException ex,
com.novell.ldap.client.ReferralInfo activeReferral)
Creates an LDAPResponse using an LDAPException. |
|
LDAPResponse(int type,
int resultCode,
java.lang.String matchedDN,
java.lang.String serverMessage,
java.lang.String[] referrals,
LDAPControl[] controls)
Creates a response LDAPMessage from parameters. |
|
| Method Summary | |
void |
chkResultCode()
Checks the resultCode and throws the appropriate exception. |
LDAPControl[] |
getControls()
Returns any controls in the message. |
java.lang.String |
getErrorMessage()
Returns any error message in the response. |
java.lang.String |
getMatchedDN()
Returns the partially matched DN field from the server response, if the response contains one. |
int |
getMessageID()
Returns the message ID. |
java.lang.String[] |
getReferrals()
Returns all referrals in a server response, if the response contains any. |
int |
getResultCode()
Returns the result code in a server response. |
int |
getType()
Returns the LDAP operation type of the message. |
protected void |
setDeserializedValues(LDAPMessage readObject,
com.novell.ldap.rfc2251.RfcControls asn1Ctrls)
|
| 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 LDAPResponse()
public LDAPResponse(com.novell.ldap.InterThreadException ex,
com.novell.ldap.client.ReferralInfo activeReferral)
ex - The exception
activeReferral - The referral actually used to create the
connectionpublic LDAPResponse(int type)
type - The message type as defined in LDAPMessage.LDAPMessage
public LDAPResponse(int type,
int resultCode,
java.lang.String matchedDN,
java.lang.String serverMessage,
java.lang.String[] referrals,
LDAPControl[] controls)
type - The message type as defined in LDAPMessage.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.LDAPMessage,
LDAPException| Method Detail |
public java.lang.String getErrorMessage()
public java.lang.String getMatchedDN()
public java.lang.String[] getReferrals()
public int getResultCode()
For a list of result codes, see the LDAPException class.
public void chkResultCode()
throws LDAPException
LDAPException - A general exception which includes an error
message and an LDAP error code.public LDAPControl[] getControls()
getControls in class LDAPMessageLDAPMessage.getControls()public int getMessageID()
getMessageID in class LDAPMessageLDAPMessage.getMessageID()public int getType()
getType in class LDAPMessageLDAPMessage.getType()
protected void setDeserializedValues(LDAPMessage readObject,
com.novell.ldap.rfc2251.RfcControls asn1Ctrls)
throws java.io.IOException,
java.lang.ClassNotFoundException
setDeserializedValues in class LDAPMessagejava.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 | |||||||||