|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.ldap.client.api.message.AbstractMessage
public abstract class AbstractMessage
Abstract message base class.
Constructor Summary | |
---|---|
protected |
AbstractMessage()
Completes the instanciation of a Message. |
Method Summary | |
---|---|
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(java.lang.String oid)
Gets the control with a specific OID. |
java.util.Map<java.lang.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(java.lang.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 |
java.lang.String |
toString()
Get a String representation of a LdapMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractMessage()
messageId
- the seq id of the messageMethod Detail |
---|
public 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)
add
in interface Message
controls
- the controls to add.public java.util.Map<java.lang.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(java.lang.String oid)
getControl
in interface Message
Control
public boolean hasControl(java.lang.String oid)
hasControl
in interface Message
oid
- the OID of the control
public 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.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |