org.apache.directory.shared.ldap.codec.controls.search.entryChange
Class EntryChangeContainer
java.lang.Object
org.apache.directory.shared.asn1.ber.AbstractContainer
org.apache.directory.shared.ldap.codec.controls.search.entryChange.EntryChangeContainer
- All Implemented Interfaces:
- Asn1Container
public class EntryChangeContainer
- extends AbstractContainer
- Author:
- Apache Directory Project
| Methods inherited from class org.apache.directory.shared.asn1.ber.AbstractContainer |
getCurrentTLV, getDecodeBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodeBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setGathering, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntryChangeContainer
public EntryChangeContainer(LdapCodecService codec)
- Creates a new EntryChangeContainer object. We will store one
grammar, it's enough ...
EntryChangeContainer
public EntryChangeContainer(LdapCodecService codec,
EntryChange control)
- Creates a container with decorator, optionally decorating the supplied
Control if it is not a decorator implementation.
- Parameters:
control - The EntryChange ControlDecorator, or a Control to be
wrapped by a new decorator.
getEntryChangeDecorator
public EntryChangeDecorator getEntryChangeDecorator()
- Returns:
- Returns the EntryChangeControl.
decorate
public void decorate(EntryChange control)
- Checks to see if the supplied EntryChange implementation is a decorator
and if so just sets the EntryChangeDecorator to it. Otherwise the supplied
control is decorated by creating a new EntryChangeDecorator to wrap the
object.
- Parameters:
control - The EntryChange Control to wrap, if it is not a decorator.
setEntryChangeDecorator
public void setEntryChangeDecorator(EntryChangeDecorator control)
- Set a EntryChangeControl Object into the container. It will be completed
by the ldapDecoder.
- Parameters:
control - the EntryChangeControl to set.
clean
public void clean()
- Clean the container
- Overrides:
clean in class AbstractContainer
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.