|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.slamd.tools.ldapdecoder.protocol.ProtocolOp
com.slamd.tools.ldapdecoder.protocol.DeleteResponse
public class DeleteResponse
This class defines an LDAP delete response, which provides information about the result of processing a delete request.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DeleteResponse(int resultCode,
java.lang.String matchedDN,
java.lang.String errorMessage)
Creates a new delete response protocol op with the provided information. |
|
DeleteResponse(int resultCode,
java.lang.String matchedDN,
java.lang.String errorMessage,
java.lang.String[] referrals)
Creates a new delete response protocol op with the provided information. |
|
| Method Summary | |
|---|---|
static DeleteResponse |
decodeDeleteResponse(ASN1Element element)
Decodes the provided ASN.1 element as a delete response protocol op. |
ASN1Element |
encode()
Encodes this protocol op to an ASN.1 element. |
java.lang.String |
getErrorMessage()
Retrieves the error message for this result. |
java.lang.String |
getMatchedDN()
Retrieves the matched DN for this result. |
java.lang.String |
getProtocolOpType()
Retrieves a user-friendly name for this protocol op. |
java.lang.String[] |
getReferrals()
Retrieves the set of referrals for this result. |
int |
getResultCode()
Retrieves the result code for the operation. |
void |
toSLAMDScript(java.io.PrintStream scriptWriter)
Constructs a string representation of this LDAP message in a form that can be written to a SLAMD script. |
java.lang.String |
toString(int indent)
Retrieves a string representation of this protocol op with the specified indent. |
| Methods inherited from class com.slamd.tools.ldapdecoder.protocol.ProtocolOp |
|---|
decode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteResponse(int resultCode,
java.lang.String matchedDN,
java.lang.String errorMessage)
resultCode - The result code for this response.matchedDN - The matched DN for this response.errorMessage - The error message for this response.
public DeleteResponse(int resultCode,
java.lang.String matchedDN,
java.lang.String errorMessage,
java.lang.String[] referrals)
resultCode - The result code for this response.matchedDN - The matched DN for this response.errorMessage - The error message for this response.referrals - The set of referrals for this response.| Method Detail |
|---|
public int getResultCode()
public java.lang.String getErrorMessage()
public java.lang.String getMatchedDN()
public java.lang.String[] getReferrals()
null if
there were no referrals contained in the result.public ASN1Element encode()
encode in class ProtocolOp
public static DeleteResponse decodeDeleteResponse(ASN1Element element)
throws ProtocolException
element - The ASN.1 element to be decoded.
ProtocolException - If a problem occurs while decoding the provided
ASN.1 element as a delete response.public java.lang.String getProtocolOpType()
getProtocolOpType in class ProtocolOppublic java.lang.String toString(int indent)
toString in class ProtocolOpindent - The number of spaces to indent the output.
public void toSLAMDScript(java.io.PrintStream scriptWriter)
toSLAMDScript in class ProtocolOpscriptWriter - The print stream to which the script contents should
be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||