|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.message.InternalAbstractMessage
public abstract class InternalAbstractMessage
Abstract message base class.
| Constructor Summary | |
|---|---|
protected |
InternalAbstractMessage(int id,
MessageTypeEnum type)
Completes the instantiation of a Message. |
| Method Summary | |
|---|---|
void |
add(javax.naming.ldap.Control control)
Adds a control to this Message. |
void |
addAll(javax.naming.ldap.Control[] controls)
Adds an array of controls to this Message. |
boolean |
equals(java.lang.Object obj)
Checks to see if two messages are equivalent. |
java.lang.Object |
get(java.lang.Object key)
Gets a message scope parameter. |
java.util.Map<java.lang.String,javax.naming.ldap.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(java.lang.String oid)
Checks whether or not this message has the specified control. |
int |
hashCode()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Sets a message scope parameter. |
void |
remove(javax.naming.ldap.Control control)
Deletes a control removing it from this Message. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InternalAbstractMessage(int id,
MessageTypeEnum type)
id - the seq id of the messagetype - the type of the message| Method Detail |
|---|
public int getMessageId()
getMessageId in interface InternalMessagepublic java.util.Map<java.lang.String,javax.naming.ldap.Control> getControls()
getControls in interface InternalMessageInternalControlpublic boolean hasControl(java.lang.String oid)
InternalMessage
hasControl in interface InternalMessageoid - the OID of the control
InternalMessage.hasControl(java.lang.String)
public void add(javax.naming.ldap.Control control)
throws MessageException
add in interface InternalMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public void remove(javax.naming.ldap.Control control)
throws MessageException
remove in interface InternalMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getType()
getType in interface InternalMessagepublic java.lang.Object get(java.lang.Object key)
get in interface InternalMessagekey - the key used to access a message parameter.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface InternalMessagekey - the parameter keyvalue - the parameter value
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this Message to for equalitypublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
public void addAll(javax.naming.ldap.Control[] controls)
throws MessageException
InternalMessage
addAll in interface InternalMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||