Class SortRequestFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.controls.sort.SortRequestFactory
-
- All Implemented Interfaces:
ControlFactory<SortRequest>
public class SortRequestFactory extends Object implements ControlFactory<SortRequest>
AControlFactory
for SortRequestControl.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SortRequestFactory(LdapApiService codec)
Creates a new instance of SortRequestFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOid()
CodecControl<SortRequest>
newCodecControl()
Creates and returns a decorated version of the Control.CodecControl<SortRequest>
newCodecControl(SortRequest control)
Decorates an existing control.
-
-
-
Constructor Detail
-
SortRequestFactory
public SortRequestFactory(LdapApiService codec)
Creates a new instance of SortRequestFactory.- Parameters:
codec
- The LDAP codec.
-
-
Method Detail
-
getOid
public String getOid()
- Specified by:
getOid
in interfaceControlFactory<SortRequest>
- Returns:
- The OID of the Control this factory creates.
-
newCodecControl
public CodecControl<SortRequest> newCodecControl()
Creates and returns a decorated version of the Control.- Specified by:
newCodecControl
in interfaceControlFactory<SortRequest>
- Returns:
- The
CodecControl
decorated version of the Control.
-
newCodecControl
public CodecControl<SortRequest> newCodecControl(SortRequest control)
Decorates an existing control. Implementors should check to make sure the supplied Control has not already been decorated to prevent needless decorator nesting.- Specified by:
newCodecControl
in interfaceControlFactory<SortRequest>
- Parameters:
control
- TheControl
to be decorated.- Returns:
- The decorator wrapping the Control.
-
-