|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.ldap.util.DOMWriter
Writes LDAPMessages into a DOM structure as DSML batch requests and batch responses.
DOMReader,
DSMLWriter,
LDAPMessage| Constructor Summary | |
DOMWriter()
Initializes the DOMWriter. |
|
| Method Summary | |
void |
finish()
Writes any remaining data to the output destination. |
org.w3c.dom.Element |
getRootElement()
Retrieves the batchRequest or batchResponse element populated with this writer. |
java.lang.String |
getVersion()
Retrieves the version of DSML being written, currently only 2.0 is supported. |
boolean |
isRequest()
Used to identify if the root node is a batchRequest or not. |
org.w3c.dom.Element |
message2Element(LDAPMessage message)
Utility method to convert an LDAPMessage to a DSML DOM element. |
void |
writeComments(java.lang.String comments)
This method is not implemented and is silently ignored. |
void |
writeEntry(LDAPEntry entry)
Write an LDAP record into LDIF file as LDAPContent data. |
void |
writeEntry(LDAPEntry entry,
LDAPControl[] controls)
Write an LDAP record into LDIF file as LDAPContent data. |
void |
writeEntry(LDAPEntry entry,
LDAPControl[] controls,
java.lang.String requestID)
Write an LDAP record into LDIF file as LDAPContent data. |
void |
writeError(java.lang.Exception e)
Any Exception can be written in DSML with this method, via the |
void |
writeMessage(LDAPMessage message)
Writes the LDAPMessage into the DOMStructure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMWriter()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - Occurs if a parser could not be found or is misconfigured.| Method Detail |
public java.lang.String getVersion()
getVersion in interface LDAPWriterpublic boolean isRequest()
isRequest in interface LDAPWriter
public void writeComments(java.lang.String comments)
throws java.io.IOException
writeComments in interface LDAPWritercomments - The comments to write
java.io.IOException
public void writeMessage(LDAPMessage message)
throws LDAPLocalException,
java.io.IOException
writeMessage in interface LDAPWritermessage - LDAPMessage to write
LDAPLocalException - Occurs when a message is written out of
sequence, i.e. a response is written into a batchRequest.
java.io.IOException - if an I/O error occurs.
public void writeEntry(LDAPEntry entry)
throws LDAPLocalException
You are not allowed to mix request data and content data
writeEntry in interface LDAPWriterentry - LDAPEntry object
LDAPLocalException - if data and content are mixed.
LDAPLocalException - if an I/O error occurs.LDAPEntry
public void writeEntry(LDAPEntry entry,
LDAPControl[] controls)
throws LDAPLocalException
You are not allowed to mix request data and content data
writeEntry in interface LDAPWriterentry - LDAPEntry objectcontrols - Controls that were returned with this entry
LDAPLocalException - if data and content are mixed.LDAPEntry
public void writeEntry(LDAPEntry entry,
LDAPControl[] controls,
java.lang.String requestID)
throws LDAPLocalException
You are not allowed to mix request data and content data
entry - objectcontrols - Controls that were returned with this entryrequestID - the String that associates this response with the request
LDAPLocalException - if data and content are mixed.LDAPEntrypublic org.w3c.dom.Element message2Element(LDAPMessage message)
message - An LDAPMessage to be converted to a DSML DOM element.
public void writeError(java.lang.Exception e)
throws java.io.IOException
writeError in interface LDAPWritere - LDAPException to be written in DSML.
java.io.IOExceptionpublic org.w3c.dom.Element getRootElement()
public void finish()
throws java.io.IOException
LDAPWriter
finish in interface LDAPWriterjava.io.IOException
|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||