Package netscape.ldap.util
Class LDIFBaseContent
java.lang.Object
netscape.ldap.util.LDIFBaseContent
- All Implemented Interfaces:
Serializable,LDIFContent
- Direct Known Subclasses:
LDIFAddContent,LDIFAttributeContent,LDIFDeleteContent,LDIFModDNContent,LDIFModifyContent
An object of this class represents the content of an LDIF record.
This class implements the
LDIFContent interface, but
it is abstract and must be extended for the various record types.
- Version:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LDAPControl[]Internal variables(package private) static final longFields inherited from interface netscape.ldap.util.LDIFContent
ADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of controls specified in the content of the LDIF record, if anyprotected StringGet the OIDs of all controls, if any, as a stringvoidsetControls(LDAPControl[] controls) Sets the list of controlsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface netscape.ldap.util.LDIFContent
getType, toString
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
m_controls
Internal variables
-
-
Constructor Details
-
LDIFBaseContent
public LDIFBaseContent()Blank constructor for deserialization
-
-
Method Details
-
getControls
Retrieves the list of controls specified in the content of the LDIF record, if any- Specified by:
getControlsin interfaceLDIFContent- Returns:
- an array of
LDAPControlobjects that represent any controls specified in the the LDIF record, ornullif none were specified.
-
setControls
Sets the list of controls- Specified by:
setControlsin interfaceLDIFContent- Parameters:
controls- an array ofLDAPControlobjects ornullif none are to be specified
-
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.
-