public class AbandonRequestImpl extends AbstractRequest implements AbandonRequest
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
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 Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic AbandonRequest addControl(Control control)
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.public AbandonRequest addAllControls(Control[] controls)
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.public AbandonRequest removeControl(Control control)
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.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–2018 The Apache Software Foundation. All rights reserved.