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