Class PagedResultsFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsFactory
-
- All Implemented Interfaces:
ControlFactory<PagedResults>
public class PagedResultsFactory extends Object implements ControlFactory<PagedResults>
AControlFactory
forPagedResults
controls.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description PagedResultsFactory(LdapApiService codec)
Creates a new instance of PagedResultsFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOid()
CodecControl<PagedResults>
newCodecControl()
Creates and returns a decorated version of the Control.CodecControl<PagedResults>
newCodecControl(PagedResults control)
Decorates an existing control.
-
-
-
Constructor Detail
-
PagedResultsFactory
public PagedResultsFactory(LdapApiService codec)
Creates a new instance of PagedResultsFactory.- Parameters:
codec
- The LDAP codec.
-
-
Method Detail
-
getOid
public String getOid()
- Specified by:
getOid
in interfaceControlFactory<PagedResults>
- Returns:
- The OID of the Control this factory creates.
-
newCodecControl
public CodecControl<PagedResults> newCodecControl()
Creates and returns a decorated version of the Control.- Specified by:
newCodecControl
in interfaceControlFactory<PagedResults>
- Returns:
- The
CodecControl
decorated version of the Control.
-
newCodecControl
public CodecControl<PagedResults> newCodecControl(PagedResults 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<PagedResults>
- Parameters:
control
- TheControl
to be decorated.- Returns:
- The decorator wrapping the Control.
-
-