Class AbandonRequestDsml
- java.lang.Object
-
- org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
-
- org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<AbandonRequest>
-
- org.apache.directory.api.dsmlv2.request.AbandonRequestDsml
-
- All Implemented Interfaces:
DsmlDecorator<AbandonRequest>,AbandonRequest,Message,Request
public class AbandonRequestDsml extends AbstractRequestDsml<AbandonRequest> implements AbandonRequest
DSML Decorator for AbandonRequest- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AbandonRequestDsml(LdapApiService codec)Creates a new instance of AbandonRequestDsml.AbandonRequestDsml(LdapApiService codec, AbandonRequest ldapMessage)Creates a new instance of AbandonRequestDsml.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbandonRequestaddAllControls(Control[] controls)Adds an array of controls to this Message.AbandonRequestaddControl(Control control)Adds a control to this Message.intgetAbandoned()Gets the id of the request operation to terminate.intgetAbandonedMessageId()Get the abandoned message IDMessageTypeEnumgetType()Gets the LDAP message type code associated with this Message.AbandonRequestremoveControl(Control control)Deletes a control removing it from this Message.AbandonRequestsetAbandoned(int requestId)Sets the id of the request operation to terminate.AbandonRequestsetAbandonedMessageId(int abandonedMessageId)Set the abandoned message IDAbandonRequestsetMessageId(int messageId)Sets the Message ID for this requestElementtoDsml(Element root)Creates the Request Element and adds RequestID and Controls.-
Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml
computeLength, encode, getRequestName, hasResponse
-
Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put
-
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
get, getControl, getControls, getMessageId, hasControl, put
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
-
-
-
Constructor Detail
-
AbandonRequestDsml
public AbandonRequestDsml(LdapApiService codec)
Creates a new instance of AbandonRequestDsml.- Parameters:
codec- The LDAP Service to use
-
AbandonRequestDsml
public AbandonRequestDsml(LdapApiService codec, AbandonRequest ldapMessage)
Creates a new instance of AbandonRequestDsml.- 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<AbandonRequest>- Returns:
- the message type code.
-
toDsml
public Element toDsml(Element root)
Creates the Request Element and adds RequestID and Controls.- Specified by:
toDsmlin interfaceDsmlDecorator<AbandonRequest>- Overrides:
toDsmlin classAbstractRequestDsml<AbandonRequest>- Parameters:
root- the root element- Returns:
- the Request Element of the given name containing
-
getAbandonedMessageId
public int getAbandonedMessageId()
Get the abandoned message ID- Returns:
- Returns the abandoned MessageId.
-
setAbandonedMessageId
public AbandonRequest setAbandonedMessageId(int abandonedMessageId)
Set the abandoned message ID- Parameters:
abandonedMessageId- The abandoned messageID to set.- Returns:
- The modified AbandonRequest instance
-
getAbandoned
public int getAbandoned()
Gets the id of the request operation to terminate.- Specified by:
getAbandonedin interfaceAbandonRequest- Returns:
- the id of the request message to abandon
-
setAbandoned
public AbandonRequest setAbandoned(int requestId)
Sets the id of the request operation to terminate.- Specified by:
setAbandonedin interfaceAbandonRequest- Parameters:
requestId- the sequence id of the request message to abandon- Returns:
- The AbandonRequest instance
-
setMessageId
public AbandonRequest setMessageId(int messageId)
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractDsmlMessageDecorator<AbandonRequest>- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
public AbandonRequest addControl(Control control)
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractDsmlMessageDecorator<AbandonRequest>- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
public AbandonRequest addAllControls(Control[] controls)
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Overrides:
addAllControlsin classAbstractDsmlMessageDecorator<AbandonRequest>- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
public AbandonRequest removeControl(Control control)
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Overrides:
removeControlin classAbstractDsmlMessageDecorator<AbandonRequest>- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
-