LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPExtendedOperation

java.lang.Object
  extended bycom.novell.ldap.LDAPExtendedOperation
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
AbortPartitionOperationRequest, AddReplicaRequest, ChangeReplicaTypeRequest, GetBindDNRequest, GetEffectivePrivilegesRequest, GetReplicaInfoRequest, GetReplicationFilterRequest, LburpEndRequest, LburpOperationRequest, LburpStartRequest, LDAPBackupRequest, LDAPRestoreRequest, ListReplicasRequest, MergePartitionsRequest, MonitorEventRequest, MonitorFilterEventRequest, PartitionEntryCountRequest, PartitionSyncRequest, ReceiveAllUpdatesRequest, RefreshLDAPServerRequest, RemoveOrphanPartitionRequest, RemoveReplicaRequest, SchemaSyncRequest, SendAllUpdatesRequest, SetReplicationFilterRequest, SplitOrphanPartitionRequest, SplitPartitionRequest, TriggerBackgroundProcessRequest

public class LDAPExtendedOperation
extends java.lang.Object
implements java.lang.Cloneable, java.io.Externalizable

Encapsulates an ID which uniquely identifies a particular extended operation, known to a particular server, and the data associated with that extended operation.

See Also:
LDAPConnection.extendedOperation(com.novell.ldap.LDAPExtendedOperation), Serialized Form

Constructor Summary
LDAPExtendedOperation()
          This constructor was added to support default Serialization
LDAPExtendedOperation(java.lang.String oid, byte[] vals)
          Constructs a new object with the specified object ID and data.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 java.lang.String getID()
          Returns the unique identifier of the operation.
 byte[] getValue()
          Returns a reference to the operation-specific data.
static java.lang.Object readDSML(java.io.InputStream input)
          This method is used to deserialize the DSML encoded representation of this class.
 void readExternal(java.io.ObjectInput in)
          Reads the serialized object from the underlying input stream.
protected  void setID(java.lang.String newoid)
          Resets the OID for the operation to a new value
protected  void setValue(byte[] newVals)
          Sets the value for the operation-specific data.
 java.lang.String toString()
          Returns a valid string representation of this LDAP URL.
 void writeDSML(java.io.OutputStream oout)
          This method does DSML serialization of the instance.
 void writeExternal(java.io.ObjectOutput out)
          Writes the object state to a stream in XML format
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPExtendedOperation

public LDAPExtendedOperation()
This constructor was added to support default Serialization


LDAPExtendedOperation

public LDAPExtendedOperation(java.lang.String oid,
                             byte[] vals)
Constructs a new object with the specified object ID and data.

Parameters:
oid - The unique identifier of the operation.
vals - The operation-specific data of the operation.
Method Detail

clone

public java.lang.Object clone()
Returns a clone of this object.

Returns:
clone of this object.

getID

public java.lang.String getID()
Returns the unique identifier of the operation.

Returns:
The OID (object ID) of the operation.

getValue

public byte[] getValue()
Returns a reference to the operation-specific data.

Returns:
The operation-specific data.

setValue

protected void setValue(byte[] newVals)
Sets the value for the operation-specific data.

Parameters:
newVals - The byte array of operation-specific data.

setID

protected void setID(java.lang.String newoid)
Resets the OID for the operation to a new value

Parameters:
newoid - The new OID for the operation

writeDSML

public void writeDSML(java.io.OutputStream oout)
               throws java.io.IOException
This method does DSML serialization of the instance.

Parameters:
oout - Outputstream where the serialzed data has to be written
Throws:
java.io.IOException - if write fails on OutputStream

readDSML

public static java.lang.Object readDSML(java.io.InputStream input)
                                 throws java.io.IOException
This method is used to deserialize the DSML encoded representation of this class.

Parameters:
input - InputStream for the DSML formatted data.
Returns:
Deserialized form of this class.
Throws:
java.io.IOException - when serialization fails.

toString

public java.lang.String toString()
Returns a valid string representation of this LDAP URL.

Returns:
The string representation of the LDAP URL.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes the object state to a stream in XML format

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - The ObjectOutput stream where the Object in XML format is being written to
Throws:
java.io.IOException - - If I/O errors occur

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Reads the serialized object from the underlying input stream.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - The ObjectInput stream where the Serialized Object is being read from
Throws:
java.io.IOException - - If I/O errors occur
java.lang.ClassNotFoundException - - If the class for an object being restored cannot be found.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000