org.apache.directory.shared.ldap.codec.controls.cascade
Class CascadeFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.controls.cascade.CascadeFactory
All Implemented Interfaces:
ControlFactory<Cascade,CascadeDecorator>

public class CascadeFactory
extends Object
implements ControlFactory<Cascade,CascadeDecorator>

A codec ControlFactory implementation for Cascade controls.

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

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

CascadeFactory

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

Parameters:
codec - The LDAP codec
Method Detail

getOid

public String getOid()

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

newCodecControl

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

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

newCodecControl

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


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