public class AbandonRequestImpl extends AbstractRequest implements AbandonRequest
controls
TYPE
Constructor and Description |
---|
AbandonRequestImpl()
Creates an AbandonRequest implementation for an outstanding request.
|
AbandonRequestImpl(int abdandonnedId)
Creates an AbandonRequest implementation for an outstanding request.
|
Modifier and Type | Method and Description |
---|---|
void |
abandon()
RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations
cannot be abandoned.
|
AbandonRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
AbandonRequest |
addControl(Control control)
Adds a control to this Message.
|
boolean |
equals(Object obj)
Checks for equality first by asking the super method which should compare
all but the Abandoned request's Id.
|
int |
getAbandoned()
Gets the id of the request operation to terminate.
|
int |
hashCode() |
AbandonRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
AbandonRequest |
setAbandoned(int abandonId)
Sets the id of the request operation to terminate.
|
AbandonRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
String |
toString()
Return a String representing an AbandonRequest
|
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public AbandonRequestImpl()
public AbandonRequestImpl(int abdandonnedId)
abdandonnedId
- the sequence identifier of the AbandonRequest message.public int getAbandoned()
getAbandoned
in interface AbandonRequest
public AbandonRequest setAbandoned(int abandonId)
setAbandoned
in interface AbandonRequest
abandonId
- the sequence id of the request message to abandonpublic void abandon()
public AbandonRequest setMessageId(int messageId)
setMessageId
in interface AbandonRequest
setMessageId
in interface Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic AbandonRequest addControl(Control control) throws MessageException
addControl
in interface AbandonRequest
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.MessageException
- if controls cannot be added to this Message or the control is
not known etc.public AbandonRequest addAllControls(Control[] controls) throws MessageException
addAllControls
in interface AbandonRequest
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.MessageException
- if controls cannot be added to this Message or they are not known etc.public AbandonRequest removeControl(Control control) throws MessageException
removeControl
in interface AbandonRequest
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.MessageException
- if controls cannot be added to this Message or the control is
not known etc.public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the object to test for equality to this AbandonRequestpublic int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.