Package netscape.ldap.util
Class LDIFBaseContent
- java.lang.Object
-
- netscape.ldap.util.LDIFBaseContent
-
- All Implemented Interfaces:
java.io.Serializable
,LDIFContent
- Direct Known Subclasses:
LDIFAddContent
,LDIFAttributeContent
,LDIFDeleteContent
,LDIFModDNContent
,LDIFModifyContent
public abstract class LDIFBaseContent extends java.lang.Object implements LDIFContent, java.io.Serializable
An object of this class represents the content of an LDIF record. This class implements theLDIFContent
interface, but it is abstract and must be extended for the various record types.- Version:
- 1.0
- See Also:
LDIFRecord.getContent()
, Serialized Form
-
-
Field Summary
-
Fields inherited from interface netscape.ldap.util.LDIFContent
ADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT
-
-
Constructor Summary
Constructors Constructor Description LDIFBaseContent()
Blank constructor for deserialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDAPControl[]
getControls()
Retrieves the list of controls specified in the content of the LDIF record, if anyprotected java.lang.String
getControlString()
Get the OIDs of all controls, if any, as a stringvoid
setControls(LDAPControl[] controls)
Sets the list of controls-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface netscape.ldap.util.LDIFContent
getType, toString
-
-
-
-
Method Detail
-
getControls
public LDAPControl[] getControls()
Retrieves the list of controls specified in the content of the LDIF record, if any- Specified by:
getControls
in interfaceLDIFContent
- Returns:
- an array of
LDAPControl
objects that represent any controls specified in the the LDIF record, ornull
if none were specified.
-
setControls
public void setControls(LDAPControl[] controls)
Sets the list of controls- Specified by:
setControls
in interfaceLDIFContent
- Parameters:
controls
- an array ofLDAPControl
objects ornull
if none are to be specified
-
getControlString
protected java.lang.String getControlString()
Get the OIDs of all controls, if any, as a string- Returns:
- the OIDs of all controls, if any, as a string, or an empty string if there are no controls.
-
-