public abstract class AbstractMessage extends Object implements Message
Modifier | Constructor and Description |
---|---|
protected |
AbstractMessage()
Completes the instanciation of a Message.
|
Modifier and Type | Method and Description |
---|---|
Message |
add(org.apache.directory.shared.ldap.message.control.Control... controls)
Adds controls to this Message.
|
org.apache.directory.shared.ldap.message.control.Control |
getControl(String oid)
Gets the control with a specific OID.
|
Map<String,org.apache.directory.shared.ldap.message.control.Control> |
getControls()
Gets the controls associated with this message mapped by OID.
|
int |
getMessageId()
Gets the session unique message sequence id for this message.
|
boolean |
hasControl(String oid)
Checks whether or not this message has the specified control.
|
Message |
remove(org.apache.directory.shared.ldap.message.control.Control... controls)
Deletes controls, removing them from this Message.
|
void |
setMessageId(int messageId)
Set the request message ID
|
String |
toString()
Get a String representation of a LdapMessage
|
protected AbstractMessage()
messageId
- the seq id of the messagepublic int getMessageId()
getMessageId
in interface Message
public void setMessageId(int messageId)
setMessageId
in interface Message
messageId
- public Message add(org.apache.directory.shared.ldap.message.control.Control... controls)
public Map<String,org.apache.directory.shared.ldap.message.control.Control> getControls()
getControls
in interface Message
Control
public org.apache.directory.shared.ldap.message.control.Control getControl(String oid)
getControl
in interface Message
Control
public boolean hasControl(String oid)
hasControl
in interface Message
oid
- the OID of the controlpublic Message remove(org.apache.directory.shared.ldap.message.control.Control... controls) throws LdapException
remove
in interface Message
LdapException
- if controls cannot be added to this Message
or the control is not known etc.Copyright © 2009–2015 The Apache Software Foundation. All rights reserved.