org.apache.directory.shared.ldap.codec.controls.search.pagedSearch
Class PagedResultsFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.controls.search.pagedSearch.PagedResultsFactory
All Implemented Interfaces:
ControlFactory<PagedResults,PagedResultsDecorator>

public class PagedResultsFactory
extends Object
implements ControlFactory<PagedResults,PagedResultsDecorator>

A ControlFactory for EntryChange controls.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
PagedResultsFactory(LdapCodecService codec)
          Creates a new instance of PagedResultsFactory.
 
Method Summary
 String getOid()
          
 PagedResultsDecorator newCodecControl()
          Creates and returns a decorated version of the Control.
 PagedResultsDecorator newCodecControl(PagedResults control)
          Decorates an existing control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedResultsFactory

public PagedResultsFactory(LdapCodecService codec)
Creates a new instance of PagedResultsFactory.

Parameters:
codec - The LDAP codec.
Method Detail

getOid

public String getOid()

Specified by:
getOid in interface ControlFactory<PagedResults,PagedResultsDecorator>
Returns:
The OID of the Control this factory creates.

newCodecControl

public PagedResultsDecorator newCodecControl()
Creates and returns a decorated version of the Control.

Specified by:
newCodecControl in interface ControlFactory<PagedResults,PagedResultsDecorator>
Returns:
The CodecControl decorated version of the Control.

newCodecControl

public PagedResultsDecorator 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 interface ControlFactory<PagedResults,PagedResultsDecorator>
Parameters:
control - The Control to be decorated.
Returns:
The decorator wrapping the Control.


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.