|
|||||||||
| 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.CompareRequest
public class CompareRequest
This class defines an LDAP compare request, which is used to determine whether an entry has a given attribute name and value.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CompareRequest(java.lang.String dn,
java.lang.String attributeType,
ASN1OctetString assertionValue)
Creates a new compare request with the provided information. |
|
| Method Summary | |
|---|---|
static CompareRequest |
decodeCompareRequest(ASN1Element element)
Decodes the provided ASN.1 element as a compare request protocol op. |
ASN1Element |
encode()
Encodes this protocol op to an ASN.1 element. |
ASN1OctetString |
getAssertionValue()
Retrieves the assertion value for this compare request. |
java.lang.String |
getAttributeType()
Retrieves the attribute type for this compare request. |
java.lang.String |
getDN()
Retrieves the DN of the entry for which to perform the comparison. |
java.lang.String |
getProtocolOpType()
Retrieves a user-friendly name for this protocol op. |
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 CompareRequest(java.lang.String dn,
java.lang.String attributeType,
ASN1OctetString assertionValue)
dn - The DN of the entry for which to perform the
comparison.attributeType - The attribute type for this compare request.assertionValue - The assertion value for this compare request.| Method Detail |
|---|
public java.lang.String getDN()
public java.lang.String getAttributeType()
public ASN1OctetString getAssertionValue()
public ASN1Element encode()
encode in class ProtocolOp
public static CompareRequest decodeCompareRequest(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 compare request.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 | ||||||||