E
- The request typepublic abstract class AbstractRequestDsml<E extends Request> extends AbstractDsmlMessageDecorator<E> implements Request
Constructor and Description |
---|
AbstractRequestDsml(LdapApiService codec,
E ldapMessage)
Creates a new instance of AbstractRequestDsml.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength() |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the request.
|
boolean |
hasResponse()
Tests to see if this Request produces one or more response types.
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
addAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, getType, hasControl, put, removeControl, setMessageId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public AbstractRequestDsml(LdapApiService codec, E ldapMessage)
codec
- The LDAP Service to useldapMessage
- the message to decoratepublic org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml
in interface DsmlDecorator<E extends Request>
root
- the root elementpublic int computeLength()
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
buffer
- The buffer to allocateEncoderException
- If we had an error while encoding the requestpublic boolean hasResponse()
hasResponse
in interface Request
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.