|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.LDAPExtendedOperation
public class LDAPExtendedOperation
Encapsulates an ID which uniquely identifies a particular extended operation, known to a particular server, and the data associated with that extended operation.
LDAPConnection.extendedOperation(com.novell.ldap.LDAPExtendedOperation)
,
Serialized FormField Summary | |
---|---|
private java.lang.String |
oid
|
private byte[] |
vals
|
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. |
(package private) static LDAPXMLHandler |
getXMLHandler(java.lang.String tagname,
LDAPXMLHandler parenthandler)
This method return the LDAPHandler which handles the XML (DSML) tags for this class |
(package private) void |
newLine(int indentTabs,
java.io.Writer out)
|
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 |
Field Detail |
---|
private java.lang.String oid
private byte[] vals
Constructor Detail |
---|
public LDAPExtendedOperation()
public LDAPExtendedOperation(java.lang.String oid, byte[] vals)
oid
- The unique identifier of the operation.vals
- The operation-specific data of the operation.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getID()
public byte[] getValue()
protected void setValue(byte[] newVals)
newVals
- The byte array of operation-specific data.protected void setID(java.lang.String newoid)
newoid
- The new OID for the operationvoid newLine(int indentTabs, java.io.Writer out) throws java.io.IOException
java.io.IOException
public void writeDSML(java.io.OutputStream oout) throws java.io.IOException
oout
- Outputstream where the serialzed data has to be written
java.io.IOException
- if write fails on OutputStreampublic static java.lang.Object readDSML(java.io.InputStream input) throws java.io.IOException
input
- InputStream for the DSML formatted data.
java.io.IOException
- when serialization fails.static LDAPXMLHandler getXMLHandler(java.lang.String tagname, LDAPXMLHandler parenthandler)
tagname
- Name of the Root tag used to represent this class.parenthandler
- Parent LDAPXMLHandler for this tag.
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The ObjectOutput stream where the Object in XML format
is being written to
java.io.IOException
- - If I/O errors occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The ObjectInput stream where the Serialized Object is being read from
java.io.IOException
- - If I/O errors occur
java.lang.ClassNotFoundException
- - If the class for an object being restored
cannot be found.
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |