public class LdapMessageContainer<E extends MessageDecorator<? extends Message>> extends AbstractContainer
decodeBytes, grammar
Constructor and Description |
---|
LdapMessageContainer(LdapApiService codec)
Creates a new LdapMessageContainer object.
|
LdapMessageContainer(LdapApiService codec,
BinaryAttributeDetector binaryAttributeDetector)
Creates a new LdapMessageContainer object.
|
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean the container for the next usage.
|
BinaryAttributeDetector |
getBinaryAttributeDetector() |
ControlDecorator<? extends Control> |
getCurrentControl() |
LdapApiService |
getLdapCodecService()
Gets the
LdapApiService associated with this Container. |
E |
getMessage() |
int |
getMessageId() |
boolean |
isBinary(String id) |
void |
setBinaryAttributeDetector(BinaryAttributeDetector binaryAttributeDetector)
Sets the binary attribute detector
|
void |
setCurrentControl(ControlDecorator<? extends Control> currentControl)
Store a newly created control
|
void |
setMessage(E messageDecorator)
Set a Message Object into the container.
|
void |
setMessageId(int messageId)
Set the message ID
|
getCurrentTLV, getDecodeBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodeBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setGathering, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
public LdapMessageContainer(LdapApiService codec)
public LdapMessageContainer(LdapApiService codec, BinaryAttributeDetector binaryAttributeDetector)
binaryAttributeDetector
- checks if an attribute is binarypublic LdapApiService getLdapCodecService()
LdapApiService
associated with this Container.public E getMessage()
public void setMessage(E messageDecorator)
message
- The message to set.public void clean()
clean
in class AbstractContainer
public boolean isBinary(String id)
id
- checks if an attribute id is binarypublic int getMessageId()
public void setMessageId(int messageId)
messageId
- the id of the messagepublic ControlDecorator<? extends Control> getCurrentControl()
public void setCurrentControl(ControlDecorator<? extends Control> currentControl)
currentControl
- The control to storepublic void setBinaryAttributeDetector(BinaryAttributeDetector binaryAttributeDetector)
binaryAttributeDetector
- the binary attribute detectorpublic BinaryAttributeDetector getBinaryAttributeDetector()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.