Class ExtendedResponseDsml
- 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<ExtendedResponse>
-
- org.apache.directory.api.dsmlv2.response.ExtendedResponseDsml
-
- All Implemented Interfaces:
DsmlDecorator<ExtendedResponse>,ExtendedResponse,Message,Response,ResultResponse
public class ExtendedResponseDsml extends AbstractResultResponseDsml<ExtendedResponse> implements ExtendedResponse
DSML Decorator for ExtendedResponse- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description ExtendedResponseDsml(LdapApiService codec)Creates a new getDecoratedMessage() of ExtendedResponseDsml.ExtendedResponseDsml(LdapApiService codec, ExtendedResponse ldapMessage)Creates a new getDecoratedMessage() of ExtendedResponseDsml.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResponseName()Get the extended response namebyte[]getResponseValue()Get the extended responseMessageTypeEnumgetType()Gets the LDAP message type code associated with this Message.voidsetResponseName(String oid)Sets the OID uniquely identifying this extended response (a.k.a.voidsetResponseName(Oid responseName)Set the extended response namevoidsetResponseValue(byte[] responseValue)Set the extended responseElementtoDsml(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
clone, equals, finalize, 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
-
ExtendedResponseDsml
public ExtendedResponseDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of ExtendedResponseDsml.- Parameters:
codec- The LDAP Service to use
-
ExtendedResponseDsml
public ExtendedResponseDsml(LdapApiService codec, ExtendedResponse ldapMessage)
Creates a new getDecoratedMessage() of ExtendedResponseDsml.- 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:
getTypein interfaceMessage- Overrides:
getTypein classAbstractDsmlMessageDecorator<ExtendedResponse>- Returns:
- the message type code.
-
toDsml
public Element toDsml(Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format- Specified by:
toDsmlin interfaceDsmlDecorator<ExtendedResponse>- Parameters:
root- the root dom4j Element- Returns:
- the dom4j Element corresponding to the entry.
-
setResponseName
public void setResponseName(String oid)
Sets the OID uniquely identifying this extended response (a.k.a. its name).- Specified by:
setResponseNamein interfaceExtendedResponse- Parameters:
oid- the OID of the extended response type.
-
getResponseName
public String getResponseName()
Get the extended response name- Specified by:
getResponseNamein interfaceExtendedResponse- Returns:
- Returns the name.
-
setResponseName
public void setResponseName(Oid responseName)
Set the extended response name- Parameters:
responseName- The name to set.
-
getResponseValue
public byte[] getResponseValue()
Get the extended response- Returns:
- Returns the response.
-
setResponseValue
public void setResponseValue(byte[] responseValue)
Set the extended response- Parameters:
responseValue- The response to set.
-
-