public abstract class AbstractMessage extends Object implements Message
Modifier and Type | Method and Description |
---|---|
Message |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
Message |
addControl(Control control)
Adds a control to this Message.
|
boolean |
equals(Object obj)
Checks to see if two messages are equivalent.
|
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.
|
int |
hashCode() |
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 id)
Sets the Message ID for this request
|
String |
toString(String message)
Get a String representation of a LdapMessage
|
public int getMessageId()
getMessageId
in interface Message
public Message setMessageId(int id)
setMessageId
in interface Message
id
- The message Idpublic Map<String,Control> getControls()
getControls
in interface Message
public Control getControl(String oid)
getControl
in interface Message
oid
- The Cntrol's OID we are looking forpublic boolean hasControl(String oid)
hasControl
in interface Message
oid
- the OID of the controlpublic Message addControl(Control control)
addControl
in interface Message
control
- the control to add.public Message removeControl(Control control)
removeControl
in interface Message
control
- the control to remove.public MessageTypeEnum getType()
public Object get(Object key)
public Object put(Object key, Object value)
public boolean equals(Object obj)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public Message addAllControls(Control[] controls)
addAllControls
in interface Message
controls
- the controls to add.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.