public interface Message
Modifier and Type | Method and Description |
---|---|
Message |
addAllControls(Control[] controlsToAdd)
Adds an array of controls to this Message.
|
Message |
addControl(Control control)
Adds a control to this Message.
|
Object |
get(Object key)
Gets a message scope parameter.
|
Control |
getControl(String oid)
Gets the control associated with the given OID.
|
Map<String,Control> |
getControls()
Gets the controls associated with this message mapped by OID.
|
int |
getMessageId()
Gets the session unique message sequence id for this message.
|
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message.
|
boolean |
hasControl(String oid)
Checks whether or not this message has the specified control.
|
Object |
put(Object key,
Object value)
Sets a message scope parameter.
|
Message |
removeControl(Control control)
Deletes a control removing it from this Message.
|
Message |
setMessageId(int messageId)
Sets the Message ID for this request
|
MessageTypeEnum getType()
Map<String,Control> getControls()
Control getControl(String oid)
oid
- The Cntrol's OID we are looking forboolean hasControl(String oid)
oid
- the OID of the controlMessage addControl(Control control)
control
- the control to add.Message addAllControls(Control[] controlsToAdd)
controlsToAdd
- the controls to add.Message removeControl(Control control)
control
- the control to remove.int getMessageId()
Object get(Object key)
key
- the key used to access a message parameter.Object put(Object key, Object value)
key
- the parameter keyvalue
- the parameter valueMessage setMessageId(int messageId)
messageId
- The message IdCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.