Class CompareResponseDsml
- java.lang.Object
-
- org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
-
- org.apache.directory.api.dsmlv2.response.AbstractResponseDsml<E>
-
- org.apache.directory.api.dsmlv2.response.AbstractResultResponseDsml<CompareResponse>
-
- org.apache.directory.api.dsmlv2.response.CompareResponseDsml
-
- All Implemented Interfaces:
DsmlDecorator<CompareResponse>
,CompareResponse
,Message
,Response
,ResultResponse
public class CompareResponseDsml extends AbstractResultResponseDsml<CompareResponse> implements CompareResponse
DSML Decorator for CompareResponse- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description CompareResponseDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of CompareResponseDsml.CompareResponseDsml(LdapApiService codec, CompareResponse ldapMessage)
Creates a new getDecoratedMessage() of CompareResponseDsml.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageTypeEnum
getType()
Gets the LDAP message type code associated with this Message.boolean
isTrue()
org.dom4j.Element
toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format-
Methods inherited from class org.apache.directory.api.dsmlv2.response.AbstractResultResponseDsml
getLdapResult
-
Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator
addAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put, removeControl, setMessageId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
CompareResponseDsml
public CompareResponseDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of CompareResponseDsml.- Parameters:
codec
- The LDAP Service to use
-
CompareResponseDsml
public CompareResponseDsml(LdapApiService codec, CompareResponse ldapMessage)
Creates a new getDecoratedMessage() of CompareResponseDsml.- Parameters:
codec
- The LDAP Service to useldapMessage
- the message to decorate
-
-
Method Detail
-
getType
public MessageTypeEnum getType()
Gets the LDAP message type code associated with this Message. Each request and response type has a unique message type code defined by the protocol in RFC 2251.- Specified by:
getType
in interfaceMessage
- Overrides:
getType
in classAbstractDsmlMessageDecorator<CompareResponse>
- Returns:
- the message type code.
-
toDsml
public org.dom4j.Element toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format- Specified by:
toDsml
in interfaceDsmlDecorator<CompareResponse>
- Parameters:
root
- the root dom4j Element- Returns:
- the dom4j Element corresponding to the entry.
-
isTrue
public boolean isTrue()
- Specified by:
isTrue
in interfaceCompareResponse
- Returns:
- true if the compare response is TRUE, false otherwise
-
-