public interface InternalMessage
Modifier and Type | Method and Description |
---|---|
void |
add(Control control)
Adds a control to this Message.
|
void |
addAll(Control[] controls)
Adds an array of controls to this Message.
|
Object |
get(Object key)
Gets a message scope parameter.
|
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.
|
void |
remove(Control control)
Deletes a control removing it from this Message.
|
MessageTypeEnum getType()
Map<String,Control> getControls()
CodecControl
boolean hasControl(String oid)
oid
- the OID of the controlvoid add(Control control) throws MessageException
control
- the control to add.MessageException
- if controls cannot be added to this Message or the control is
not known etc.void addAll(Control[] controls) throws MessageException
controls
- the controls to add.MessageException
- if controls cannot be added to this Message or they are not known etc.void remove(Control control) throws MessageException
control
- the control to remove.MessageException
- if controls cannot be added to this Message or the control is
not known etc.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 valueCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.