E
- The decorated messagepublic class LdapMessageContainer<E extends Message> extends AbstractContainer
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 |
addCurrentFilter(Filter localFilter)
Add a current filter.
|
void |
clean()
Clean the container for the next usage.
|
static void |
copyLdapResult(ResultResponse resultResponse,
ExtendedResponse extendedResponse)
Copy the LdapResult element from a opaque response to a newly created
extendedResponse
|
BinaryAttributeDetector |
getBinaryAttributeDetector() |
ControlFactory<?> |
getControlFactory() |
Attribute |
getCurrentAttribute() |
Control |
getCurrentControl() |
Filter |
getCurrentFilter() |
Modification |
getCurrentModification() |
ExtendedOperationFactory |
getExtendedFactory() |
IntermediateOperationFactory |
getIntermediateFactory() |
LdapApiService |
getLdapCodecService()
Gets the
LdapApiService associated with this Container. |
LdapResult |
getLdapResult() |
E |
getMessage() |
int |
getMessageId() |
Filter |
getTerminalFilter() |
int |
getTlvId()
Gets the current TLV id
|
Filter |
getTopFilter() |
boolean |
isBinary(String id) |
void |
setBinaryAttributeDetector(BinaryAttributeDetector binaryAttributeDetector)
Sets the binary attribute detector
|
void |
setControlFactory(ControlFactory<?> controlFactory) |
void |
setCurrentAttribute(Attribute currentAttribute) |
void |
setCurrentControl(Control currentControl)
Store a newly created control
|
void |
setCurrentFilter(Filter currentFilter) |
void |
setCurrentModification(Modification currentModification) |
void |
setExtendedFactory(ExtendedOperationFactory extendedFactory) |
void |
setIntermediateFactory(IntermediateOperationFactory intermediateFactory) |
void |
setLdapResult(LdapResult ldapResult) |
void |
setMessage(E message)
Set a Message Object into the container.
|
void |
setMessageId(int messageId)
Set the message ID
|
void |
setTerminalFilter(Filter terminalFilter) |
void |
setTlvId(int tlvId)
Set the SearchRequest PDU TLV's Id
|
void |
setTopFilter(Filter topFilter) |
void |
unstackFilters()
This method is used to clear the filter's stack for terminated elements.
|
getCurrentTLV, getDecodedBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTransition, incrementDecodedBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setDecodedBytes, setGathering, setGrammar, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
public LdapMessageContainer(LdapApiService codec)
codec
- The LDAP service instancepublic LdapMessageContainer(LdapApiService codec, BinaryAttributeDetector binaryAttributeDetector)
codec
- The LDAP service instancebinaryAttributeDetector
- checks if an attribute is binarypublic LdapApiService getLdapCodecService()
LdapApiService
associated with this Container.public E getMessage()
public void setMessage(E message)
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 Control getCurrentControl()
public void setCurrentControl(Control currentControl)
currentControl
- The control to storepublic void setBinaryAttributeDetector(BinaryAttributeDetector binaryAttributeDetector)
binaryAttributeDetector
- the binary attribute detectorpublic BinaryAttributeDetector getBinaryAttributeDetector()
public LdapResult getLdapResult()
public void setLdapResult(LdapResult ldapResult)
ldapResult
- the ldapResult to setpublic ControlFactory<?> getControlFactory()
public void setControlFactory(ControlFactory<?> controlFactory)
controlFactory
- the controlFactory to setpublic Attribute getCurrentAttribute()
public void setCurrentAttribute(Attribute currentAttribute)
currentAttribute
- the currentAttribute to setpublic Modification getCurrentModification()
public void setCurrentModification(Modification currentModification)
currentModification
- the currentModification to setpublic void setTlvId(int tlvId)
tlvId
- The TLV idpublic Filter getTerminalFilter()
public void setTerminalFilter(Filter terminalFilter)
terminalFilter
- the terminalFilter to setpublic Filter getCurrentFilter()
public void setCurrentFilter(Filter currentFilter)
currentFilter
- the currentFilter to setpublic void addCurrentFilter(Filter localFilter) throws DecoderException
localFilter
- The filter to set.DecoderException
- If the filter is invalidpublic void unstackFilters()
public static void copyLdapResult(ResultResponse resultResponse, ExtendedResponse extendedResponse)
resultResponse
- The original responseextendedResponse
- The newly created ExtendedResponsepublic Filter getTopFilter()
public void setTopFilter(Filter topFilter)
topFilter
- the topFilter to setpublic int getTlvId()
AbstractContainer
getTlvId
in interface Asn1Container
getTlvId
in class AbstractContainer
public IntermediateOperationFactory getIntermediateFactory()
public void setIntermediateFactory(IntermediateOperationFactory intermediateFactory)
intermediateFactory
- the intermediateFactory to setpublic ExtendedOperationFactory getExtendedFactory()
public void setExtendedFactory(ExtendedOperationFactory extendedFactory)
extendedFactory
- the extendedFactory to setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.