org.apache.directory.shared.ldap.codec.controls.search.subentries
Class SubentriesFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.controls.search.subentries.SubentriesFactory
All Implemented Interfaces:
ControlFactory<Subentries,SubentriesDecorator>

public class SubentriesFactory
extends Object
implements ControlFactory<Subentries,SubentriesDecorator>

A factory for creating Subentries Controls and their SubentriesDecorator objects.

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

Constructor Summary
SubentriesFactory(LdapCodecService codec)
          Creates a new instance of SubentriesFactory.
 
Method Summary
 String getOid()
          
 SubentriesDecorator newCodecControl()
          Creates and returns a decorated version of the Control.
 SubentriesDecorator newCodecControl(Subentries 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

SubentriesFactory

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

Parameters:
codec -
Method Detail

getOid

public String getOid()

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

newCodecControl

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

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

newCodecControl

public SubentriesDecorator newCodecControl(Subentries 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<Subentries,SubentriesDecorator>
Parameters:
control - The Control to be decorated.
Returns:
The decorator wrapping the Control.


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