Class SortRequestContainer
- java.lang.Object
-
- org.apache.directory.api.asn1.ber.AbstractContainer
-
- org.apache.directory.api.ldap.codec.controls.sort.SortRequestContainer
-
- All Implemented Interfaces:
Asn1Container
public class SortRequestContainer extends AbstractContainer
Container for SortRequestControl.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SortRequestContainer(LdapApiService codec)
Creates a new instance of SortRequestContainer.SortRequestContainer(LdapApiService codec, SortRequest control)
Creates a new instance of SortRequestContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
Clean the containervoid
decorate(SortRequest control)
Decorate a SortRequest controlSortRequestDecorator
getControl()
SortKey
getCurrentKey()
void
setControl(SortRequestDecorator control)
void
setCurrentKey(SortKey currentKey)
-
Methods inherited from class org.apache.directory.api.asn1.ber.AbstractContainer
getCurrentTLV, getDecodedBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodedBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setDecodedBytes, setGathering, setGrammar, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
-
-
-
-
Constructor Detail
-
SortRequestContainer
public SortRequestContainer(LdapApiService codec)
Creates a new instance of SortRequestContainer.- Parameters:
codec
- the LDAP codec
-
SortRequestContainer
public SortRequestContainer(LdapApiService codec, SortRequest control)
Creates a new instance of SortRequestContainer.- Parameters:
codec
- the LDAP codeccontrol
- the sort request control
-
-
Method Detail
-
decorate
public void decorate(SortRequest control)
Decorate a SortRequest control- Parameters:
control
- The control to decorate
-
getControl
public SortRequestDecorator getControl()
- Returns:
- the control
-
setControl
public void setControl(SortRequestDecorator control)
- Parameters:
control
- the control to set
-
clean
public void clean()
Clean the container- Overrides:
clean
in classAbstractContainer
-
getCurrentKey
public SortKey getCurrentKey()
- Returns:
- the currentKey
-
setCurrentKey
public void setCurrentKey(SortKey currentKey)
- Parameters:
currentKey
- the currentKey to set
-
-