|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.decorators.MessageDecorator<E>
public abstract class MessageDecorator<E extends Message>
A decorator for the generic LDAP Message
| Field Summary | |
|---|---|
protected int |
messageLength
The encoded Message length |
| Constructor Summary | |
|---|---|
protected |
MessageDecorator(LdapCodecService codec,
E decoratedMessage)
Makes a Message an Decorator object. |
| Method Summary | |
|---|---|
void |
addAllControls(Control[] controls)
|
void |
addControl(Control control)
|
Object |
get(Object key)
|
LdapCodecService |
getCodecService()
Gets the codec service responsible for managing the encoding and decoding of the decorated objects. |
Control |
getControl(String oid)
|
Map<String,Control> |
getControls()
|
int |
getControlsLength()
|
CodecControl<? extends Control> |
getCurrentControl()
Get the current Control Object |
E |
getDecorated()
Gets the object being decorated by this IDecorator. |
static MessageDecorator<? extends Message> |
getDecorator(LdapCodecService codec,
Message decoratedMessage)
|
int |
getMessageId()
|
int |
getMessageLength()
|
MessageTypeEnum |
getType()
|
boolean |
hasControl(String oid)
|
Object |
put(Object key,
Object value)
|
void |
removeControl(Control control)
|
void |
setControlsLength(int controlsLength)
|
void |
setMessageId(int messageId)
|
void |
setMessageLength(int messageLength)
|
String |
toString()
Delegates to the toString() method of the decorated Message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.codec.api.Decorator |
|---|
computeLength, encode |
| Field Detail |
|---|
protected int messageLength
| Constructor Detail |
|---|
protected MessageDecorator(LdapCodecService codec,
E decoratedMessage)
| Method Detail |
|---|
public static MessageDecorator<? extends Message> getDecorator(LdapCodecService codec,
Message decoratedMessage)
public void setControlsLength(int controlsLength)
controlsLength - the encoded controls lengthpublic int getControlsLength()
public void setMessageLength(int messageLength)
messageLength - The encoded message lengthpublic int getMessageLength()
public CodecControl<? extends Control> getCurrentControl()
public MessageTypeEnum getType()
getType in interface Messagepublic Map<String,Control> getControls()
getControls in interface Messagepublic Control getControl(String oid)
getControl in interface Messagepublic boolean hasControl(String oid)
hasControl in interface Message
public void addControl(Control control)
throws MessageException
addControl in interface MessageMessageException
public void addAllControls(Control[] controls)
throws MessageException
addAllControls in interface MessageMessageException
public void removeControl(Control control)
throws MessageException
removeControl in interface MessageMessageExceptionpublic int getMessageId()
getMessageId in interface Messagepublic Object get(Object key)
get in interface Message
public Object put(Object key,
Object value)
put in interface Messagepublic void setMessageId(int messageId)
setMessageId in interface Messagepublic String toString()
toString in class Objectpublic E getDecorated()
getDecorated in interface Decorator<E extends Message>public LdapCodecService getCodecService()
getCodecService in interface Decorator<E extends Message>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||